Author Topic: Stop voice interpreting g to grams  (Read 1570 times)

Shenron

  • Newbie
  • *
  • Posts: 16
Stop voice interpreting g to grams
« on: November 10, 2023, 04:38:22 PM »
Hi,
Do anyone know how to force the voice synthesis to spell "g" correctly ?
When i have a sentence with a number and the letter g like "5 g" the voice say "5 grams".

This only happen when "g" is lower case, a workaround could be to upper case the sentence but if someone know the root cause of this behavior and a fix for this i would prefer.

I don't think this is a Voice Attack issue and i sure this is not new, it's just bothering me these times  ::)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4767
  • RTFM
Re: Stop voice interpreting g to grams
« Reply #1 on: November 11, 2023, 12:22:14 AM »
That would be determined by the text-to-speech engine/voice you're using.

Oddly, at least on my machine, "Microsoft David Desktop" pronounces it as "5 gee", whereas "Microsoft Zira Desktop" pronounces it "5 grams"


Some text-to-speech providers may offer settings to change this behavior, but Microsoft does not, as far as I'm aware, for the mentioned voices.

SSML may offer markup that alters the pronunciation, however if upper-casing the text also works, the latter would arguably be the simpler option.

Shenron

  • Newbie
  • *
  • Posts: 16
Re: Stop voice interpreting g to grams
« Reply #2 on: November 11, 2023, 04:09:04 AM »
Hi Pfeil, thank you for the explanation.

Indeed, Microsoft voices are no settings.
I like the clear accent of Zira, it fit well as a computer voice.

I updated my command by checking the Upper Case checkbox.
Will see if i need further tweak but i agree, the simplest solution is often the best choice