Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: configure audio sample rate #87

Open
bs-eng opened this issue Jun 5, 2024 · 0 comments
Open

Feature request: configure audio sample rate #87

bs-eng opened this issue Jun 5, 2024 · 0 comments
Assignees

Comments

@bs-eng
Copy link

bs-eng commented Jun 5, 2024

Hi Giovane!

Feature description
A feature request regarding sample rate:
When receiving audios from the TTS node using googleTTS, the audios come with a sample rate of 24'000 Hz. My devices receive audios (not only tts) from several sources and cannot switch between sample rates. Therefore it would be great to be able to set the sample rate either in the node or as input parameter.

On the google TTS REST API reference I found that it is generally possible:
https://cloud.google.com/text-to-speech/docs/reference/rest/v1/AudioConfig

The parameter sampleRateHertz in the AudioConfig needs to be set for this. The AudioConfig ist part of the request body according to:
https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize

Expected behavior
Either a field in the node setup called 'sample rate' or a parameter in a msg would be great. Though I think a setting in the node would suffice.

TTS-Ultimate Version
2.0.7

Are you running node-red behind homematic, docker or anything similar?
standalone on small linux server

Thanks for considering!
Cheers
JR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants