Files
baibot-withmcp/docs/configuration/speech-to-text.md
Slavi Pantaleev 946aa9d9e9 Initial commit
2024-09-12 13:44:06 +03:00

2.5 KiB

🦻 Speech-to-Text

Below are some configuration settings related to Speech-to-Text.

You may also wish to see:

🪄 Flow Type

Controls how voice messages sent by 👥 user are handled.

The following configuration values are recognized:

Example: !bai config room speech-to-text set-flow-type ignore (this can also be set globally, see 🛠️ Room Settings)

🔤 Language

Lets you specify the language of the input voice messages, to avoid using auto-detection. Supplying the input language using a 2-letter code (e.g. ja) as per ISO-639-1 may improve accuracy & latency.

Speech-to-Text Language setting usage example

In the above example screenshot, even without a language specified, the voice was understood correctly as Bulgarian, but was produced in latin, not Cyrillic, which is wrong.

If different 👥 user are using different languages, do not specify a language.

💡 Certain models (like OpenAI's Whisper) may perform auto-translation if you specify a language, but you're speaking another one. You may abuse this side-effect for performing voice-to-text translation, but be aware that not all models behave this way.

Example (setting it to Japanese): !bai config room speech-to-text set-language ja (this can also be set globally, see 🛠️ Room Settings)