Skip to main content
guest
Join | Help | Sign In
Liberty BASIC Community Wiki Home
guest| Join | Help | Sign In
Liberty BASIC Community Wiki
  • Wiki Home
  • Recent Changes
  • Pages and Files
  • Members
  • Home
    • Liberty BASIC FAQ
    • Contests
    • Tutorials
    • Science
    • Shared Code
    • Tips
    • DLLs
    • PublicDomainSprites
    • Member Pages
    • Links
    • Sandbox

SpeechLibrary

Edit 0 2 …
  • 0 Tags
    • No tags
  • Notify
  • RSS
  • Backlinks
  • Source
  • Print
  • Export (PDF)
Older Version Newer Version

lbjoseph lbjoseph Oct 5, 2011

Speech Library - lbjoseph lbjoseph

I developed a simple DLL that allows for asynchronous text-to-speech. This means that you can have your program say something out loud, but your program won't have to wait until the computer is finished speaking. This is very useful for interactive speech.

This works on Windows XP, Vista, and Seven. I'm not sure about older systems.

Downloads

You can download the DLL and a demo program here:
Speech.zip
Speech.zip
  • Details
  • Download
  • 12 KB


Getting Started

Using the speech library is simple. First off, it must be initiated at the start of your program, and finalized at the end:
 ' When your program is starting: 
Call Speech.Begin

' When your program is finished:
Call Speech.Finish

Speaking

The text is spoken from a que. If you want the speech engine to immediately say something and forget what it's currently saying, just call Speech.Speak:
 Call Speech.Speak "Hello, user!" 
If you want the speech engine to finish what it's saying, and then say something else, you can add to the speech que. Just call Speech.SpeakQue:
 Speech.SpeakQue "That's all I had to say." 

Shutting Up

If you want to stop the computer while it's speaking, just send a blank string to Speech.Speak:
 Call Speech.Speak "" 
Help · About · Pricing · Privacy · Terms · Support · Upgrade
Contributions to https://basic.wikispaces.com/ are licensed under a Creative Commons Attribution Share-Alike 2.5 License. Creative Commons Attribution Share-Alike 2.5 License
Portions not contributed by visitors are Copyright 2018 Tangient LLC
TES: The largest network of teachers in the world
Turn off "Getting Started"
  1. Home
  2. ...
Loading...