Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


Speech library for the DEVICE!


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 12-01-2007, 01:02 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by agraham View Post
Look out for a link to appear to "fliteDeviceUpdate1"
The update is available but Erel has posted it under the original name on the original download link so if you have downloaded before this message appears then download again. The ReadMe is slightly updated as well. The fliteDLL.dll should be dated 1st Dec 2007 and be 3,111,936 bytes long. I am afraid my version control sucks a bit.
Reply With Quote
  #12 (permalink)  
Old 12-01-2007, 01:41 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I am speechless, while my device is talking like a waterfall. Works like a charm. agraham you did great! The engine is based on English, yet with some intentional false spelling it is possible to have Japanese, Spanish and German words pretty well pronounced. dzt will probably try it with Greek and derez with Hebrew

What is the appropriate credit note for all those who will use this engine?
For example:

Quote:
Text-to-Speech engine by Carnegie Mellon University,
ported to the Pocket PC by Andrew Graham, UK
Please be so kind as to advise.
Reply With Quote
  #13 (permalink)  
Old 12-01-2007, 02:11 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
What is the appropriate credit note for all those who will use this engine?
As with a lot of open source it is a little unclear as there are lot of separate source files in the project, writen by different people at different times with sometimes different "free to use" licenses. All appear to permit virtually any use whatever, including commercial, as long as no liability reflects back upon the original writers.

This site is explicitly mentioned in the official flite documentation but distributes a pre-compiled version of the same engine with only a passing mention of its source and no explicit license conditions.

http://www.viksoe.dk/code/flite.htm

Therefore I guess that your proposal is fine but I would include a bit more description and the link http://fife.speech.cs.cmu.edu/flite/

Quote:
The fliteDLL.dll is based upon the FLITE 1.3 speech synthesis engine.
FLITE originated from and is maintained by the CMU (Carnegie Mellon University) .
http://fife.speech.cs.cmu.edu/flite/

This FLITE dll was ported to the Pocket PC by Andrew Graham
Erel is closer to the commercial scene than I. No doubt he will comment if he thinks it necessary.
Reply With Quote
  #14 (permalink)  
Old 12-01-2007, 02:41 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

I will just comment that I'm amazed to see your projects, and I'm sure that this library will be useful for many of us .
I want to thank you on the behalf of all our community for these great contributions.
Reply With Quote
  #15 (permalink)  
Old 12-01-2007, 03:52 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default example prog please?

How do I create the voice object?
I looked at the readme and did

voice.new1
voice.say("hello world")

in App_Start but it doesnt work? what have i done wrong
Reply With Quote
  #16 (permalink)  
Old 12-01-2007, 05:07 PM
Newbie
 
Join Date: Oct 2007
Posts: 5
Default Check this.

Have you tested something about this...?
Attached Files
File Type: sbp english_voice.sbp (697 Bytes, 54 views)
Reply With Quote
  #17 (permalink)  
Old 12-01-2007, 05:52 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks, how did u add the object?
I did add components but it still didnt have any object listed?

Update - problem solved- worked out that u only add Flitedevice.dll, not flite.dll

Last edited by colin9876 : 12-01-2007 at 06:34 PM.
Reply With Quote
  #18 (permalink)  
Old 12-01-2007, 06:01 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by colin9876 View Post
what have i done wrong
Firstly it only works on the device - I have a different solution for the desktop - see the first post of this thread.

Ensure both dlls are in the same folder as your B4PPC app.

Add the fliteDevice.dll to your project by Tools->Components -> Add DLL

Add a fliteDevice object by Tools-> AddObject "SomeName"

Save the app to the folder where both dlls are located.

This should then work

SomeName.New1
SomeName.Say("Hello world")


If you get a complaint about P/Invoke then move the fliteDLL.dll to your Windows folder .

BTW just saying "it doesn't work" is not conducive to finding problems. A description of the way in which it does not work (especially with any error message) will usually get you a solution much quicker.
Reply With Quote
  #19 (permalink)  
Old 12-02-2007, 07:44 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default Thanks

Yes I was using the device, its a clever library. The problem was I had added both dlls as components and then it wouldnt allow me to add the object

When I only added the FliteDevice.dll component it allowed me - Just out of interest why is this?

Also in theory would it be possible to write a basic4ppc prog to run in the background, check every second or so if there is a new SMS message, and if there is read it out. So can Basic4ppc progs? a)Run in background and b)Access text messages???

Last edited by colin9876 : 12-02-2007 at 08:07 AM.
Reply With Quote
  #20 (permalink)  
Old 12-02-2007, 08:47 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by colin9876 View Post
When I only added the FliteDevice.dll component it allowed me - Just out of interest why is this?
I don't understand how you managed to add fliteDLL.dll as a component. As it is not a .NET assenbly you should have got an error when you tried to add it. I do.

On the other questions I suggest you start a new thread in the "Questions & Help Needed" forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 02:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM
Using RAPI library to transfer database from device to desktop mozaharul Questions & Help Needed 4 04-01-2008 08:55 AM
Text To Speech library (desktop only) Louis Additional Libraries 6 11-16-2007 06:15 PM


All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0