# Tts-ultimate choosing voice

**URL:** https://discourse.nodered.org/t/tts-ultimate-choosing-voice/56264
**Category:** General
**Created:** [7 January 2022 19:07 UTC](https://discourse.nodered.org/t/tts-ultimate-choosing-voice/56264 "2022-01-07T19:07:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bs-eng](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bs-eng/32/51470_2.png) [@bs-eng](https://discourse.nodered.org/u/bs-eng)
#### Post date: [7 January 2022 19:07 UTC](https://discourse.nodered.org/t/tts-ultimate-choosing-voice/56264/1 "2022-01-07T19:07:15Z")

</div>

Hi!  
I am very happy with the results of the [node-red-contrib-tts-ultimate](https://github.com/Supergiovane/node-red-contrib-tts-ultimate).  
I got it working in no time. In my test flow I use it to simply convert a text to audio, play it directly in the browser and make the file available for download.

My question is regarding the chosen voice (using google cloud TTS):  
Is there a way I can change the voice by means of a message?  
How does the command msg have to look like?

I tried this: msg.voice = "sv-SE sv-SE-Standard-D - MALE";  
..without any success.

Any hints?  
Could this be done by means of SSML? What is the syntax of SSML in this node? I did not get this work properly either yet.

Thx for any pointers!

---

<div class="post-metadata">

### Author: ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)
#### Post date: [17 February 2022 10:29 UTC](https://discourse.nodered.org/t/tts-ultimate-choosing-voice/56264/2 "2022-02-17T10:29:12Z")

</div>

Hi  
with the free google translate API, you cannot do SSML.  
You can change the voice by simply add another TTS-Ultimate node and selecting another voice.  
Then, you can use a switch or a function node, to route the inbound message to the first or the second TTS-Ultimate node.  
🙂

---

<div class="post-metadata">

### Author: ![bs-eng](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bs-eng/32/51470_2.png) [@bs-eng](https://discourse.nodered.org/u/bs-eng)
#### Post date: [18 February 2022 14:44 UTC](https://discourse.nodered.org/t/tts-ultimate-choosing-voice/56264/3 "2022-02-18T14:44:40Z")

</div>

Thx for the idea!  
I am using the paid goggle service for TTS. But somehow the SSML gets removed from my text or does not work properly due to replacement of symbol " and '.  
Are there any work arounds for that?

Thx a lot!  
JR

---

<div class="post-metadata">

### Author: ![Supergiovane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/supergiovane/32/9716_2.png) [@Supergiovane](https://discourse.nodered.org/u/Supergiovane)
#### Post date: [2 March 2022 15:38 UTC](https://discourse.nodered.org/t/tts-ultimate-choosing-voice/56264/4 "2022-03-02T15:38:55Z")

</div>

Hi,  
TTS Ultimate do not do any type of striping on chars. Maybe the TTS Service does it.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [1 May 2022 15:39 UTC](https://discourse.nodered.org/t/tts-ultimate-choosing-voice/56264/5 "2022-05-01T15:39:09Z")

</div>

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