Using speech2text for long duration of audio results in an error with GoogleAPI?
조회 수: 3 (최근 30일)
이전 댓글 표시
I'm getting the folloing error when I try to convert speech to text for a longer duration:
'Sync input too long. For audio longer than 1 min use LongRunningRecognize with a ''uri'' parameter.'
I've modified my jason as
{
"key": "abc",
"uri":"https://speech.googleapis.com/v1/speech:longrunningrecognize"
}
But still the error is:
'Sync input too long. For audio longer than 1 min use LongRunningRecognize with a ''uri'' parameter.'
Here is my code:
transcriber = speechClient('Google');
[speech,SampleRate] = audioread('sound_meeting.wav');
text = speech2text(transcriber,speech(:,1),SampleRate,'HTTPTimeOut',25);
댓글 수: 0
답변 (1개)
Raja Palanimurugan
2019년 8월 27일
편집: Raja Palanimurugan
2019년 8월 27일
Transcribing long audio signals is not supported by the speech2text function yet. As a workaround, you can split the audio into smaller chunks before sending to speech2text. Hope that helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!