LB Booster
« Text-To-Speech »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:59am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Text-To-Speech  (Read 504 times)
joker
Global Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 157
xx Text-To-Speech
« Thread started on: Nov 2nd, 2015, 09:51am »

Richard, I ran across your program "_speech.bas" while researching the task of getting Windows to speak a few phrases.

It works well on my Win7 setup, but I'm curious how well you think this method will stand up as time marches on. Perhaps there's a much better way that you are familiar with?

I was actually creating a hardware solution when I started with the "due diligence" Windows search. Anyone else know of a solution?

EDIT: I did find this link: http://basic.wikispaces.com/Calling+methods+in+COM+objects

EDIT2: Also this one: http://basic.wikispaces.com/SpeechLibrary
« Last Edit: Nov 2nd, 2015, 10:51am by joker » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Text-To-Speech
« Reply #1 on: Nov 2nd, 2015, 10:59am »

on Nov 2nd, 2015, 09:51am, pnlawrence wrote:
It works well on my Win7 setup, but I'm curious how well you think this method will stand up as time marches on.

Assuming the program you are referring to is this one it uses the native SAPI5 API, which comes as standard with Windows and, as far as I can see from that MSDN reference, is still the preferred way of accessing the text-to-speech engine in Windows 10 (when not using managed code).

Quote:
Perhaps there's a much better way that you are familiar with?

What is the source of your concern? All the other ways of achieving speech synthesis in Liberty BASIC (that I am aware of) rely on third-party DLLs, which I would expect to be more vulnerable to potential compatibility and reliability issues than the native API supported by Microsoft.

Richard.
User IP Logged

joker
Global Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 157
xx Re: Text-To-Speech
« Reply #2 on: Nov 2nd, 2015, 11:07am »

Concern? Windows 10 was my concern, but you slayed that dragon for me! Thanks!

This will be perfect in my project, since I only have a few short phrases to speak ... over and over ... the same each time. This will save me a hardware project, too.

As it turns out, there is only one voice available for Win7 and typical of MS you get what they provide and that's it.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Text-To-Speech
« Reply #3 on: Nov 2nd, 2015, 2:35pm »

on Nov 2nd, 2015, 11:07am, pnlawrence wrote:
As it turns out, there is only one voice available for Win7 and typical of MS you get what they provide and that's it.

Microsoft Anna I think, but you can of course download others (not necessarily free though). There are some nice SAPI5 voices available (at a cost) from http://www.textaloud.com/ . As a test I purchased Ivona Brian (a British English voice) and selected it in the LB program thus:

Code:
   data "<voice required='name=IVONA 2 Brian OEM'>This is a demonstration of speech synthesis</voice>"
 

Richard.

User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls