1 Reply
      Latest reply on Nov 8, 2019 6:15 PM by George
      camerone Level 1 Level 1 (0 points)

        I'm searching for the best way to directly or indirectly create multiple taps on one AVAudioInputNode. I'm making an app with a conversational interface, and for architecture purposes it'd be useful to have one tap that deals with visualizing input audio and another that actually sends input audio to the speech recognizer. My attempts to do this are as follows, neither of which seem to work:


        1) Install multiple taps on AVAudioInputNode:
        It seems AVAudioInputNode only has one output bus, so you can't simply call installTap twice with different bus arguments.


        2). Create two other AVAudioNodes, connect them downstream from the input nodes, and install taps on those.

        It seems like you can't create actual instances of AVAudioNode or AVAudioIONode, since they're really just base classes for other nodes. I've tried using AVAudioUnitEQ for this purpose but that doesn't work either.


        Any thoughts about my approach here? Not sure if I'm thinking about this the wrong way or if I'm just missing something obvious.