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!