Jump to content

Text Speecher.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
Hello CodeCall ..

Today i'm gonna show you how to make Text Speecher
i think you understand ... something that you write ,click SPEECH and there will speech that what you write ..

The Program is too simple to build , finally will look like this ..

Posted Image

All you need are :
-A Text Box
-2 Command Button

The Text Box size like in photo

the CommandButton1 rename with SPEECH and the Code is

Dim SAPI

SAPI = CreateObject("SAPI.spvoice")

SAPI.Speak(Textbox1.text)


The Commanbutton2 rename with Exit and the code is
 End 


Best Wishes ,
mendim.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Perhaps you could explain what SAPI is, the parameters you are able to pass to speak() (optional and require, the types, etc) and what "SAPI.spvoice" is. I'm viewing this from a beginners perspective and after using your code I wouldn't know anything more about it than what I did before reading.

#3
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
I have forgotten to answer this question :$
The Speech Application Programming Interface or SAPI is an API developed by Microsoft to allow the use of speech recognition and speech synthesis within Windows applications.

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
What params does/can it take to initiate it?

#5
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
I really don't understand nothing that you're asking but .. this programs works ..
cause it connect with the SAPI that is on Windows and makes the Voice.. :)

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Here, allow me.

The Speech Application Programming Interface (SAPI for short) is an API that uses Microsoft's built-in speech reading tools to read out text.

In this tutorial, mendim late-binded an object to the variable, so it is impossible to tell from the IntelliSense drop-down lists which members (methods and properties) the API accepts. For this, you need to consult the MSDN documentation. If you wish to import the API, it is available at C:\Program Files\Microsoft Speech SDK 5.3\Lib\i386\sapi.lib.

SAPI Object classes (SAPI 5.3)
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
mendim.

mendim.

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,393 posts
lol ,
Thnxx XAV for info . :)

#8
D4rk DeMoN

D4rk DeMoN

    Newbie

  • Members
  • Pip
  • 4 posts
Thank You
mendim. 
Good Tutorial :)