簡體   English   中英

AudioKit:如何點擊相同的輸入進行多次使用(AudioKitUI + 語音識別)

[英]AudioKit: How to tap the same input for multiple uses (AudioKitUI + Speech Recognition)

我希望能夠將AudioKitUI的組件FFTView與輸入節點結合使用,以直觀地顯示節點輸入並執行語音識別。

根據BaseTap.swift關於水龍頭的注釋(第 65 行):

// a node can only have one tap at a time installed on it
// make sure any previous tap is removed.
// We're making the assumption that the previous tap (if any)
// was installed on the same bus as our bus var.

如果一個節點只能有一次點擊,我們如何將AudioKitUI組件與這些點擊的實際數據結合使用?

我正在(成功地)點擊輸入來進行語音識別:

audioManager.mic.avAudioNode.installTap(onBus: 0, bufferSize: 1024, format: inputFormat) { (buffer: AVAudioPCMBuffer, when: AVAudioTime) in self.recognitionRequest?.append(buffer)

然而,當我嘗試安裝用於修復的水龍頭然后使用FFTView時,應用程序崩潰並error -10868 考慮到我只能安裝一個水龍頭,這是有道理的,但從概念上講,我不明白如何繞過這個限制。 我知道並見過可以點擊音頻輸入、顯示數據並同時處理數據的應用程序。 任何指導將不勝感激。

只需將一系列混音器串聯起來,然后對每個混音器執行您需要的操作即可。 每個最多點擊一次。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM