Reply to post

[FAQ]Problem: words and sentences written in CAPITAL letters are read letter-by-letter

Author
Admin
Administrator
  • Total Posts : 275
  • Reward points: 0
  • Joined: 2010/11/22 00:00:00
  • Location: USA
  • Status: offline
2015/08/21 06:41:22 (permalink)

Problem: words and sentences written in CAPITAL letters are read letter-by-letter

Actually the way the text with all capital letters is read, depends on the Text-to-Speech voice software you are using, not my app. Some voices may read such text normally, others may read it letter by letter. Somewhere in the voice settings they may have an option to read upper case letter text one or the other way.
 
There is a way in @Voice to convert uppercase letter to lower case, it’s slightly technical and could cause other problems when reading text, where upper case is important for some reason. Here is how you could do this:
 
-          Start @Voice app and open some text in the language you want to read in, e.g. in Spanish.
-          Press the menu button – Settings – Edit speech.
-          Press the button with + sign at the top to add a new speech replacement.
-          In the “Type” field, select “Regular Expression (RegEx)
-          In the Pattern field, type exactly this, also make sure that there are no spaces before and after this text:

\b[:upper:]{2,}\b
 
-          In the Replace field, type exactly:

A->a
 
-          If the keyboard is still showing on the screen after this typing, press the Back button once on your device to hide the keyboard, then press the “Save” button.
 
Now the program will change any “word” that consists of 2 or more uppercase letter to lower case and should read it aloud normally. Of course, this may not always be what you want, e.g. it would read USA as "usa" etc. No perfect solution.
 
Greg
post edited by Admin - 2020/05/03 13:52:30

4 Replies Related Threads

    orineu
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2019/10/09 14:37:59
    • Status: offline
    Re: Problem: words and sentences written in CAPITAL letters are read letter-by-letter 2019/12/26 18:00:08 (permalink)
    I actually have the reverse issue, where most acronyms are attempted as rather nonsensical words, and I've had to add a lot of acronyms to my custom word list. How could i RegEx the replace field to add spaces between each letter?
    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Problem: words and sentences written in CAPITAL letters are read letter-by-letter 2019/12/28 05:22:38 (permalink)
    first, if you have added she speech replacement listed at the top of this thread, it should be disabled, then test again.
    If the TTS voice you are using still reads them as nonsensical words afterwards, you could create the following replacement:
     
    Type: RegEx
    Pattern: ([:upper:])([:upper:])
    Replace: $1 $2                     <-- there should be 1 space after $2 as well
     
    It will change text like "USA" to "U S A "
    post edited by Admin - 2019/12/28 05:39:20
    CorbettMD
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2021/08/28 10:59:32
    • Location: Toronto, Canada
    • Status: offline
    Re: Problem: words and sentences written in CAPITAL letters are read letter-by-letter 2022/09/14 12:42:18 (permalink)
    This is very useful for google Wavenet in medical texts with many acronyms. How to extend to cases with more than 2 (odd number) consecutive uppercase letters? E.g. BAD becomes B AD when desired output B A D?

    My solution is two regex rules in sequence:
    ([:upper:])([:upper:])([:upper:])
    $1 $2 $3
    Then
    ([:upper:])([:upper:])
    $1 $2
    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Problem: words and sentences written in CAPITAL letters are read letter-by-letter 2022/10/02 20:37:21 (permalink)
    Indeed seems like you would need to create separate replacements for the longest words first, then going down to shortest... I thought that the replacement for just two letters would work reclusively, but apparently this is not how I programmed it. Sorry...
     
    Greg
    Jump to:
    © 2024 APG vNext Commercial Version 5.1