NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 47 48 49 50 51 … 93 Next »
VB compile needed

 
  • 0 Vote(s) - 0 Average
VB compile needed
mila06
Offline

Member

Posts: 210
Threads: 47
Joined: Dec 2005
#11
2006-11-16, 06:33 PM
Hi pBS

If i read this side correct http://www.microsoft.com/downloads/detai...structions,
you have to download/install the SpeechSDK51MSM.exe
Quote:If you want to redistribute the Speech API and/or the Speech engines to integrate and ship as a part of your product, download the Speech 5.1 SDK Redistributables file (SpeechSDK51MSM.exe).

It's 131 MB !!!!!!! The Showburner-dir will get very big Rolleyes
Michael Larsen

[SIZE="1"]HTPC:
Asus AMD 785G- M4A785TD-M/EVO, ATI 4200 HDMI,
AMD Phenom II X2 550 - 3.0 GHz,
2 GB Ram, 500 GB Seagate Barracuda
Terratec Cinergy C PCI HD, NVidia PureVideo, Cyberlink
Windows 7 ULT, NPvr v1.5.33[/SIZE]
Website
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#12
2006-11-16, 09:54 PM
hmmm,that couldn't be so, i have an .exe that makes it work without installing anything,standard XP install.... [Dspeech]
http://dimio.altervista.org/eng/

although sapi4 you do have to install, if you want to use those voices, i'm thinking this works for only sapi4...hmmm..
i found a good sapi5 sample app that works within SHarpdevelop...
http://msdn.microsoft.com/coding4fun/win...eid=909044

maybe able to adjust that one? works without any redist...Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mila06
Offline

Member

Posts: 210
Threads: 47
Joined: Dec 2005
#13
2006-11-16, 10:32 PM
You are right, it doesn't need the SDK Wink

Here is a new one as-is, but for now the txt-file have to be C:\

Does it work?
Michael Larsen

[SIZE="1"]HTPC:
Asus AMD 785G- M4A785TD-M/EVO, ATI 4200 HDMI,
AMD Phenom II X2 550 - 3.0 GHz,
2 GB Ram, 500 GB Seagate Barracuda
Terratec Cinergy C PCI HD, NVidia PureVideo, Cyberlink
Windows 7 ULT, NPvr v1.5.33[/SIZE]
Website
mila06
Offline

Member

Posts: 210
Threads: 47
Joined: Dec 2005
#14
2006-11-16, 11:23 PM
This one says the parameter eg:

Code:
speak "Current compilation size is 3400 megs"
Michael Larsen

[SIZE="1"]HTPC:
Asus AMD 785G- M4A785TD-M/EVO, ATI 4200 HDMI,
AMD Phenom II X2 550 - 3.0 GHz,
2 GB Ram, 500 GB Seagate Barracuda
Terratec Cinergy C PCI HD, NVidia PureVideo, Cyberlink
Windows 7 ULT, NPvr v1.5.33[/SIZE]
Website
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#15
2006-11-17, 12:31 AM (This post was last modified: 2006-11-17, 01:00 AM by pBS.)
excellent! that was it Smile
could i get the adjusted source for both?
i need to adjust the speed a bit..[slow it down to -2, more understandable] i thin i know how to change that...

thanx alot...i knew i was close...should work for anyone with winXP..Big Grin
too cool!

[note: you can leave offf the trailing quote even..no prob..]
also i changed to gui mode app and it doesn't open a window when run from say, start/run Smile
i tried to feed a file to the stdin but it didn't work...no biggie...plenty other ways to do it anyways..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#16
2006-11-17, 01:12 AM
it even works while a video is playing..Big Grin
[tho harder to understand, behind the tv sound..hehe]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#17
2006-11-17, 04:12 AM
i got it working in my vb express, even with relative path names..
[using FileName = (System.IO.Path.GetFullPath("ttstemp.txt")) ]
[needed to cuz i'm gonna change speech properties, speed, pitch etc.]

but was wondering how to do the commandline args...i'm new to vb bigtime and after looking i can't find...and such a simple thing too...lol
thanx for all your help...Smile

and yea, vb express was just what the dr. ordered..Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mila06
Offline

Member

Posts: 210
Threads: 47
Joined: Dec 2005
#18
2006-11-17, 05:41 AM
First the commandline-parameter-one:
Code:
Imports System
Imports SpeechLib

Module Module1

    Sub Main()
        Dim FileName As String
        Dim FileStream As New SpFileStream
        Dim Voice As SpVoice

        Dim SaySource As String = My.Application.CommandLineArgs(0)

        'MsgBox(SaySource)

        'Create SAPI voice
        Voice = New SpVoice

        'Assume that ttstemp.txt exists
        'FileName = CurDir() & "\ttstemp.txt"

        'Open the text file
        'FileStream.Open(FileName, SpeechStreamFileMode.SSFMOpenForRead, True)

        'Select Microsoft Sam voice
        'Voice.Voice = Voice.GetVoices("Name=Microsoft Anna", "Language=409").Item(0)

        'Speak the file stream
        'Voice.SpeakStream(FileStream)
        Voice.Speak(SaySource, SpeechVoiceSpeakFlags.SVSFDefault)

        'Close the Stream
        'FileStream.Close()

        'Release the objects
        'FileStream = Nothing
        Voice = Nothing
    End Sub

Then the file one (another way to relative path):
Code:
Imports System
Imports SpeechLib

Module Module1

    Sub Main()
        Dim FileName As String
        Dim FileStream As New SpFileStream
        Dim Voice As SpVoice

        'Dim SaySource As String = My.Application.CommandLineArgs(0)

        'MsgBox(SaySource)

        'Create SAPI voice
        Voice = New SpVoice

        'Assume that ttstemp.txt exists
        FileName = CurDir() & "\ttstemp.txt"

        'Open the text file
        FileStream.Open(FileName, SpeechStreamFileMode.SSFMOpenForRead, True)

        'Select Microsoft Sam voice
        Voice.Voice = Voice.GetVoices("Name=Microsoft Anna", "Language=409").Item(0)

        'Speak the file stream
        Voice.SpeakStream(FileStream)
        'Voice.Speak(SaySource, SpeechVoiceSpeakFlags.SVSFDefault)

        'Close the Stream
        FileStream.Close()

        'Release the objects
        FileStream = Nothing
        Voice = Nothing
    End Sub

You could easyly combine the two!!!
Michael Larsen

[SIZE="1"]HTPC:
Asus AMD 785G- M4A785TD-M/EVO, ATI 4200 HDMI,
AMD Phenom II X2 550 - 3.0 GHz,
2 GB Ram, 500 GB Seagate Barracuda
Terratec Cinergy C PCI HD, NVidia PureVideo, Cyberlink
Windows 7 ULT, NPvr v1.5.33[/SIZE]
Website
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#19
2006-11-17, 05:52 AM
gotcha...also i found Command$ as the input commands raw so i just used that...Smile
working great for me so far..thanx for all your help...

also, i found you don't need to specify the voice name in code, it will use user's default voice, or you can actually change any of the params of the voice or even pick a new one from within the spoken text itself...
speak this file and you'll see what i mean..Big Grin
Code:
<VOICE REQUIRED="name=Microsoft Sam"> <Rate speed = "3"> DVD burning completed. </Rate> </voice>
<Pitch middle = "9"> DVD burning completed. </Pitch>
<VOICE REQUIRED="name=Microsoft Anna"> DVD burning completed. </voice>
<volume level="90"> DVD burning completed. </volume>

just take out the line
Code:
'Voice.Voice = Voice.GetVoices("Name=Microsoft Anna", "Language=409").Item(0)
and recompile...then speak that file..it will change voices,pitch etc in middle...Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mila06
Offline

Member

Posts: 210
Threads: 47
Joined: Dec 2005
#20
2006-11-17, 07:09 AM
You are welcome.
I think I have some small projects that will start speaking soon Big Grin
Michael Larsen

[SIZE="1"]HTPC:
Asus AMD 785G- M4A785TD-M/EVO, ATI 4200 HDMI,
AMD Phenom II X2 550 - 3.0 GHz,
2 GB Ram, 500 GB Seagate Barracuda
Terratec Cinergy C PCI HD, NVidia PureVideo, Cyberlink
Windows 7 ULT, NPvr v1.5.33[/SIZE]
Website
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  New web service clarification needed bgowland 6 3,357 2013-10-19, 02:36 AM
Last Post: bgowland
  Skin help needed for EventDetails.xml bgowland 7 3,457 2011-06-26, 11:55 PM
Last Post: Jaggy
  MVP/NMT testers needed for Weather2 scb147 46 12,357 2010-03-03, 08:12 PM
Last Post: scb147
  SQL help needed bgowland 4 2,151 2008-05-25, 07:08 AM
Last Post: bgowland
  Csharp Event help needed.. psycik 4 2,153 2008-05-25, 06:19 AM
Last Post: psycik
  Web site programming - precompiled, compile on demand.... psycik 9 2,949 2008-02-27, 10:23 PM
Last Post: psycik
  Whats needed for recording -Oz- 24 7,710 2008-01-24, 03:59 AM
Last Post: zehd
  TV guide data needed reboot 35 10,647 2007-08-06, 11:04 PM
Last Post: mvallevand
  Help needed with error in config.exe.log idkpmiller 3 1,879 2007-01-24, 06:08 AM
Last Post: sub
  Image Location in FireFox Help Needed UncleJohnsBand 13 4,213 2006-11-22, 11:40 PM
Last Post: UncleJohnsBand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode