# Save TTS.mp3 in openHAB (in which the language is not supported by Alexa) and play it by echo dot

**URL:** <https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118>\
**Category:** Off-Topic\
**Tags:** openhab, tts, amazonecho\
**Created:** [March 23, 2020, 6:04pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118 "2020-03-23T18:04:56Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 23, 2020, 6:04pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/1 "2020-03-23T18:04:56Z")

</div>

Hello.  
I am using echo dot to send the reminders based on the rules created in openHAB. The problem is that the user language is not supported by Alexa. So, when I use OpenHAB to do TTS and send it to Alexa, echo can not play the audio in the right way.  
Is there any way to save the mp3 file created in openHAB (tts.mp3) and make Alexa play it as a normal mp3 file?

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [March 23, 2020, 6:17pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/2 "2020-03-23T18:17:16Z")

</div>

I would guess some of the music player binding features might be work trying. I do not use Alexa though.

---

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 23, 2020, 6:39pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/3 "2020-03-23T18:39:11Z")

</div>

Would you please be more specific?i am not an OpenHAB expert. where are these features? You mean use these features to access to tts.mp3 file ?

---

<div class="post-metadata">

**Author:** ![Kim\_Andersen](https://community.openhab.org/letter_avatar_proxy/v4/letter/k/6bbea6/32.png) [@Kim\_Andersen](https://community.openhab.org/u/Kim_Andersen)\
**Post date:** [March 23, 2020, 7:51pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/4 "2020-03-23T19:51:31Z")

</div>

> [@parvaneh\_parvin](#):
>
> So, when I use OpenHAB to do TTS and send it to Alexa, echo can not play the audio in the right way.

Thats a bit unclear..  
TTS use a regular speaker, (could be Alxea speaker, Google Home speaker or any other speaker you have added to your openhab system).  
I dont know of Aleax can play back a mp3 file, (I would assume it can). But if thats what you need, all you need to do, is to cast the mp3 file to your device.

---

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 24, 2020, 10:08am UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/5 "2020-03-24T10:08:38Z")

</div>

Thanks, I know that TTS use any regular speaker. The problem is that Alexa support a few languages and if you send any audio which is not included in supported languages it plays it in a strange accent.  
I didn’t know that it is possible to access the .mp3 file and cast it to a drive and then I can play that file from Alexa.  
Thanks for your help.

---

<div class="post-metadata">

**Author:** ![rkrisi](https://community.openhab.org/user_avatar/community.openhab.org/rkrisi/32/68680_2.png) [@rkrisi](https://community.openhab.org/u/rkrisi)\
**Post date:** [March 24, 2020, 10:45am UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/6 "2020-03-24T10:45:13Z")

</div>

So you are not using any TTS on openHAB but just send the string you want it to say.  
You can use one of the supported TTS services in openHAB so the sound will be generated on your server and it will only use Alexa as a speaker. However the voice will be different…

---

<div class="post-metadata">

**Author:** ![Kim\_Andersen](https://community.openhab.org/letter_avatar_proxy/v4/letter/k/6bbea6/32.png) [@Kim\_Andersen](https://community.openhab.org/u/Kim_Andersen)\
**Post date:** [March 24, 2020, 12:25pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/7 "2020-03-24T12:25:55Z")

</div>

> [@parvaneh\_parvin](#):
>
> The problem is that Alexa support a few languages and if you send any audio which is not included in supported languages it plays it in a strange accent.

That will depend on the TTS you´re using. I use GoogleTTS, and it works fine for Danish. I think GoogleTTS support most language.

---

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 24, 2020, 3:32pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/8 "2020-03-24T15:32:07Z")

</div>

> [@rkrisi](#):
>
> o you are not using any TTS on openHAB but just send the string you want it to say.  
> You can use one of the supported TTS services in openHAB so the sound will be generated on your server and it will only use Alexa as a speaker. However the voice will be different

The problem is that the gateway which we run openHAb on it has no speakers

---

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 24, 2020, 3:35pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/9 "2020-03-24T15:35:26Z")

</div>

Our gateway has no speaker

---

<div class="post-metadata">

**Author:** ![rkrisi](https://community.openhab.org/user_avatar/community.openhab.org/rkrisi/32/68680_2.png) [@rkrisi](https://community.openhab.org/u/rkrisi)\
**Post date:** [March 24, 2020, 3:35pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/10 "2020-03-24T15:35:37Z")

</div>

That’s not a problem if the Alexa device can be seen as an Audio Sink from openHAB. (I don’t know because I don’t use Alexa devices).  
If yes, you can use it as like it is connected to your server.

---

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 24, 2020, 3:39pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/11 "2020-03-24T15:39:51Z")

</div>

Thanks, I dig a bit and come back to you in a bit.

---

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 24, 2020, 3:50pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/12 "2020-03-24T15:50:28Z")

</div>

Audio sink is not possible, as amazon does not support this, unfortunately.

---

<div class="post-metadata">

**Author:** ![rkrisi](https://community.openhab.org/user_avatar/community.openhab.org/rkrisi/32/68680_2.png) [@rkrisi](https://community.openhab.org/u/rkrisi)\
**Post date:** [March 24, 2020, 7:16pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/13 "2020-03-24T19:16:23Z")

</div>

Then you can’t do anything. That string you send to Alexa is processed by itself (I think it is sent to Amazon services first) and you can’t extract it. So openHAB does not know anything about this…  
What you can do is use a 3rd party TTS service with a device that supports audio sink.  
For example Google Home devices can do this easily through openHAB, but there are plenty of other solutions (just attach a simple speaker to your server, etc…).

---

<div class="post-metadata">

**Author:** ![Kim\_Andersen](https://community.openhab.org/letter_avatar_proxy/v4/letter/k/6bbea6/32.png) [@Kim\_Andersen](https://community.openhab.org/u/Kim_Andersen)\
**Post date:** [March 24, 2020, 11:04pm UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/14 "2020-03-24T23:04:18Z")

</div>

Are you sure that Alexa can work as an audio sink?

---

<div class="post-metadata">

**Author:** ![Andrew\_Rowe](https://community.openhab.org/user_avatar/community.openhab.org/andrew_rowe/32/37075_2.png) [@Andrew\_Rowe](https://community.openhab.org/u/Andrew_Rowe)\
**Post date:** [March 25, 2020, 2:56am UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/15 "2020-03-25T02:56:36Z")

</div>

alexa can not serve as an audio sink  
I’ve been trying to find the thread but… anyhow… no

---

<div class="post-metadata">

**Author:** ![parvaneh\_parvin](https://community.openhab.org/user_avatar/community.openhab.org/parvaneh_parvin/32/51406_2.png) [@parvaneh\_parvin](https://community.openhab.org/u/parvaneh_parvin)\
**Post date:** [March 30, 2020, 9:52am UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/16 "2020-03-30T09:52:43Z")

</div>

Thanks a lot, We use Alexa in our European project and i cant do anything about it, Thanks for your help. For sure we should find another way 🙂  
i was thinking to use ‘smart automation Routine’ in OpenHab to call a skill of Alexa (which play mp3 file)

---

<div class="post-metadata">

**Author:** ![system](https://community-openhab-org.s3-eu-central-1.amazonaws.com/original/2X/6/6a52f2ac5d00e4c7b50471a354b3a9221188be90.png) [@system](https://community.openhab.org/u/system)\
**Post date:** [May 11, 2020, 1:53am UTC](https://community.openhab.org/t/save-tts-mp3-in-openhab-in-which-the-language-is-not-supported-by-alexa-and-play-it-by-echo-dot/95118/17 "2020-05-11T01:53:47Z")

</div>

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.
