From 05537336ca4ac98008f02f8e93c5427ef6925046 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 26 Apr 2023 22:27:31 +0200 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 68d6489..6869cf8 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,24 @@ NOTE: * The TTS messages are played synchronously, *i.e.* they are played one after the other and do not overlap each other. ![image](https://user-images.githubusercontent.com/28947887/234686638-79272a70-aaff-426d-9d01-6252bf779a1b.png) + +## JSON +This is an example how the send JSON data could look like: +```json +{ + "command": "moose_text2speech", + "text": "This is the text that is converted to speech.", + "provider": 0, + "voice": "Microsoft David Desktop", + "culture": "en-US", + "gender": "male", + "volume": 100 +} +``` +* `command`: This must be "moose_text2speech" for the listener to know that this received data was meant to be converted to speech. +* `text`: This is the text that is converted to speech. +* `provider`: 0=Microsoft (default), 1=Google TTS engine +* `voice`: The explicit voice to use. +* `culture`: (Optional) The languange code, *e.g.* "en-US", "en-GB", "de-DE", ... +* `gender`: (Optional) Can be "male", "female" or "neutral". +* `volume`: (Optional) For Microsoft a value in [0,100] (default 100). For Google [-96, 10] as the volume gain in DB (default 0).