Custom Pronunciation not working

Hi I am totally new to Rhasspy. I finally got it setup with the hassio addon and a raspberry pi as a client. So far it seems communication (even if I still don’t know how and how to use it.) I use intents by adding intens: which btw is nowhere explained nor homeassistant manuals nor here in the project wiki. Well. I started playing around to test my microphone. It worked well so far but then I tried the Pronunciation part in the “words” tab und get this error below:

[ERROR:50903731] PhonetisaurusPronounce: pronounce
Traceback (most recent call last):
  File "/usr/share/rhasspy/rhasspy/pronounce.py", line 53, in in_started
    pronunciations = self.pronounce(message.words, message.n)
  File "/usr/share/rhasspy/rhasspy/pronounce.py", line 120, in pronounce
    self.profile.get(f"speech_to_text.{self.speech_system}.base_dictionary")
  File "/usr/share/rhasspy/rhasspy/profiles.py", line 91, in read_path
    full_path = os.path.join(profiles_dir, self.name, *path_parts)
  File "/usr/lib/python3.6/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.6/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
[DEBUG:50903729] PhonetisaurusPronounce: Getting pronunciations for ['kitchen']
[INFO:50900839] quart.serving: 192.168.1.208:50422 POST /api/lookup 1.1 500 57 61616
[ERROR:50900812] __main__: <rhasspy.events.PronunciationFailed object at 0x6fab7190>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/quart/app.py", line 1471, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/local/lib/python3.6/dist-packages/quart/app.py", line 1519, in dispatch_request
    return await handler(**request_.view_args)
  File "app.py", line 367, in api_lookup
    result = await core.get_word_pronunciations([word], n)
  File "/usr/share/rhasspy/rhasspy/core.py", line 315, in get_word_pronunciations
    assert isinstance(result, WordPronunciations), result
AssertionError: <rhasspy.events.PronunciationFailed object at 0x6fab7190>

Is there anything I can do about this? Or do you need more info how I setup rhasspy on server and cleint ?

Hi @thundergreen, this might be a bug on my end. Do you have a file called base_dictionary.txt in your profile directory? This should have been downloaded automatically.

Also, are you using Pocketsphinx or Kaldi?

I am using Pocketphinx. I am using hassio addon and dunne where this file is supposed to be then

Should be in /share/rhasspy/profiles

Hello,

I have the same problem with custom words pronounce, the data in the wav generated in mqtt topic hermes/audioServer/default/playBytes/ are 0s.
Rhasspy on Raspberry Pi 4 apt installed.
I use Kaldi and NanoTTS and I have 2 base_dictionary.txt:

./.config/rhasspy/profiles/fr/kaldi/base_dictionary.txt
./.config/rhasspy/profiles/fr/base_dictionary.txt

Any help would be appreciated.

Thanks in advance

the log when hitting Pronounce button in the web UI:

[DEBUG:2021-03-20 10:37:41,302] rhasspyserver_hermes.utils: ['espeak', '--stdout', '-s', '80', '-v', 'fr', '[[]]']
[DEBUG:2021-03-20 10:37:41,382] rhasspyserver_hermes: -> HotwordToggleOff(site_id='default', reason=<HotwordToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,384] rhasspyserver_hermes: Publishing 44 bytes(s) to hermes/hotword/toggleOff
[DEBUG:2021-03-20 10:37:41,388] rhasspyserver_hermes: -> AsrToggleOff(site_id='default', reason=<AsrToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,389] rhasspyserver_hermes: Publishing 44 bytes(s) to hermes/asr/toggleOff
[DEBUG:2021-03-20 10:37:41,392] rhasspyserver_hermes: -> AudioPlayBytes(1014 byte(s))
[DEBUG:2021-03-20 10:37:41,395] rhasspyspeakers_cli_hermes: <- AudioPlayBytes(1014 byte(s))
[DEBUG:2021-03-20 10:37:41,396] rhasspyspeakers_cli_hermes: ['aplay', '-q', '-t', 'wav']
[DEBUG:2021-03-20 10:37:41,397] rhasspyspeakers_cli_hermes: Final volume is 0.85 (master=0.85)
[DEBUG:2021-03-20 10:37:41,417] rhasspyasr_kaldi_hermes: <- AsrToggleOff(site_id='default', reason=<AsrToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,417] rhasspyasr_kaldi_hermes: Disabled (AsrToggleReason.PLAY_AUDIO)
[DEBUG:2021-03-20 10:37:41,417] rhasspywake_porcupine_hermes: <- HotwordToggleOff(site_id='default', reason=<HotwordToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,417] rhasspywake_porcupine_hermes: Disabled
[DEBUG:2021-03-20 10:37:41,940] rhasspyspeakers_cli_hermes: -> AudioPlayFinished(id='2174842b-4e96-407b-8422-0d46cb08d5bb', session_id='2174842b-4e96-407b-8422-0d46cb08d5bb')
[DEBUG:2021-03-20 10:37:41,941] rhasspyspeakers_cli_hermes: Publishing 99 bytes(s) to hermes/audioServer/default/playFinished
[DEBUG:2021-03-20 10:37:41,944] rhasspyserver_hermes: Handling AudioPlayFinished (topic=hermes/audioServer/default/playFinished, id=7981838e-389e-4ad3-bdd6-67e60cc598bc)
[DEBUG:2021-03-20 10:37:41,943] rhasspydialogue_hermes: <- AudioPlayFinished(id='2174842b-4e96-407b-8422-0d46cb08d5bb', session_id='2174842b-4e96-407b-8422-0d46cb08d5bb')
[DEBUG:2021-03-20 10:37:41,943] rhasspytts_cli_hermes: <- AudioPlayFinished(id='2174842b-4e96-407b-8422-0d46cb08d5bb', session_id='2174842b-4e96-407b-8422-0d46cb08d5bb')
[DEBUG:2021-03-20 10:37:41,948] rhasspyserver_hermes: -> HotwordToggleOn(site_id='default', reason=<HotwordToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,949] rhasspyserver_hermes: Publishing 44 bytes(s) to hermes/hotword/toggleOn
[DEBUG:2021-03-20 10:37:41,951] rhasspyserver_hermes: -> AsrToggleOn(site_id='default', reason=<AsrToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,951] rhasspyserver_hermes: Publishing 44 bytes(s) to hermes/asr/toggleOn
[DEBUG:2021-03-20 10:37:41,997] rhasspyasr_kaldi_hermes: <- AsrToggleOn(site_id='default', reason=<AsrToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,997] rhasspywake_porcupine_hermes: <- HotwordToggleOn(site_id='default', reason=<HotwordToggleReason.PLAY_AUDIO: 'playAudio'>)
[DEBUG:2021-03-20 10:37:41,997] rhasspyasr_kaldi_hermes: Enabled
[DEBUG:2021-03-20 10:37:41,998] rhasspywake_porcupine_hermes: Enabled
[DEBUG:2021-03-20 10:37:42,008] rhasspyasr_kaldi_hermes: Receiving audio
[DEBUG:2021-03-20 10:37:42,009] rhasspywake_porcupine_hermes: Receiving audio