No audio output and freeze/crash requiring restart

I’m really doing my best to get this going, but I have reached a point where I am stuck.

Everything is still basically vanilla.

Mycroft hears the wake word, generates the MP3 answer, but I get no audio and it’s frozen and won’t respond to the wake word after that.

There’s a few wierd lines in here, like

2023-05-04 20:25:54.455 | DEBUG | 138358 | mycroft.audio.audioservice:_restore_volume_after_record:399 | No audio service to restore volume of

and alsa complaining:

ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp

I don’t have a complex setup, and the defaults are correct in pactl

From voice log:

2023-05-04 20:25:42.982 | INFO     | 138361 | mycroft.messagebus.load_config:load_message_bus_config:33 | Loading message bus configs
2023-05-04 20:25:42.983 | INFO     | 138361 | mycroft_bus_client.client.client | Connected
2023-05-04 20:25:42.984 | INFO     | 138361 | mycroft.util.process_utils:start_message_bus_client:155 | Connected to messagebus
ALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
2023-05-04 20:25:43.058 | INFO     | 138361 | mycroft.client.speech.listener:create_wake_word_recognizer:328 | Creating wake word engine
2023-05-04 20:25:43.058 | INFO     | 138361 | mycroft.client.speech.listener:create_wake_word_recognizer:351 | Using hotword entry for hey mycroft
2023-05-04 20:25:43.058 | INFO     | 138361 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "hey mycroft" wake word via precise
2023-05-04 20:25:45.092 | INFO     | 138361 | mycroft.client.speech.listener:create_wakeup_recognizer:365 | creating stand up word engine
2023-05-04 20:25:45.092 | INFO     | 138361 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "wake up" wake word via pocketsphinx
2023-05-04 20:25:45.197 | INFO     | 138361 | __main__:on_ready:179 | Speech client is ready.
2023-05-04 20:25:50.626 | INFO     | 138361 | mycroft.session:get:72 | New Session Start: 0c7a3cdd-bab6-4a2d-a8bb-3947fda2048e
2023-05-04 20:25:50.627 | INFO     | 138361 | __main__:handle_wakeword:71 | Wakeword Detected: hey mycroft
2023-05-04 20:25:50.982 | INFO     | 138361 | __main__:handle_record_begin:41 | Begin Recording...
2023-05-04 20:25:54.453 | INFO     | 138361 | __main__:handle_record_end:49 | End Recording...
2023-05-04 20:25:56.014 | INFO     | 138361 | __main__:handle_utterance:76 | Utterance: ["what's the weather today"]

From audio log:

2023-05-04 20:25:40.588 | INFO     | 138358 | __main__:main:46 | Starting Audio Service
2023-05-04 20:25:42.999 | INFO     | 138358 | mycroft.messagebus.load_config:load_message_bus_config:33 | Loading message bus configs
2023-05-04 20:25:43.000 | INFO     | 138358 | mycroft_bus_client.client.client | Connected
2023-05-04 20:25:43.001 | INFO     | 138358 | mycroft.util.process_utils:start_message_bus_client:155 | Connected to messagebus
2023-05-04 20:25:43.001 | WARNING  | 138358 | mycroft.tts.google_tts:__init__:73 | The Google TTS module uses the gTTS Python package which itself interfaces with the Google Translate text-to-speech API. This is not intended for commercial or production usage. The service may break at any time, and you are subject to their Terms of Service that can be found at https://policies.google.com/terms
2023-05-04 20:25:43.469 | INFO     | 138358 | mycroft.audio.audioservice:get_services:63 | Loading services from /home/st/GIT/mycroft-core/mycroft/audio/services/
2023-05-04 20:25:43.470 | INFO     | 138358 | mycroft.audio.audioservice:load_internal_services:135 | Loading chromecast
2023-05-04 20:25:43.484 | ERROR    | 138358 | mycroft.audio.audioservice:load_internal_services:143 | Failed to import module chromecast
TypeError('Descriptors cannot not be created directly.\nIf this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.\nIf you cannot immediately regenerate your protos, some other possible workarounds are:\n 1. Downgrade the protobuf package to 3.20.x or lower.\n 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).\n\nMore information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates')
2023-05-04 20:25:43.485 | INFO     | 138358 | mycroft.audio.audioservice:load_internal_services:135 | Loading mopidy
2023-05-04 20:25:43.485 | INFO     | 138358 | mycroft.audio.audioservice:load_internal_services:135 | Loading mplayer
2023-05-04 20:25:43.486 | INFO     | 138358 | mycroft.audio.audioservice:load_internal_services:135 | Loading simple
2023-05-04 20:25:43.491 | INFO     | 138358 | mycroft.audio.audioservice:load_internal_services:135 | Loading vlc
2023-05-04 20:25:43.509 | INFO     | 138358 | mycroft.audio.audioservice:load_services:235 | Finding default backend...
2023-05-04 20:25:43.509 | INFO     | 138358 | mycroft.audio.audioservice:load_services:239 | Found local
2023-05-04 20:25:43.610 | DEBUG    | 138358 | mycroft.util.monotonic_event:wait_timeout:53 | Will wait for 179.89989274099935 sec for Event
2023-05-04 20:25:43.610 | INFO     | 138358 | __main__:on_ready:33 | Audio service is ready.
2023-05-04 20:25:54.455 | DEBUG    | 138358 | mycroft.audio.audioservice:_restore_volume_after_record:399 | No audio service to restore volume of
2023-05-04 20:25:57.187 | INFO     | 138358 | mycroft.audio.speech:mute_and_speak:127 | Speak: Right now, it's moderate rain and 17 degrees.
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | text: Right now, it's moderate rain and 17 degrees.
20:25:57.187 - gtts.tts - DEBUG - text: Right now, it's moderate rain and 17 degrees.
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | tld: com
20:25:57.187 - gtts.tts - DEBUG - tld: com
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | lang: en
20:25:57.187 - gtts.tts - DEBUG - lang: en
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | slow: False
20:25:57.187 - gtts.tts - DEBUG - slow: False
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | lang_check: True
20:25:57.187 - gtts.tts - DEBUG - lang_check: True
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | pre_processor_funcs: [<function tone_marks at 0x7f1c2d224310>, <function end_of_line at 0x7f1c2d224430>, <function abbreviations at 0x7f1c2d2244c0>, <function word_sub at 0x7f1c2d224550>]
20:25:57.187 - gtts.tts - DEBUG - pre_processor_funcs: [<function tone_marks at 0x7f1c2d224310>, <function end_of_line at 0x7f1c2d224430>, <function abbreviations at 0x7f1c2d2244c0>, <function word_sub at 0x7f1c2d224550>]
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|…|\\)|、|،|。|:|,|\\]|—|¿|\\(|;|‥|¡|\\[|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x7f1c2d224700>, <function period_comma at 0x7f1c2d224790>, <function colon at 0x7f1c2d224820>, <function other_punctuation at 0x7f1c2d2248b0>]>
20:25:57.187 - gtts.tts - DEBUG - tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|…|\\)|、|،|。|:|,|\\]|—|¿|\\(|;|‥|¡|\\[|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x7f1c2d224700>, <function period_comma at 0x7f1c2d224790>, <function colon at 0x7f1c2d224820>, <function other_punctuation at 0x7f1c2d2248b0>]>
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.lang | langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bg': 'Bulgarian', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'iw': 'Hebrew', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ms': 'Malay', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-TW': 'Chinese (Mandarin/Taiwan)', 'zh': 'Chinese (Mandarin)'}
20:25:57.187 - gtts.lang - DEBUG - langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bg': 'Bulgarian', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'iw': 'Hebrew', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ms': 'Malay', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-TW': 'Chinese (Mandarin/Taiwan)', 'zh': 'Chinese (Mandarin)'}
2023-05-04 20:25:57.187 | DEBUG    | 138358 | gtts.tts | pre-processing: <function tone_marks at 0x7f1c2d224310>
20:25:57.187 - gtts.tts - DEBUG - pre-processing: <function tone_marks at 0x7f1c2d224310>
2023-05-04 20:25:57.188 | DEBUG    | 138358 | gtts.tts | pre-processing: <function end_of_line at 0x7f1c2d224430>
20:25:57.188 - gtts.tts - DEBUG - pre-processing: <function end_of_line at 0x7f1c2d224430>
2023-05-04 20:25:57.188 | DEBUG    | 138358 | gtts.tts | pre-processing: <function abbreviations at 0x7f1c2d2244c0>
20:25:57.188 - gtts.tts - DEBUG - pre-processing: <function abbreviations at 0x7f1c2d2244c0>
2023-05-04 20:25:57.188 | DEBUG    | 138358 | gtts.tts | pre-processing: <function word_sub at 0x7f1c2d224550>
20:25:57.188 - gtts.tts - DEBUG - pre-processing: <function word_sub at 0x7f1c2d224550>
2023-05-04 20:25:57.188 | DEBUG    | 138358 | gtts.tts | text_parts: ["Right now, it's moderate rain and 17 degrees."]
20:25:57.188 - gtts.tts - DEBUG - text_parts: ["Right now, it's moderate rain and 17 degrees."]
2023-05-04 20:25:57.188 | DEBUG    | 138358 | gtts.tts | text_parts: 1
20:25:57.188 - gtts.tts - DEBUG - text_parts: 1
2023-05-04 20:25:57.188 | DEBUG    | 138358 | gtts.tts | data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Right%20now%2C%20it%27s%20moderate%20rain%20and%2017%20degrees.%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
20:25:57.188 - gtts.tts - DEBUG - data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Right%20now%2C%20it%27s%20moderate%20rain%20and%2017%20degrees.%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
2023-05-04 20:25:57.188 | DEBUG    | 138358 | urllib3.connectionpool | Starting new HTTPS connection (1): translate.google.com:443
20:25:57.188 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): translate.google.com:443
2023-05-04 20:25:57.565 | DEBUG    | 138358 | urllib3.connectionpool | https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
20:25:57.565 - urllib3.connectionpool - DEBUG - https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
2023-05-04 20:25:57.595 | DEBUG    | 138358 | gtts.tts | headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '193'}
20:25:57.595 - gtts.tts - DEBUG - headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '193'}
2023-05-04 20:25:57.596 | DEBUG    | 138358 | gtts.tts | url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
20:25:57.596 - gtts.tts - DEBUG - url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
2023-05-04 20:25:57.596 | DEBUG    | 138358 | gtts.tts | status-0: 200
20:25:57.596 - gtts.tts - DEBUG - status-0: 200
2023-05-04 20:25:57.596 | DEBUG    | 138358 | gtts.tts | part-0 written to <_io.BufferedWriter name='/tmp/mycroft/cache/tts/GoogleTTS/c748a0dbcdf62983e6912f1511e7d11e.mp3'>
20:25:57.596 - gtts.tts - DEBUG - part-0 written to <_io.BufferedWriter name='/tmp/mycroft/cache/tts/GoogleTTS/c748a0dbcdf62983e6912f1511e7d11e.mp3'>
2023-05-04 20:25:57.596 | DEBUG    | 138358 | gtts.tts | part-0 created
20:25:57.596 - gtts.tts - DEBUG - part-0 created
2023-05-04 20:25:57.596 | DEBUG    | 138358 | gtts.tts | Saved to /tmp/mycroft/cache/tts/GoogleTTS/c748a0dbcdf62983e6912f1511e7d11e.mp3
20:25:57.596 - gtts.tts - DEBUG - Saved to /tmp/mycroft/cache/tts/GoogleTTS/c748a0dbcdf62983e6912f1511e7d11e.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
	version 1.31.3; written and copyright by Michael Hipp and others
	free software (LGPL) without any warranty but with best wishes

Mycroft code is abandonware - have you considered switching to OVOS/Neon?

-Mike Mac
2 Likes

Never heard of this, thank you I’ll look into it!

I’ve re-pinned the FAQ. Didn’t realize it had fallen off the front page. Sorry for the confusion. Here’s a direct link: