snipsco / snips-skill-owm

OpenWeatherMap skill for Snips
MIT License
9 stars 27 forks source link

Tts accents not working on fr_FR locale #32

Open OrpheeGT opened 5 years ago

OrpheeGT commented 5 years ago

Hello,

I currently have an issue with locale fr_FR and the return from OWM :

confidence 0.711 [20:12:07] [Dialogue] was ask to end session with id 3023a423-ebac-45c5-a675-7a3 6c719f41a by saying 'La température sera de 26 degrés à Vidauban' [20:12:07] [Tts] was asked to say "La température sera de 26 degrés à hidden"

every accent is replaced with é and Tts says "A copyright tout droit réservé" instead of "é"

/var/lib/snips/skills/snips-skill-owm $ cat config.ini [secret] api_key=hidden locale=fr_FR default_location=hidden

/var/lib/snips/skills/snips-skill-owm $ locale LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_MONETARY="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-8" LC_PAPER="fr_FR.UTF-8" LC_NAME="fr_FR.UTF-8" LC_ADDRESS="fr_FR.UTF-8" LC_TELEPHONE="fr_FR.UTF-8" LC_MEASUREMENT="fr_FR.UTF-8" LC_IDENTIFICATION="fr_FR.UTF-8" LC_ALL=fr_FR.UTF-8

I'm using https://console.snips.ai/store/fr/skill_gy9rrnbBy2A7 with snips-skill-owm

Another exemple :

[20:20:28] [Asr] captured text "quel temps fait il à nice" in 3.0s [20:20:28] [Asr] was asked to stop listening on site default [20:20:28] [AudioServer] was asked to play a wav of 93.1 kB with id '6a355526-3604-45e1-94a5-35c55c89ffd' on site default [20:20:29] [AudioServer] finished playing wav with id '6a355526-3604-45e1-94a5-d35c55c89ffd' [20:20:29] [Nlu] was asked to parse input "quel temps fait il à nice" [20:20:29] [Nlu] detected intent searchWeatherForecast with confidence score 1.000 for input "quel temps fait il à nice" Slots -> forecast_locality -> Nice (confidence: 0.955) [20:20:29] [Dialogue] New intent detected searchWeatherForecast with confidence 1.000 Slots -> forecast_locality -> Nice (confidence: 0.955) [20:20:29] [Dialogue] was ask to end session with id 37d4b5fd-e7ce-4508-8fcf-c9a9027eff97 by saying 'le temps sera ensoleillé à Nice ' [20:20:29] [Tts] was asked to say "le temps sera ensoleillé à Nice"

Thank you for your help

OrpheeGT commented 5 years ago

My bad i didn't see the PR : https://github.com/snipsco/snips-skill-owm/pull/30