Get An Output File Through Speech API?

Jun 6, 2010

I am new to programming and I am developing a simple application to convert a text which is made using SSML to a audio file,for a personal task. When I use the function

SetOutputToWaveFile or SetOutputWToWaveStream, the file can be created and played using media player, but there is an error in the file. When I use the function setOutputToAudioStream, The audio file can be created, But it can't be played with any media player.[code]...

View 1 Replies


ADVERTISEMENT

Disabling Speech Recognition During TTS Output

May 31, 2011

I've written a "quick and dirty" GUI interface for a CLI chat program, and I've been trying to integrate TTS and Speech Recognition into it, so that the user can "have a conversation" with a chat bot, rather than just "type and read". The TTS portion works well (barring some small pronunciation issues - I have yet to find a TTS voice that can properly pronounce "Geek" without my having to mangle the spelling), and the SR module works well.

If I have the TTS module disabled. The problem I'm having is that the SR module is processing the output from the TTS, and causing issues where an ever-increasing string of TTS output occurs, causing undesirable results. I've tried several methods of temporarily disabling Speech recognition, none of which have proved useful. Below are some short code snippets that I've tried to use:

Imports SpeechLib
Imports System.Drawing
Imports System.Net.Sockets
Public Class Form1
Public voice As New SpVoice
[Code] .....

View 5 Replies

Set System.speech Audio Output?

May 24, 2010

When I referenced speechlib directly there was a method GetAudioOutputs which would return all local audio outputs, which you could later use to select which output to speak to. I don't see that function in System.speech. How can I select which sound card to speak to with System.speech?

View 1 Replies

Recommended Alternatives For Speech Recognition Other Than Microsoft Speech Libraries?

Aug 11, 2010

recommended alternatives for speech recognition other than Microsoft Speech libraries?

View 2 Replies

VB 2010 Speech Recognition / Speech-To-Text / Voice Control

Oct 23, 2011

I'm trying to create a Speech Recognition support for my program. I want to make it so that if I say something in my microphone, the program just writes what I said in Label1. I looked for Speech Recognition codes in MSDN and Google, but I didn't find anything useful. I found a code, but it was for VB.net, I tried but it didn't work in VB 2010.

View 1 Replies

Split File Down Into Vars From A Speech Mark And Non Delinted File?

Nov 15, 2011

I have a File i need to read and extract a few values from each line in the file. my problem as it stand the file i'm reading has some unconsistatcys as all of the Strings are seprated by " " but the integers are not they are Without any Speech marks to define them. I have thought of a methord to deal with this but i can't for the life of me think how to achive this.

As the file has unconstancys to be used with a standard " " extractor, the only consistancy is that there is allways a " before the integer and after attached to another column. this could be used i thought.

a Sample of the data is only one line:

[Code]...

View 4 Replies

VS 2008 Speech Marks Within Txt File?

Sep 8, 2011

I am currently writing a program that browses through the user's files looking for a file called "spawn-config.cfg". Once it finds the file it will open it and rewrite the content (except the last line) to a temporary file called "spawningtempfile.txt". Then it will input what my program has written and then add the last line into the file. The both files are closed and the original one is deleted. After it has been deleted my "spawningtempfile.txt" is renamed to "spawn-config.cfg". This code works perfectly! Except on each line that you write using my JagexHouseBreaker HD program comes out with speech marks at the beginning and end.

[Code]...

View 2 Replies

Remove The Speech Marks Placed Around Text In File?

Jun 9, 2011

I am using this vb code, to save items from an array to a text document. But when I save to file, I get loads of speech marks around text

1. How can I remove the speech marks placed around text in file

FileOpen(1, CurDir() & "Back-" & DateTime.Now.ToString("D") & ".txt", OpenMode.output)
For First = 0 To 8

[Code]....

View 13 Replies

MS Speech SDK - Highlight Text On A Richtextbox Control While Reading The Text Using Speech Sdk Control

May 26, 2011

I just want to know that how can i highlight text on a richtextbox control while reading the text using speech sdk control. I mean the word currently speak automatically selected in the RichTextBox.

View 2 Replies

Using A WAV File As The Input To The Windows Speech Recognition Software On Machine (Windows Vista)?

Nov 1, 2010

Could anyone provide me with sample code for using a WAV file as the input to the Windows speech recognition software on my machine (Windows Vista)?

View 3 Replies

No Output In Asynchronous Program - Retrieve Output After The Events Are Invoked?

Mar 1, 2012

What I am trying to do: There are three powershell scripts with different time delays as shown below.I am trying to run them asynchronously in .NET and I followed this article to implement Asyncrhonous programming. Where I am stuck:The I am not able to retrieve output after the events are invoked.The scripts are being called but then the program ends and it shows "Press any key to continue" in console windows.I don't what I am missing here.

Info: JobRequest is a class that I use to pass around information keep track of jobs.

Sub Main()
OurAsyncFunctionCalling("psDelayScript2.ps1", "-arg1 4 -arg2 5", 1)
OurAsyncFunctionCalling("psDelayScript1.ps1", "-arg1 2 -arg2 3", 2)[code]......

View 1 Replies

Output Data To CSV File?

Jul 21, 2009

Is there an easy way in Visual Basic to record values to a CSV (comma separated value) file? I would also consider recording values to an xls or xlsx if it is easier. Anyone have any experience with this? Basically, during a loop, I'd like to take the values of 3 different variables and put them on one line of a csv, then make a new line in the csv and repeat with the next segment of the loop.

View 3 Replies

Output Data To PRN File

Jul 23, 2009

I want to output some of the data in my VB program to a .PRN file (no commas). I'd like to have the program create a header with the data, parameter info, etc... How does one begin something like this?

View 5 Replies

Output File In Same Directory As Exe

Dec 21, 2010

I'm making a GUI for a console application. I want it to save the file to /data/file.zip to anywhere the .exe is. Process.Start(Form2.TextBox1.Text, "get /folder/file.zip C:patht.zip") So if my application is in C:appmyapp.exe the output file would be in C:appdatafile.zip etc.

View 4 Replies

Record The Output Of The File?

Apr 1, 2012

i have this program i need to make, where it runs a bat file. i got that far, so when i click the button it opens the bat. but 3 problems i encountered i have been trying to resolve for a few days now, the problem is that i need to get the output of the .bat and display it in a textbox, i got that, but it only displays the first and least line... then i need to run the .bat in the background. so you don't see the window.then i also need to be able to hit a second button to close it. the bat is a constant update, lets just say it reads a number then 5 seconds later adds 1 to that number and displays it again. and does this over and over till you close it. that would be a simple description of this

Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "C:\Users/jwoow/Desktop/Server/run.bat";
p.Start();

[Code]...

View 1 Replies

Remove XML Output File?

May 4, 2010

What i have realized is that when you use My.settings, a XML File is put with your EXE when your project is Published.

What you can also do is just Open that File and Change the Variable "Register" From "False" to "True"

How can i do what Most Registration files do, and make the XML File go away and Create a Unwritable file, where the values cannot be changed.

View 1 Replies

VS 2010 Get .bat File Output?

Jul 29, 2011

I'm coding a program & the program runs a .bat file with this content :

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"

[code].....

View 4 Replies

Arraylists Output Not Writing To .txt File?

Jan 30, 2010

Background: I'm writing a application that will allow users to enters items on a form using textboxes, radio buttons and checkboxes. I then take each input item and write it to it's own arraylist. After the user is all done entering data the information in the arraylists will write out to a single .txt file.

View 6 Replies

Executing Pdf2text In Vb6 But Not Getting Output File?

May 7, 2009

I am executing pdf2text in vb6 but not getting output file my code is

Call Shell("pdf2text -f example.pdf abn.txt")

it does not show any error but not giving any output

View 1 Replies

Junk Characters In Output File?

Jul 3, 2011

I'm having VB write a batch file to send to a remote system via psexec.exe later on in the script. When it goes to execute the batch file, it fails due to these junk characters showing up in the beginning of the first line. I'm creating the file like so:My.Computer.FileSystem.WriteAllText("C:Program FilesBobBob's Programadd_user.bat", "net localgroup """ & Group & """ /add DOMAIN" & UserID, True) Where Group is the local group I'm adding to and UserID is the domain login for the user.

View 7 Replies

Output Continuous Sound NOT A File?

Nov 2, 2011

I have a data source that creates a continuous stream of 24-bit samples. I can collect a set of samples and build a .WAV file, and play the file through my speakers. What I want to do is eliminate the middleman, and send the stream of samples directly to the sound card. The data source can run for hours or days. I want to hear it in real time, rather than collect it all and listen to it after the fact. The idea is that I can tune the process that creates the data better if I can hear what it's doing.

View 9 Replies

Output EVERYTHING From A Text File To Screen

Apr 15, 2012

I currently have a system that saves student data to a text file. I can search for individual students and have their information output to screen. How can I make my system output every student in the text file to screen?

View 3 Replies

When Using SHELL Can't Pipe (>) The Output To A File?

Aug 20, 2010

Just trying to get EXIF information using ImageMagick. If I set the variable command to:-

"C:Program FilesImageMagick-6.6.2-Q16identify.exe" -ping -format "%[exif:*]" "C:est.jpg" >c:exif.out
And then:-
Shell(command, AppWinStyle.Hide, True)

I don't get an exit.out file. There's a delay so it's clearly doing it. Obviously the same line from an actual command prompt does work! And I get an exif.out file... Any idea how I can shell that command off and get an output file?

View 5 Replies

Write Output To A Text File?

Oct 20, 2011

If I want the my output to be written to a text file do I just need to add:

Respone.clear() , Respone.ContentType = "text", Response.OutputStream.Write(bytes, 0, bytes.length) , Respone.flush()

[Code].....

View 1 Replies

Open A File For Output Or Input Or Even Append ?

Jul 6, 2011

find a way to check if a file exist before opening it or creating it.I know how to open a file for output or input or even append which is what is going to do assuming it exist already.

'all this is inside a button which will open the file upon pressed
'to populate a
'combo box drop down list[code]....

View 3 Replies

Access The Public Subdirectory For The Output File(s)?

Jun 8, 2010

I am trying to create and add text to a file.When the code runs, sAppDirectory shows a subdirectory as indicated below, but an exception is thrown because the subdirectory doesn't exist. Windows Explorer shows a " . . . DocumentsMy Documents . . . " structure but the sAppDirectdory doesn't show the "My Documents" in the string. Where did it go?Is there a way I can keep this automatic rather than having to "hard code" the pathname?Or, how can I access the Public subdirectory for the output file(s) via an automatic method? See the code below.[code]....

View 6 Replies

C# Running Batch File And Streaming Its Output?

Apr 2, 2012

I have this problem in VB.NET in c#, I have this project where I need to run a batch file, which is easy enough. But my problem is I need to display everything that shows up on the batch file, in the cmd window, in a textbox, now, this code opens the file no problem:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false
proc.StartInfo.FileName = "C:\Users\jwoow\Desktop\Server\run.bat";
proc.Start().ToString();

but it doesn't move the code over to the textbox, this code transfers the last displayed line, but not the entire thing of the batch file and it also closes the cmd window, i need it to stay open:

Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;

[code]....

the batch file is for a server, it displays the amt of users on it (updates ever 2 minutes) and shows different events taken by the users. so it is constantly updating.

View 2 Replies

Call A DOS Command And Redirect The Output To A File?

Apr 2, 2010

I'd like to have a macro in Visual Studio 2005 that calls a DOS command and redirects the output (stdout and stderr) to a file. Just calling the command and ">" redirecting it will not capture stderr, so there are two parts to this:

calling a DOS command capturing both stderr and stdout to a file during that call

I'd then like to open this file in Visual Studio after the command completes.

View 1 Replies

Collection Input/output Text File?

Nov 30, 2011

Normal
0
false

[Code]....

This question has been most likely been asked a number of times, but really hitting a brick wall regarding this.

The issue is that at the moment, I have to create a database using text files on VB.

So far I have managed to get the code working to add new customer and browse added records, but stuck on how to output/input back and fore to a text file, to store information, and after this input/output the text file to a DB ( Not worried about this at the moment)

Public Class Customer
Dim CmrColl As New Collection 'Create the new collection. Think of this as an array of objects.
Dim itemCount As Integer = 0 'A variable to help us scroll through the objects later.

[Code].....

View 3 Replies

Download Output Of An Aspx File Using HttpWebRequest?

Apr 20, 2009

I'm trying to import data from our database into the Property Agent module for DotNetNuke. I can do every thing ok except for one issue.

Some units have their images stored as simple urls and those are no problem. The problem I'm having is some of our images are actually retrieved from an aspx page the outputs the image data and the browser displays that.[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved