read audio signal. How to choose the right number of input channels???
3 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to read audio from a file, and these are the properties:
>> PhaseVocoderMATLAB002
reader =
dsp.AudioFileReader with properties:
Filename: '/Users/FatimAlansari/Documents/MATLAB/Examples/signal/ResamplingALinearSequenceExample/HelloWorld.wav'
PlayCount: 1
SamplesPerFrame: 64
OutputDataType: 'double'
SampleRate: 44100
ReadRange: [1 Inf]
buff =
dsp.Buffer with properties:
Length: 256
OverlapLength: 192
InitialConditions: 0
win =
dsp.Window with properties:
WindowFunction: 'Hanning'
WeightsOutputPort: false
Sampling: 'Periodic'
Show all properties
Fs =
44100
player =
audioDeviceWriter with properties:
Device: 'Default'
SampleRate: 44100
Show all properties
player =
audioDeviceWriter with properties:
Device: 'Default'
SampleRate: 44100
Show all properties
and a got the following error when coming to Play time-stretched signal...
Error using audioDeviceWriter/setup
The number of input channels must be less than or equal to 255.
Error in audioDeviceWriter/setupImpl
Error in PhaseVocoderMATLAB002 (line 150)
player(loggedSpeech.');
i replace the number of channel with 255 and still get the same error.
how can i choose the right number of channel to fix this error
2 件のコメント
Jan
2018 年 12 月 13 日
Please show us the code instead of its output. It sounds like setting te number of channels to 255 did not work, so we need to see the code to find the error.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Audio Processing Algorithm Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!