# \[SOLVED\] Text to Speech (TTS) output of negative numbers in German

**URL:** <https://community.openhab.org/t/solved-text-to-speech-tts-output-of-negative-numbers-in-german/116727>\
**Category:** Text-to-Speech\
**Tags:** pico-tts\
**Created:** [February 10, 2021, 9:58pm UTC](https://community.openhab.org/t/solved-text-to-speech-tts-output-of-negative-numbers-in-german/116727 "2021-02-10T21:58:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![openhabgs](https://community.openhab.org/user_avatar/community.openhab.org/openhabgs/32/29233_2.png) [@openhabgs](https://community.openhab.org/u/openhabgs)\
**Post date:** [February 10, 2021, 9:58pm UTC](https://community.openhab.org/t/solved-text-to-speech-tts-output-of-negative-numbers-in-german/116727/1 "2021-02-10T21:58:45Z")

</div>

I faced the problem that negative (temperature) values (as occurring these days outside…) are converted into speech without the “minus”, e.g. “-6°C” is spoken as “sechs”.  
This problem occurs with MaryTTS as well as picoTTS. (Strangely enough, when using Spanish or Italian in picoTTS, the “minus” was spoken).  
Finally I detected by chance that the “minus” is omitted when the preceeding word in the sentence (see below) has no “blank” (pause) before the variable with the number.

> say ( “Die Aussentemperatur beträgt” (AussenTemperature.state as Number).intValue + " Grad") }  
> // the “minus” is not spoken  
> say ( “Die Aussentemperatur beträgt\_” (AussenTemperature.state as Number).intValue + " Grad") }  
> // the “minus” is spoken

---

<div class="post-metadata">

**Author:** ![cidi](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@cidi](https://community.openhab.org/u/cidi)\
**Post date:** [May 6, 2021, 7:36pm UTC](https://community.openhab.org/t/solved-text-to-speech-tts-output-of-negative-numbers-in-german/116727/2 "2021-05-06T19:36:35Z")

</div>

I had the problem that “one-one” was said instead of “eleven”.  
my solution:

```auto
vtemptext = vtemptext + "Draußen sind es nur <say-as interpret-as=\"cardinal\">" + Graddraussen + "</say-as> Grad." 
say(vtemptext,"googletts:deDEWavenetB","chromecast:chromecast:ChromecastEsszimmer")

```

It also works with the minus.  
Not so nice is the value 1 or -1. Google then says “… (minus) eins Grad”
