• (2 Pages)
  • +
  • 1
  • 2

Making your computer talk Rate Topic: ***** 2 Votes

#16 biggerB  Icon User is offline

  • If at first you don’t succeed, call it version 1.0
  • member icon

Reputation: 80
  • View blog
  • Posts: 760
  • Joined: 11-June 10

Posted 09 November 2010 - 02:18 AM

It works for me... here is the finished app you can try it... it works. I don't know why you are having problems.
Attached File  WindowsApplication3.zip (328.78K)
Number of downloads: 291
Was This Post Helpful? 0
  • +
  • -

#17 RetardedGenius  Icon User is offline

  • >>──(Knee)──►
  • member icon

Reputation: 126
  • View blog
  • Posts: 555
  • Joined: 30-October 10

Posted 09 November 2010 - 08:31 AM

View PostbiggerB, on 09 November 2010 - 01:18 AM, said:

It works for me... here is the finished app you can try it... it works. I don't know why you are having problems.
Attachment WindowsApplication3.zip

I downloaded your program and ran it, the exact same problem occurs, here's the weird thing: the same problem doesn't occur with Windows Narrator, which is using the exact same voice... I don't think it's anything to do with my hardware, possibly my OS? I'm running a 64bit version of Windows. I'd really like to solve this though! :smile2:
Was This Post Helpful? 0
  • +
  • -

#18 biggerB  Icon User is offline

  • If at first you don’t succeed, call it version 1.0
  • member icon

Reputation: 80
  • View blog
  • Posts: 760
  • Joined: 11-June 10

Posted 10 November 2010 - 01:47 AM

Well it might be the problem.. But that program is working for me so i guess now its up to you see what the problem is.. as it is not with the program..
Was This Post Helpful? 0
  • +
  • -

#19 RetardedGenius  Icon User is offline

  • >>──(Knee)──►
  • member icon

Reputation: 126
  • View blog
  • Posts: 555
  • Joined: 30-October 10

Posted 10 November 2010 - 03:35 PM

View PostbiggerB, on 10 November 2010 - 12:47 AM, said:

Well it might be the problem.. But that program is working for me so i guess now its up to you see what the problem is.. as it is not with the program..

When I was at college I did a quick google search and found a forum post where someone described the exact same problem, apparently you have to change some sort of priority setting , although I foolishly forgot to email myself the link and cannot find it again! :rolleyes2:
Was This Post Helpful? 0
  • +
  • -

#20 Guest_thams*


Reputation:

Posted 12 November 2010 - 07:02 AM

hi
nice post.

but what is the necessary to add com while pure dot net speech framework is available?

instead of referring old com, u can simple add system.speech.synthesize namespace and u can play around just like anything.

here it goes
simply add reference to
<code>
system.speech.synthesize
</code>
note :- framework 3.0 and above only

then

in any event
<code>
dim sp as new SpeechSynthesizer()
sp.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult)
sp.Speak("hello world")
</code>
thats it
enjoy dot net

-thams
lotus_selva at yahoo dot co dot in
Was This Post Helpful? 0

#21 RetardedGenius  Icon User is offline

  • >>──(Knee)──►
  • member icon

Reputation: 126
  • View blog
  • Posts: 555
  • Joined: 30-October 10

Posted 12 November 2010 - 08:12 AM

Sorry but I don't understand how you get that to work, could you write a very simple program which just says: "Hello World" when it loads to demonstrate your suggestion. :innocent:
Was This Post Helpful? 0
  • +
  • -

#22 RetardedGenius  Icon User is offline

  • >>──(Knee)──►
  • member icon

Reputation: 126
  • View blog
  • Posts: 555
  • Joined: 30-October 10

Posted 12 November 2010 - 02:52 PM

I believe I have found it! :smartass: :w00t:

Quote

The IspVoice::Speak method can operate either synchronously (return only when completely finished speaking) or asynchronously (return immediately and speak as a background process). When speaking asynchronously (SPF_ASYNC), real-time status information such as speaking state and current text location can polled using ISpVoice::GetStatus. Also while speaking asynchronously, new text can be spoken by either immediately interrupting the current output (SPF_PURGEBEFORESPEAK), or by automatically appending the new text to the end of the current output.


Now... how do I implement it? :D
Was This Post Helpful? 0
  • +
  • -

#23 RetardedGenius  Icon User is offline

  • >>──(Knee)──►
  • member icon

Reputation: 126
  • View blog
  • Posts: 555
  • Joined: 30-October 10

Posted 19 November 2010 - 07:06 PM

Please someone reply, I'm too much of a newb to understand how to do it from that article! :helpsmilie:
Was This Post Helpful? 0
  • +
  • -

#24 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2257
  • View blog
  • Posts: 9,449
  • Joined: 29-May 08

Posted 19 November 2010 - 07:15 PM

Add a .Net Reference to System.Speech.
  Dim x As New System.Speech.Synthesis.SpeechSynthesizer
  Dim p = x.SpeakAsync("One")


Was This Post Helpful? 2
  • +
  • -

#25 RetardedGenius  Icon User is offline

  • >>──(Knee)──►
  • member icon

Reputation: 126
  • View blog
  • Posts: 555
  • Joined: 30-October 10

Posted 20 November 2010 - 05:57 AM

View PostAdamSpeight2008, on 20 November 2010 - 01:15 AM, said:

Add a .Net Reference to System.Speech.
  Dim x As New System.Speech.Synthesis.SpeechSynthesizer
  Dim p = x.SpeakAsync("One")


Thank you very much, you are my new best friend! :sorcerer: :smartass:
Was This Post Helpful? 0
  • +
  • -

#26 RetardedGenius  Icon User is offline

  • >>──(Knee)──►
  • member icon

Reputation: 126
  • View blog
  • Posts: 555
  • Joined: 30-October 10

Posted 20 November 2010 - 06:05 AM

Adam, does your method mean that the user only requires the latest version of the .NET framework for it for function correctly?

Also, how do I change the voice to a male one? I've been playing around with the rate of speech which is quite funny! :withstupid:
Was This Post Helpful? 0
  • +
  • -

#27 youris  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 08-April 11

Posted 14 April 2011 - 04:01 AM

Hello,

Great Tutorial.

I have one question: Is there a way to get the speech to Dutch.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2