svrooij / sonos2mqtt

:speaker: Sonos mqtt controller. Control your speakers from your mqtt server. mqtt-smarthome insprired.
https://sonos2mqtt.svrooij.io/
MIT License
76 stars 18 forks source link

Neural voices #155

Closed svrooij closed 2 years ago

svrooij commented 3 years ago

Implement neural voices for TTS request

https://github.com/svrooij/node-sonos-ts/issues/146

svrooij commented 2 years ago

@christianeuropa with the latest release of sonos2mqtt you should be able to use the engine options for TTS, if you also updated your sonos-tts-polly instance that is.

This code can now be used https://github.com/svrooij/node-sonos-ts/blob/8bf617855a4f5e36d4e6bcf45af96f4562236e4b/src/models/requests.ts#L99-L102

Related to https://github.com/svrooij/node-sonos-tts-polly/issues/10

christianeuropa commented 2 years ago

Where can I change the engine? With the payload: { "command":"speak", "input": { "text": "Wir gehen heute einkaufen. Es wird bestimmt ein schöner Tag.", "endpoint": "https://your.tts.endpoint/api/generate", "lang": "de-DE", "gender": "female", "name": "Vicki", "engine": "neural", "volume": 30,
"onlyWhenPlaying": false, "delayMs": 700 } }

it doesn't work

edit: now it works, thanks a lot