|
when i was searching for socurce code for speech recognition in google.I found this site so i requist for sample source code.Becouse from sample source code i can better understand how make a speech recognition softwere.
|
|
|
|
|
faisalid2000 wrote: socurce
faisalid2000 wrote: requist
faisalid2000 wrote: Becouse
faisalid2000 wrote: softwere
I hope your speech recognition software is better at recognising your speech than my character recognition software is at recognising your words.
so you answer don't be scared of failure
The only failure is never to try
Things You've Never Done - Passenger -2008
|
|
|
|
|
|
I am working on speech recognition software.I required a sample source code of speech recognation software written in c sharp that help me to make the speech recognition software.If any one have a sample source code plz send to my mail faisalid2000@yahoo.com
Thanks
|
|
|
|
|
This forum is not meant for these kinds of requests. This is a forum to help you write your OWN programs. So, a better question to ask would be where can I find some Speech Recognition APIs, or how do I use a specific class to recognize speech.
Keep in mind you will piss people off if you cross post(post on multiple forums).
Read the forum rules for a better understanding.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hello all. I'm trying to store an image in a DataRow but not sure where to start. My DataSet is not tied to a sql server so I don't thing Blob's are what I need. Either way, I don't know where to start. Can anybody help?
Thanks in advance
Lester
http://www.lestersconyers.com
|
|
|
|
|
lsconyer,
You need to convert the image to a byte[] and then store the byte[]. Though, if you store the image locally, you could just store the name/location of the image which would be easier.
Regards,
Gareth.
|
|
|
|
|
I'm trying to run my program simply by double clicking the .exe in Debug folder.
However the program always crashes when I do this. Is this the right way to run an application without VS?
I'm serializing a class into a file then deserializing it again, which works when running under the debugger, but will not when just double clicking the .exe. Obviously I have very little idea why it's crashing without the debugger.
Any ideas?
|
|
|
|
|
It should run fine just by double-clicking the exe. You should find out why it's crashing -- is there an exception being thrown somewhere? Use try/catch error handling to catch errors.
|
|
|
|
|
Here is the code:
public static void SaveConfiguration(string configPath, Configuration config)<br />
{<br />
configPath = configPath.Replace("PeerToPeer.EXE", "Settings.config");<br />
<br />
FileStream stream = null;<br />
try<br />
{<br />
Console.WriteLine(configPath);<br />
stream = new FileStream(configPath, FileMode.Create, FileAccess.Write, FileShare.None);<br />
Serialization.SerializeToFile(config, stream);<br />
}<br />
catch (Exception ex) {<br />
System.Windows.Forms.MessageBox.Show(ex.Message);<br />
MessageBox.Show(ex.ToString());<br />
<br />
}<br />
finally {<br />
<br />
if (stream != null)<br />
{<br />
stream.Close();<br />
}<br />
<br />
}<br />
<br />
<br />
<br />
<br />
}
This generates an IOException complaining about another proccess having a lock on the file, dispite the file not yet existing and being created by the above code.
Again this works via the VS Debugger but not when just running the exe.
|
|
|
|
|
In my application I create some bottons in a form; some of them receive an image to be set as their backgroundImage. When this is done and the mouse hovers on the control I start a timer: I want the program to do something when the -let's say- 5th timer tick occurs, but in the meanwhile I want the image to increase its pixels' alpha value a bit each tick.
How to control the alpha value of an image I load from a file and display it as a backgroundImage on a button?
|
|
|
|
|
|
Thanx, I had a look at the code, and at some more documentation..and tried that on a small test project, to load a bitmap on a pictureBox, and modify its alpha channel as much as a trackBar in the same form is scrolled, from 0 to 1.
The problem is that: once I have create the Graphics object, loaded with my image, and modified it, I can't reconvert it as a Bitmap object, in such a way to be able to set it as the Image property of the PictureBox of the Form.
Notice this is just a small piece of code to try the matter: actually, in my application, I have to load the bipmap as the BackgroundImage property of a Button, but I don't think this changes a lot..
Thanx for any extra help, sorry for my English..
Here down is listed the code I can't fix:
public partial class Form1 : Form
{
private string sourceFileName;
private string destFileName, proposedDestFile;
private Bitmap image, newImage;
private int modifiedImagesCounter;
ColorMatrix colorMatrix;
ImageAttributes imageAtt;
Graphics g;
public Form1()
{
InitializeComponent();
float[][] matrixItems = {
new float[] {1, 0, 0, 0, 0},
new float[] {0, 1, 0, 0, 0},
new float[] {0, 0, 1, 0, 0},
new float[] {0, 0, 0, 1, 0},
new float[] {0, 0, 0, 0, 1}};
colorMatrix = new ColorMatrix(matrixItems);
imageAtt = new ImageAttributes();
imageAtt.SetColorMatrix(colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
}
private void loadImageButton_Click(object sender, EventArgs e)
{
openFileDialog.ShowDialog(Parent);
sourceFileName = openFileDialog.FileName;
image = new Bitmap(sourceFileName);
Console.WriteLine("The file to modify is: " + sourceFileName);
//IndexedToARGB_Converter conv = new IndexedToARGB_Converter(sourceFile);
//Bitmap modifiedImage = conv.getNewImage();
pictureBox.Image = image;
}
private void saveImageButton_Click(object sender, EventArgs e)
{
proposedDestFile = DestFileName();
saveFileDialog.FileName = proposedDestFile;
saveFileDialog.ShowDialog(Parent);
destFileName = saveFileDialog.FileName;
Console.WriteLine("The modified file will be saved to: " + destFileName);
newImage.Save(destFileName);
}
private string DestFileName()
{
modifiedImagesCounter++;
StringBuilder strbld = new StringBuilder();
strbld.Append(sourceFileName, 0, sourceFileName.Length - 4);
strbld.Append(modifiedImagesCounter.ToString());
strbld.Append(".GIF");
return strbld.ToString();
}
private void trackBar_Scroll(object sender, EventArgs e)
{
g = pictureBox.CreateGraphics();
//Graphics g = Graphics.FromImage(image);
TrackBar trackBar = (TrackBar)sender;
float f = (float)(trackBar.Maximum - trackBar.Value) / (float)(trackBar.Maximum - trackBar.Minimum);
colorMatrix[3, 3] = f;
int iWidth = image.Width;
int iHeight = image.Height;
Rectangle rect = new Rectangle(pictureBox.Location.X, pictureBox.Location.Y, iWidth, iHeight);
g.DrawImage(
image,
rect, // destination rectangle
0.0f, // source rectangle x
0.0f, // source rectangle y
iWidth, // source rectangle width
iHeight, // source rectangle height
GraphicsUnit.Pixel,
imageAtt);
this.Update();
}
}
|
|
|
|
|
Does anyone have experience calling a Cobol/DB2 stored procedure from .NET? It is not an easy thing to find on the web as I'm sure most companies have tried to get away from this. We still have them because they must serve as the link between our distributed apps and an IMS Database
|
|
|
|
|
Hello
i am using c#.
i am sending one link in email.
when i got email and i click on the link i want to run the code from that perticular page which is linked to the link, but without opening the link.
means ethe code should be run from background.
is this possible?
please help me its urgent.
|
|
|
|
|
Why would you want to do this?
No user will want to have code run from some strange site (not even visible and without agreement) just by clicking a unsuspicious looking link in a eMail.
Nor is this a good think to do - what's if the user is using MacOS or some other OS (or didn't install the .net runtime etc.)?
If you want to know how you can write viruses, worms and co. you will have to look elsewhere (and you won't use C# ) ....
|
|
|
|
|
|
Have it actually link to a page that does the work. Look into ASP.NET.
If you are writing a virus, don't cite me... : )
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Rupali Kombade wrote: i am using c#.
i am sending one link in email.
when i got email and i click on the link i want to run the code from that perticular page which is linked to the link, but without opening the link.
means ethe code should be run from background.
is this possible?
No one is going to help you write a virus. If it isn't a virus, it's a terrible, awful idea. Still, no one will help you.
Rupali Kombade wrote: please help me its urgent.
Oh, it's urgent, huh? Oh that is completely different then? Would you also like us to make you dinner and rub your feet while we are doing your work?
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hi Guy
exactlly this is possbile. Ho do you mean?
create a process class object when you wiull be clikc the link and pass fille is "Iexpolrer.exe", and pass args your link.
after call start method in that process object.
Thanks
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
|
Problem solved!!!
Turns out that im right about the Time Offset, i just needed to shift the boolean array acording to my time zone....
|
|
|
|
|
Hi friends,
I want to search a word/phrase of words(Like search inGoogle) in XLs/PDf or Doc file.The files are Stored under a folder in local machine.The application as a ASP.Net Application using C#.
But i am finding no way out there to do so.i need ur help.
Please help me in this regard.
|
|
|
|
|
|
Hi guys
im sitting with a little delema. i need to determine which kind
of SqlException was thrown by sql. i tried using SqlException.ErrorCode like so
<code lang="cs">
try
{
}
catch(SqlException sqlEx)
{
if(sqlEx.ErrorCode == -2146232060)
{
}
else
{
means of a messageBox that displays the
errorCode and errorMessage
}
}
</code>
now i initially thaught that -2146232060 is the error code for violating a unique constraint, but i later noticed that the exact same code is used when there is no longer access to the db
i need to be able to handle these exceptions in different ways
how exactly can i determine what actualy went wrnog on the sql end so that i can prompt the user accordingly EG. "user alredy exists" or "database no longer avalible"
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
|
|
|
|
|