wvware / eyes-free

Automatically exported from code.google.com/p/eyes-free
0 stars 1 forks source link

Talkback: add number processing functionality #436

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Android is designed primarily for mobile devices, where its users deal with 
multi-digit phone numbers. Presently, text to speech engines read phone numbers 
wholely, decreasing speed, efficiency and productivity.
Example: Google TTS for example, Reads a phone number ‘9823774056’.
It is read as a whole number, with unnecessary verbosity of thousands, millions 
and billions.
It would be very convenient and quick if the above number’s digits were read 
individually, removing the verbosity of thousands, millions and billions, as 
well as paralleling the standard pronunciation of numbers.
Example: According to the above proposal, the number ‘9920’ should be 
pronounced as ‘nine nine two zero’ instead of ‘nine thousand nine hundred 
twenty’.
Some users also prefer numbers to be spoek with pairs of digits.
Example: According to the above proposal, ‘2015’ should be read as 
‘twenty fifteen’ instead of ‘two zero one five’ or ‘two thousand 
fifteen’.
A potential problem may be raised, of the implementation of the pairs of digits 
speaking functionality, whose solution is provided below.
Example: If the number has odd number of digits, such as ‘123’ which has 
three digits’. In this case, if the pairs of digits functionality is enabled, 
the first digit should be spoken separately, and the rest in pairs, that is 
‘one twenty three’.
To serve the above, some text to speech engines such as ETI Eloquence & 
Vocalizer have their own number processing options. However, text to speech 
engine specific number processing options result in duplication of number 
processing code for each different TTS. Moreover, it is more intuitive and 
ideal for a screen reader to have global number processing options, than text 
to speech engines having them specifically, in my opinion. Many text to speech 
engines do not have number processing options, such as ESpeak & Google TTS, 
where the proposed feature would be beneficial.

Original issue reported on code.google.com by bhavya.s...@gmail.com on 22 Feb 2015 at 11:03

GoogleCodeExporter commented 8 years ago
Please, add this feature: it would make Talkback even better! Thanks!  Angela 
from Italy

Original comment by angela.d...@gmail.com on 22 Feb 2015 at 11:55

GoogleCodeExporter commented 8 years ago
please add this feature. secund thing please impruve your tts responce. your 
tts very slow compair to other tts.

Original comment by mparam...@gmail.com on 23 Feb 2015 at 6:18

GoogleCodeExporter commented 8 years ago
I would also love to see this feature as a standard part of the Google TTS as 
it is frustrating to try and distinguish a phone number from billions....  
Thanks for your attention.

Original comment by schmoo...@gmail.com on 5 Mar 2015 at 3:52

GoogleCodeExporter commented 8 years ago
One possible solution is to use setContentDescription() with the text (numbers) 
separated by spaces.
for eg: '9 8 2 3 7 7 4 0 5 6'
This works well in textviews or any other readable Views.

BUT, doesn't work in Edit text boxes, coz android adds some extra talkback 
words like
1. 'double tap edit'
2. 'edit box' then <Text inside textbox> then 'editing'.

In 2nd scenario, if text is number, then it reads as thousands and millions.
I've tried overriding AccessibilityDelegate() but doesn't work.

if anyone has solution to fix. Please reply.
Thanks.

Original comment by Piyu.Ar...@gmail.com on 21 Sep 2015 at 3:48