how to fix port audio error : unanticipated host error

88 Ansichten (letzte 30 Tage)
sutticha charoenwitsakul
sutticha charoenwitsakul am 17 Okt. 2016
Beantwortet: Daniel am 23 Mär. 2023
when i run this code ,it should have sound of Do Re Me but it didn't. So it show me that "Port audio error : unanticipated host error" it's about some port in my notebook or not?
  2 Kommentare
Adam Danz
Adam Danz am 20 Okt. 2021
Bearbeitet: Adam Danz am 20 Okt. 2021
Data point:
This error occured immediately after updating my Radeon graphics card 540X Software vs 21.8.2 (R2021b).
Error using asyncio.MessageHandler/onError (line 31)
PortAudio Error: Unanticipated host error
Error using asyncio.MessageHandler/onError (line 31)
Audio output device has become unresponsive: 1024 sample(s) remain after timeout.
But even sound from YouTube isn't working so it's likely not a Matlab error in my case. Updating my audio driver fixed it (windows 10 pro).

Melden Sie sich an, um zu kommentieren.

Antworten (4)

Xi Zheng
Xi Zheng am 13 Jun. 2017
Bearbeitet: Xi Zheng am 13 Jun. 2017
In my case, after I disable all the "Realtek Audio" sound functions, it works.
Your code works well on my machine.

Peiling Lu
Peiling Lu am 21 Jun. 2017
I change the plug in interface from the front of the main engine to the back. And it works!

David Crist
David Crist am 27 Jul. 2017
I'm curious if anyone from The Mathworks has experienced this error. I am currently experiencing this error on R2016b, Win10, x86-64

Daniel
Daniel am 23 Mär. 2023
I had this error message pop up. Took me embarasingly long to realize that the sound driver was tied up by another open application (windows media player). It's not a very descriptive way of indicating this. Closed the player and everything worked.

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by