Problem with TTS played 2 times


#1

Hi,

Since the last update i get the sentences played two time.

If i set in snips.toml

[snips-tts]
provider = “customtts”
customtts = { command = ["/home/pi/gtts/cli.js", “%%TEXT%%”, “%%OUTPUT_FILE%%”] }

i get one time the sentence played with picotts and one time with my customscript.

If i set default parameters or pico, i get two times played with picotts.

Also, the new parameter sound_feedback_disabled_default does not work, it’s like the config file is not used.

Anybody know this problem?


#2

This is the jeedom plugin log :

[2019-01-05 18:03:35][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/hotword/default/detected’, … (172 bytes)) [2019-01-05 18:03:35][DEBUG] : [message] Received message. Topic:hermes/hotword/default/detected [2019-01-05 18:03:35][DEBUG] : [message] Set snipsbas => snipsMsgSiteId [2019-01-05 18:03:35][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/dialogueManager/sessionStarted’, … (122 bytes)) [2019-01-05 18:03:35][DEBUG] : [message] Received message. Topic:hermes/dialogueManager/sessionStarted [2019-01-05 18:03:35][DEBUG] : [message] Set snipsbas => snipsMsgSiteId [2019-01-05 18:03:35][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/dialogueManager/sessionStarted’, … (122 bytes)) [2019-01-05 18:03:35][DEBUG] : [message] Received message. Topic:hermes/dialogueManager/sessionStarted [2019-01-05 18:03:35][DEBUG] : [message] Set snipsbas => snipsMsgSiteId [2019-01-05 18:03:35][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/hotword/default/detected’, … (175 bytes)) [2019-01-05 18:03:35][DEBUG] : [message] Received message. Topic:hermes/hotword/default/detected [2019-01-05 18:03:35][DEBUG] : [message] Set snipsserver => snipsMsgSiteId [2019-01-05 18:03:35][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/dialogueManager/sessionStarted’, … (125 bytes)) [2019-01-05 18:03:35][DEBUG] : [message] Received message. Topic:hermes/dialogueManager/sessionStarted [2019-01-05 18:03:35][DEBUG] : [message] Set snipsserver => snipsMsgSiteId [2019-01-05 18:03:35][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/dialogueManager/sessionStarted’, … (125 bytes)) [2019-01-05 18:03:35][DEBUG] : [message] Received message. Topic:hermes/dialogueManager/sessionStarted [2019-01-05 18:03:35][DEBUG] : [message] Set snipsserver => snipsMsgSiteId [2019-01-05 18:03:37][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/hotword/default/detected’, … (172 bytes)) [2019-01-05 18:03:37][DEBUG] : [message] Received message. Topic:hermes/hotword/default/detected [2019-01-05 18:03:37][DEBUG] : [message] Set snipsbas => snipsMsgSiteId [2019-01-05 18:03:38][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/intent/rollyfx:TurnOnJeedom’, … (692 bytes)) [2019-01-05 18:03:38][DEBUG] : [message] Received message. Topic:hermes/intent/rollyfx:TurnOnJeedom [2019-01-05 18:03:38][DEBUG] : [message] Set snipsbas => snipsMsgSiteId [2019-01-05 18:03:38][DEBUG] : [message] Find a snips device which is not in the list:snipsbas [2019-01-05 18:03:38][DEBUG] : [postSave] post saved [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Intent:rollyfx:TurnOnJeedom siteId:snipsbas sessionId:577d8cf6-baa0-45b9-95f8-be2a555510ec [2019-01-05 18:03:38][DEBUG] : [extractSlotsValues] Checking slots: device_name [2019-01-05 18:03:38][DEBUG] : [extractSlotsValues] No, this does not exist in the array :device_name [2019-01-05 18:03:38][DEBUG] : [setSlotsCmd] Set slots cmd values [2019-01-05 18:03:38][DEBUG] : [setSlotsCmd] Slots name is :device_name [2019-01-05 18:03:38][DEBUG] : [executeCallbackScenario] Intent: rollyfx:TurnOnJeedom [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Cur binding name : TV [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Snips count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding has corr number of slot: TV [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Cur binding name : VMC [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Snips count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding has corr number of slot: VMC [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Cur binding name : Ordinateur [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Snips count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding has corr number of slot: Ordinateur [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Cur binding name : Chauffage appoint [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Snips count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding has corr number of slot: Chauffage appoint [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Cur binding name : Radio [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Snips count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding has corr number of slot: Radio [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Cur binding name : lampe four [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Binding count is : 2 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] Snips count is : 1 [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft string: tv, télé, télévision, home cinéma [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 0 value: tv [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 1 value: télé [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 2 value: télévision [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 3 value: homecinéma [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft string: vmc [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 0 value: vmc [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft string: ordinateur, PC, l’ordinateur [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 0 value: ordinateur [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 1 value: pc [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 2 value: l’ordinateur [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft string: chauffage d’appoint [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 0 value: chauffaged’appoint [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft string: radio [2019-01-05 18:03:38][DEBUG] : [findAndDoAction] [Condition] Condition Aft value index: 0 value: radio [2019-01-05 18:03:38][DEBUG] : [setSlotsCmd] Set slots cmd values [2019-01-05 18:03:38][DEBUG] : [setSlotsCmd] Slots name is :device_name [2019-01-05 18:03:39][DEBUG] : [setSlotsCmd] Set slots cmd values [2019-01-05 18:03:39][DEBUG] : [setSlotsCmd] Slots name is :device_name [2019-01-05 18:03:39][DEBUG] : [generateFeedback] Generating feedback text [2019-01-05 18:03:39][DEBUG] : [generateFeedback] The 0 variable cmd is not set [2019-01-05 18:03:39][DEBUG] : [findAndDoAction] [Binding Execution] Generated text is [C’est parti|Fait] [2019-01-05 18:03:39][DEBUG] : [findAndDoAction] [Binding Execution] Orginal text is [C’est parti|Fait] [2019-01-05 18:03:39][DEBUG] : [findAndDoAction] [Binding Execution] Player is #4110# [2019-01-05 18:03:39][DEBUG] : [playTTS] Player: #4110# Message: C’est parti Title: default [2019-01-05 18:03:39][DEBUG] : [execute] cmd: say [2019-01-05 18:03:39][DEBUG] : [execute] siteId: snipsserver asked to say :C’est parti [2019-01-05 18:03:39][DEBUG] : [sayFeedback] Publish: C’est parti [2019-01-05 18:03:39][DEBUG] : [publish] published message: {“text”:“C’est parti”,“sessionId”:“577d8cf6-baa0-45b9-95f8-be2a555510ec”} to topic: hermes/dialogueManager/endSession [2019-01-05 18:03:40][DEBUG] : [resetSlotsCmd] Reset all the slots [2019-01-05 18:03:40][DEBUG] : [resetSlotsCmd] Set => snipsMsgSiteId [2019-01-05 18:03:40][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/dialogueManager/sessionEnded’, … (125 bytes)) [2019-01-05 18:03:40][DEBUG] : [message] Received message. Topic:hermes/dialogueManager/sessionEnded [2019-01-05 18:03:40][DEBUG] : [message] Set snipsbas => snipsMsgSiteId [2019-01-05 18:03:40][DEBUG] : [logmq] code: 16 : Client mosq/ombtLEjW>qI?Q;t1n_ received PUBLISH (d0, q0, r0, m0, ‘hermes/dialogueManager/sessionEnded’, … (140 bytes)) [2019-01-05 18:03:40][DEBUG] : [message] Received message. Topic:hermes/dialogueManager/sessionEnded [2019-01-05 18:03:40][DEBUG] : [message] Set snipsserver => snipsMsgSiteId


#3

Hello,

I think that you work with a snips-server and snips satellite. The problem is that the service “snips-tts” runs on satellite and it should not.

On satellite execute this :
sudo systemctl stop snips-tts
sudo systemctl disable snips-tts

And the problem will disappear :wink:

Ced


#4

It’s strange, I thought I disabled it, but that’s the problem.
Thank you for your help Ced :wink:


#5

you’re welcome :slight_smile: