フィルターのクリア

delay with stream live real-time audio through MATLAB

3 ビュー (過去 30 日間)
fatima alansari
fatima alansari 2019 年 2 月 10 日
回答済み: Walter Roberson 2019 年 2 月 10 日
Hello,
I'm working on stream live real-time audio using 'audioDeviceReader() and audioDeviceWriter()'.
I want to delay the output signal from the speaker for 1s or less. I tried using some methods including pause() function.
However, the problem is that the output audio signal became not clear and discrete...
Ex: if I say 'hello' in the mic, I hear my voice from the speaker after 1s

採用された回答

Walter Roberson
Walter Roberson 2019 年 2 月 10 日
Configure the audioDeviceWriter with a buffer large enough to hold at least 2 seconds. Queue zeros equal to the length of your pause. Now cycle stepping reading from the audioDeviceReader and immediately sending to the audioDeviceWriter. All output will get delayed by the length of the data queued ahead of it.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by