Romkabouter/ESP32-Rhasspy-Satellite

Matrix Voice esp32 version volume lowering on (almost) each activation when on speakers

Dimitar-Boychev opened this issue · 12 comments

Hello,
I have downloaded and compiled the latest version.
Cleared the flash and flashed the new version.
Using rhasspy 2.5.11 with internal mqtt.
If I run the matrix voice with "headphones" output there are no problems.
However if I switch to speakers, interesting things start to happen.
Volume is on 100% never touched since flashing.
At the first and sometimes the second activation the volume is loud.
However on every subsequent audio played (I notice this on the wake wav, recored wav and error wav) the volume gradually lowers up to around 20% maybe...
The web interface still shows 100%, if I switch to headphones at this time the volume is low.
If I switch to headphones and restart... no issues for as many activations as I want ... If I switch to speakers same issue starts....

Interesting, I will see if I can reproduce this!

Hmm, I cannot reproduce this yet. I will try it with a clean flash

@Dimitar-Boychev can you check it this is still an issue?
I could play a news broadcast of about 2 minutes without any volume lowering. Also repeatedly waking and processing intents worked as expected.

Hello, same problem here.

Rhasspy 2.5.11 in MQTT Audio with Matrix Voice ESP32.
Each time I unplug/plug (meaning powering off/on) the satellite, it's ok. Then sound is systematically lowering to become inaudible whatever the volume set. Only with speakers, headphones have no problem. Speakers are 2x 8ohm 1W.

Rhasspy Conf here below
Used by Jeedom as domotic solution for handling events.
{
"command": {
"webrtcvad": {
"vad_mode": "2"
}
},
"dialogue": {
"system": "rhasspy",
"volume": "0.4"
},
"handle": {
"remote": {
"url": "http://192.168.1.12/core/api/jeeApi.php?apikey=xxxx&plugin=jeerhasspy&type=event"
},
"system": "remote"
},
"intent": {
"system": "fsticuffs"
},
"microphone": {
"system": "hermes"
},
"mqtt": {
"enabled": true,
"host": "192.168.1.12",
"password": null,
"site_id": "mvsatellite",
"username": null
},
"sounds": {
"system": "hermes"
},
"speech_to_text": {
"deepspeech": {
"open_transcription": true
},
"kaldi": {
"cancel_word": "annule",
"mix_weight": "0.05"
},
"satellite_site_ids": "mvsatellite",
"system": "kaldi",
"vosk": {
"open_transcription": true
}
},
"text_to_speech": {
"nanotts": {
"volume": "0.5"
},
"system": "nanotts"
},
"wake": {
"raven": {
"keywords": {
"hermes": {
"enabled": true
}
}
},
"satellite_site_ids": "mvsatellite"
},
"webhooks": {
"awake": [
"http://192.168.1.12/core/api/jeeApi.php?apikey=xxxx&plugin=jeerhasspy&type=event"
]
}
}

It seems to correspond to this conversation https://community.rhasspy.org/t/matrix-voice-esp32-speaker-output/571/12 you already took part to.

@mansia I see you have Rhasspy volume set to 0.4, I'll try that as well. Since I do have this issue and volume on my Rhasspy is 1. Can't really relate to the issue, but clutching at straws here.

You are on the latest release right?

@Romkabouter I upgraded to latest (but I think it was already) through OTA. Still same issue.
One noticeable thing : it happens only after the satellite has been waked up at least once from Rhasspy. If I send some TTS before waking up the matrix, the sound is ok. As soon as I woke it up and recognized some intent, the problem appears.

I have a second matrix voice still in its box. I'm going to upload the exact same firmware and test to see if it's not a board problem. I'll let you know.

@mansia tried with volume set to 0.4. No issues here :
Here is a video

https://youtu.be/j_oGIpDOPgk

edit: I will clear the chip and do a start from scratch soon

@mansia I have reset the chip and reïnstalled from scratch. No issues...... As long as I cannot reproduce this, it is hard to fix ;)

Hi @mansia I still cannot reproduce this, I am sorry.
Do you still have issue or are you using something else now?