Currently I work on another topic. I try to activate my Voice Assistent somehow. For that it is necessary to have at least a working voice pipeline.
Now I realized that also the browser based voice pipeline does not work. I don’t get it triggered.
First I configured Voice like below.
- Keyword Spotter: Rustpotter
- Speech to Text: Vosk (confirmed that the folder name of the model is “userdata/vosk/model”)
- Text To Speech: Piper
- Voice: Piper … Kerstin
- Interpreter: Rule Based (I chooses this one, because I want to see what is coming out from stt service first)
- Magic Word: Hey Marvin
I set the following log level:
log:set DEBUG org.openhab.core.voice
log:set DEBUG org.openhab.core.io.voice
log:set DEBUG org.openhab.voice.rustpotterks
log:set DEBUG org.openhab.voice.voskstt
under them menu point “Audio” I choosed my web audio devices
I I click in the Web Main UI on the voice button, I see the following logs on my server
13:53:34.826 [DEBUG] [.core.voice.internal.VoiceManagerImpl] - bundle org.openhab.core.voice:5.2.1 (228)[org.openhab.core.voice.internal.VoiceManagerImpl(1366)] : dm AudioSource tracking 170 MultipleDynamic already active, binding {org.openhab.core.audio.AudioSource}={service.id=3353, service.bundleid=197, service.scope=singleton}
13:53:34.827 [DEBUG] [.core.voice.internal.VoiceManagerImpl] - bundle org.openhab.core.voice:5.2.1 (228)[org.openhab.core.voice.internal.VoiceManagerImpl(1366)] : invoking bind: addAudioSource: parameters [org.openhab.core.io.websocket.audio.internal.PCMWebSocketAudioSource]
13:53:34.828 [DEBUG] [.core.voice.internal.VoiceManagerImpl] - bundle org.openhab.core.voice:5.2.1 (228)[org.openhab.core.voice.internal.VoiceManagerImpl(1366)] : invoked bind: addAudioSource
13:53:34.829 [DEBUG] [.core.voice.internal.VoiceManagerImpl] - bundle org.openhab.core.voice:5.2.1 (228)[org.openhab.core.voice.internal.VoiceManagerImpl(1366)] : dm AudioSink tracking 171 MultipleDynamic already active, binding {org.openhab.core.audio.AudioSink}={service.id=3354, service.bundleid=197, service.scope=singleton}
13:53:34.830 [DEBUG] [.core.voice.internal.VoiceManagerImpl] - bundle org.openhab.core.voice:5.2.1 (228)[org.openhab.core.voice.internal.VoiceManagerImpl(1366)] : invoking bind: addAudioSink: parameters [org.openhab.core.io.websocket.audio.internal.PCMWebSocketAudioSink]
13:53:34.830 [DEBUG] [.core.voice.internal.VoiceManagerImpl] - bundle org.openhab.core.voice:5.2.1 (228)[org.openhab.core.voice.internal.VoiceManagerImpl(1366)] : invoked bind: addAudioSink
13:53:34.831 [DEBUG] [.conversation.ConversationManagerImpl] - Creating new unpersisted conversation
13:53:34.832 [DEBUG] [.core.voice.internal.VoiceManagerImpl] - Starting a new dialog for source PCM Audio WebSocket (ui-81-2) (pcm::ui-81-2::source
and in my browser I can see
Voice: Starting ws connection... index-BJBtX3R_.js:15742:72
Voice: Created audio context with sample rate 48000 index-BJBtX3R_.js:15742:72
Voice: Audio context state 'running' index-BJBtX3R_.js:15742:72
Voice: Resuming audio context, click to continue index-BJBtX3R_.js:15742:72
Voice: Click the widget to trigger the dialog index-BJBtX3R_.js:15742:72
Voice: Connected index-BJBtX3R_.js:15742:72
As I can see, the dialog is initialized and registered. Now I press the button again to start the conversation.
I see the following logs on my server
13:55:43.684 [DEBUG] [b.core.voice.internal.DialogProcessor] - DTTriggeredEvent event received
13:55:43.684 [DEBUG] [b.core.voice.internal.DialogProcessor] - Acquiring dialog group 'default'
and the following logs in my browser
Voice: Starting microphone audio streaming index-BJBtX3R_.js:15742:72
in this moment I can see in the browser network tab that a lot of traffic is sendet to openhab.
But nothing happens. I don’t see any logs on server side. Not for voice, not for rustpotter and not for vosk. Looks like he is sending audio stream forever.
I tested it in chrome and firefox. Each time the same result.
Has anyone an idea?

