Error using audiorecorder/resume (line 609) Device Error: Unanticipated host error
이전 댓글 표시
Hi,
I've been using a script for a while for recording audio. The script has worked without problems for a while now. Strangely, today I've started getting an error message:
" Error using audiorecorder/resume (line 609) Device Error: Unanticipated host error
Error in audiorecorder/record (line 653) resume(obj); "
I've tried the code with the external audio card (Xonar U7) I've been using and which the script has worked with before, and with-out (connecting directly to the motherboard microphone jack), but I get the same error message.
The audiorecorder object currently: "arec =
audiorecorder with properties:
SampleRate: 48000
BitsPerSample: 16
NumberOfChannels: 2
DeviceID: 1
CurrentSample: 1
TotalSamples: 0
Running: 'off'
StartFcn: []
StopFcn: []
TimerFcn: []
TimerPeriod: 0.0500
Tag: ''
UserData: []
Type: 'audiorecorder'"
And the command that initiates the error is simply:
record(arec)
OS: Windows 10.
audiodevinfo:
>> info.input.Name
ans =
Primary Sound Capture Driver (Windows DirectSound)
ans =
Microphone (Realtek High Definition Audio) (Windows DirectSound)
>> info.input.DriverVersion
ans =
Windows DirectSound
ans =
Windows DirectSound
>> info.input.ID
ans =
0
ans =
1
Any idea what's going on???
Thanks, Iftach
댓글 수: 1
Nicole Eichert
2017년 6월 8일
I am experiencing a similar problem with an external microphone connected via a USB port. I have tried using PsychPortAudio functions from Psychtoolbox instead, but it still failed. Recording via the standart Windows recorder works though. It would be great to hear about possible solutions!
채택된 답변
추가 답변 (2개)
Juan Francisco Martín
2019년 3월 20일
0 개 추천
release(Audioinput) and it works
Sara Sanei
2024년 12월 22일
편집: Sara Sanei
2024년 12월 22일
0 개 추천
if your system is mute, just unmute it.
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!