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!