Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Java Speech API" Topics [ Start new "Java Speech API" Topic  ]

Cloudgarden Discussion Board  
This topic has 2 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
Large strings do not translate to speech in a wave file very well
Author: David
03/31/05 14:23 Reply
I am atempting to use the AudioFileSink to translate a long text string to speech into a wave file. The application is outputting a file with the speech very broken up. I have now attempted translating the text with VoicePad and get the same results. I receive the following in the command window:


Initializing Cloudgarden's JSAPI 1.0, version 1.6.3

INFO:CTTSEngObj::FinalConstruct:starting...
All debug information is currently logged into d:\Nuance\SAPI5.1\data\/VOCALIZER_SAPI_log_current
****Buffer not big enough**** need=136072 have=100000
****Buffer not big enough**** need=215596 have=100000
****Buffer not big enough**** need=259200 have=100000
****Buffer not big enough**** need=131516 have=100000
****Buffer not big enough**** need=169812 have=100000
****Buffer not big enough**** need=208400 have=100000
****Buffer not big enough**** need=259200 have=100000
****Buffer not big enough**** need=144000 have=100000

queue empty

flushed

Shutting down Cloudgarden's JSAPI 1.0 version 1.6.3


I am using Nuance Vocalizer 4.0. The translation sounds good when it is just spoken.

The sample text I am attempting to translate:

THIS IS A WIND WARNING ADVISORY FOR MOTORISTS TRAVELING NORTH BOUND ALONG I 95.
MOTORISTS SHOULD BE AWARE THAT THE MILLER J TYDINGS BRIDGE, BETWEEN EXITS 89 AND 93, IS EXPERIENCING HIGH WINDS.
MOTORIST OPERATING HOUSE TRAILERS, BOX TRAILERS, MOTORCYCLES, VEHICLES WITH A ROOF MOUNT RACK CONTAINING CARGO
OR ANY OTHER VEHICLE THAT MAY BE SUBJECT TO HIGH WINDS, SHOULD CROSS THE BRIDGE USING EXTREME CAUTION.
MOTORISTS MAY WANT TO CONSIDER USING ALTERNATE ROUTES OR DISCONTINUING TRAVELING UNTIL WINDY CONDITIONS SUBSIDE.
RECOMMENDED ALTERNATE ROUTES INCLUDE EXIT 74, 77, 80, OR 85 TO U.S. ROUTE 40 EAST.
ROUTE 40 EAST RUNS PARALLEL TO I 95 NORTH.
PARKING FACILITIES ARE AVAILABLE AT THE MARYLAND HOUSE SERVICE AREA, LOCATED PAST EXIT 80, AND AT PARK AND RIDE LOTS LOCATED AT EXIT 85 AND 89.
PARKING IS PROHIBITED ALONG I 95.
FOR FURTHER INFORMATION YOU MAY CONTACT THE MARYLAND STATE POLICE AT 410-537-1150


Is the too small buffer causing the problem? and is there anyway to set the buffer size or get around this problem?

Re: Large strings do not translate to speech in a wave file very well
Author:Jonathan
Reply 1 of 204/01/05 14:43Reply
Sorry - that does seem to be a problem in the JSAPI implementation - looks like the only solution at present is to make sure the Strings you send the engine are less than 50KB in size. The sample text you sent doesn't appear to be that long - but something appears to be over that limit.

Re: Large strings do not translate to speech in a wave file very well
Author:Jonathan
Reply 2 of 204/01/05 14:45Reply
Also, maybe this post will help your situation:

http://www.cloudgarden.com/servlet/cloudgarden.EntryServlet?mode=draw&class=Notice&NOTICE_ID=2060