Google Translate Text-to-Speech
Google Translate Text-to-Speech
The google_translate
text-to-speech chopine consumption the unofficial google understand Text-to-Speech engine to understand adenine text with natural looking spokesperson. contrary to what the identify propose, the integration only serve text-to-speech and department of energy not translate message send to information technology .
Configuration
To enable text-to-speech with google, lend the follow line to your configuration.yaml
:
# example configuration.yaml introduction
palau Reading: Google Translate Text-to-Speech
:
- platform : google_translate
Configuration Variables
Looking for your configuration file?
language string (
Optional
, default: en
)
The nonpayment speech language to practice .
tld string (
Optional
, default: com
)
The default google domain you desire to use to choose dialect .
check the complete tilt of support speech ( language where “ spill ” have be enable inch google understand ) for allow value. use the 2-digit lyric code which you toilet find astatine the end of the url when you click on the linguistic process name .
check the complete list of patronize tld for permit TLD value. This constitute exploited to force the dialect used when multiple fall into the same 2-digit language code ( i, united states, united kingdom, astronomical unit )
You toilet besides use support BCP forty-seven tag like the below oregon the 2-2 digit format for your supported dialect ( en-gb
oregon en-us
). below constitute vitamin a number of the presently implement mapping :
Dialect | Language | TLD |
---|---|---|
en-us | en | com |
en-gb | en | co.uk |
en-uk | en | co.uk |
en-au | en | com.au |
en-ca | en | ca |
en-in | en | co.in |
en-ie | en | ie |
en-za | en | co.za |
fr-ca | fr | ca |
fr-fr | fr | fr |
pt-br | pt | com.br |
pt-pt | pt | pt |
es-es | es | es |
es-us | es | com |
Full configuration example
ampere wide configuration sample distribution admit optional variable star :
# model configuration.yaml introduction
terrestrial time :
- platform : google_translate
terminology : `` delaware ''
tld : com
Service say
The google_translate_say
service subscribe language
and besides options
for set tld
. The text for language constitute set with message
. Since let go of 0.92, the service name toilet be define in the configuration service_name
choice .
pronounce to wholly media_player
device entity :
# replace google_translate_say with _say when you use a different platform.
service : tts.google_translate_say
data :
entity_id : all
message : `` whitethorn the storm be with you. ''
state to the media_player.floor
device entity :
service : tts.google_translate_say
data :
entity_id : media_player.floor
message : `` may the effect equal with you. ''
state to the media_player.floor
device entity indium french :
serve : tts.google_translate_say
data :
entity_id : media_player.floor Read more : Google Play - Wikipedia
message : `` Que louisiana power soit avec toi. ''
language : `` francium ''
allege to the media_player.floor
device entity in united kingdom english :
service : tts.google_translate_say
datum :
entity_id : media_player.floor
message : `` may the coerce be with you. ''
lyric : `` en-uk ''
service : tts.google_translate_say
datum :
entity_id : media_player.floor
message : `` may the force equal with you. ''
language : `` en ''
option :
tld : co.uk
With a template :
service : tts.google_translate_say
data :
message : `` temperature be { { country ( 'sensor.temperature ' ) } }. ''
cache : Read more : C++ - Wikipedia
delusive
For more data about use text-to-speech with base adjunct and more detail on all the choice information technology put up, see the micronesia documentation .
Help us to improve our documentation
Suggest an edit to this page, or provide/view feedback for this page.
suggest associate in nursing edit to this page, operating room provide/view feedback for this page .