|
How can I appened sounds if the sound file has a Canonical form , how can I program it ...
thank you .....
crusher_shark
|
|
|
|
|
What do you mean ? You want to merge files ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yes ...that's what I meen
Sorry I can't speek English very much
......
crusher_shark
|
|
|
|
|
crusher_shark wrote: Sorry I can't speek English very much
That's cool, I don't speak any other languages at all
I'm not sure how you'd go about joining two wav files, I'd guess you need to know the file format, and then parse them, and write them out manually.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
My program is Text To Speech In my language,
for example, if I have sound for litter 'H' And sound for 'e' and the same thing for 'l' ,'o' and 'w'...
to hear the word "Hellow" I should play each sound , so the performance will be good ( like human speech not machine ) if I merge the litters sounds in one sound file
but to merge them I should change the canonical format of the file , how can I program this ? ...
crusher_shark
|
|
|
|
|
First of all, the end result is plain not going to work, unless your language is very different to English.
Secondly, you will need to read the files as a byte stream, then examine them, and create a new file that is of the correct format. Which means you need to learn about the wav file format. It's uncompressed, so it can't be too hard.
Why don't you create mp3s of all the sounds, turn them into a playlist for each word, and use the Windows Media Player control ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
this is my code and it depends on a class that analysis the word in my langauge ,the first sound can be stored in "sound" , how can I change the format of the new file "sound.wav" to append the other sounds ?
excuse me what is the advantage of mp3 rather than wav ?
//-------
FileStream fsr;
FileStream fsw;
byte[] SoundBuffer = new byte[Max*Max];
//----------------------------------------
fsw = new FileStream("sound.WAV", FileMode.Create);
fsw.Close();
int i;
for(i=0;i
|
|
|
|
|
crusher_shark wrote: how can I change the format of the new file "sound.wav" to append the other sounds ?
Please don't keep asking the same question over and over. The answer remains - you need to read up on the wav file format, and then put apart your data accordingly.
crusher_shark wrote: excuse me what is the advantage of mp3 rather than wav ?
1. The initial files are smaller
2. WMP will almost certainly play your files just as quickly as your joined together wav solution ( will probably do the same for wav files, actually ), without the sort of code you're trying to write at the moment.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Really I cann't thanking you ..
I hope to learn English very well ...
I am so sorry If I cann't explain my questions in a good words ...
crusher_shark
|
|
|
|
|
Hi!
What you're trying to do isn't possible so easily - WAVE audio is not just a bunch of bytes you can concatenate and expect to hear the single parts without interruption.
I guess you'd have to create your own WAVE file (or memory stream) but pay attention to adjust the wave header for each file you append.
IIRC, there's at least one article here on CP with a class for reading and writing wav files - try searching for it.
Regards,
mav
|
|
|
|
|
Hi!
How to get the ip address of the peer socket (client)
to which the async server socket is connected to in .Net (C#)?
Correlate to MFC's CAsyncSocket::GetPeerName()
Gywox
|
|
|
|
|
You get get peer socket by calling Accept (or e.g. ReceiveFrom ).
The IP is ((IPEndPoint)socket.LocalEndPoint).Address
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi All,
Can anybody tell me how to get detailed information about what activities are being done by an application. For example, if i want to track for which sites are being accessed and for what amount of time, then how will this be possible in C#. I have read the General - ProcessController sample code from the samples directory under C#, but it only provides basic info. about the processes. I want to track each and every activity of all processes.
Please help me. Thanks in advance
Anant Y. Kulkarni
|
|
|
|
|
There is nothing that exposes the information you want in the kind of detail you want.
You'll have to kludge something together to monitor how long a web page has been open on a particular browser window. Basically, you monitor the Process list and keep track of how many browser windows are open, what their current URL's are, what their primary Window handle is, and at what time you saw this information in your list. You can use the Process class for this and the Shell.Application object. Google for it.
Now, you have to poll the Process class for the current list and see if the number of Shell windows has changed, or if any of the IE Window handles have changed, or the URL's have changed. Whey do, you'll have your information.
Oh! This will also have the side effect of monitoring Explorer windows too.
For other processes, well, you're really S.O.L. because you there's just no way to monitor what every process does. There is no API for this, unless you want to write your own debugger, and debug every process on the machine at the same time. NOT a good idea!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have written a program for getting all information about the start time, end time and other details of a process. But now i have a query how to get the current URL of an IE process. I didnt got any information about Shell.Application object. Is it of C# or VB?. Can you please help me with a code sample for getting URL information from an IE process. That will be a great help for me.
Thanks !
Anant Y. Kulkarni
|
|
|
|
|
The SmtpClient does not seem to call the QUIT Command to close the connection to an SMTP server, is this usual behaviour? It appears to keep the connection open between each mail that is sent.
I would assume that at bare minimum it should call QUIT when the application that is using the SmtpClient object is shut down.
Regards,
J
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
It's also impolite to cross-post in multiple forums.
See my answer in the .NET Framework Forum[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: It's also impolite to cross-post in multiple forums.
Yes, Apologies after posting in the C# forum I felt that the question would be better asked in the .NET Framework forum.
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Hello,
I have an iX104C2 Tablet PC with integrated Siemens MC-55 Modem and Vodafone SIM card.
Now, I want to know if there is a possibility to get a connection to Vodafone in my C# program an how to handel this. Are there any DLLs from Vodafone or anything else?
Thanks
|
|
|
|
|
The connection should be established via GPRS!
|
|
|
|
|
Hi,
I have two applications running parallely. In both applications my classes are inherited from Microsoft.WindowsCE.Froms.MessageWindow
class .One is sending message and the other will process the message.How to get handle of the class which is processing a message,since I need to set handle of the class which process messgae.
|
|
|
|
|
hi guys,
need help... i need to know if a specific application (eg Microsoft Word etc) is opened... how can i catch or know that event was fired programmatically? tnx... btw im using c#...
-- modified at 11:05 Wednesday 11th January, 2006
|
|
|
|
|
it is easy if your program is working when one tries opening any app. make a system tray docking application and loop through processes that are loaded; or subscribe to processpool events. for more info search at codeproject for singleton pattern sample where it looks for a process with the same name. your code is similar...
or by vs toolz for office (vsto addin) for vs2005 has many plugin features.(accessible on msdn office developer center u need licensing...)
choose whatever uwant
Mikail Çetinkaya . The C# DEveloper
|
|
|
|
|
It can be done by writing your own service. A windows service can be configured to automatically start at system boot. then the service can know about any other service running on the same / remote computer. A tutorial is available for writing services in the MSDN library. Search for "Writing Windows Services". There is also a sample program for this type of requirement in the C# samples directory. Or you can download that sample from msdn.microsoft.com. Find more help about these classes -
ServiceController
Process.GetProcesses(strMachineName) this method returns Process[] which can be used to know information about the process !
Anant Y. Kulkarni
|
|
|
|
|
I cannot say whether there is an "event" way of solving this. But what you can do is you can spawn a separate thread from your application, which will periodically call Process.GetProcessesByName() method, and you can pass in the process name for Microsoft Word (or any other process you want to wait on). Definitely if you receive an "event" that would be less complicated, but I doubt whether that is at all possible. No application will let you know that it has started - YOU have to find that out!
Koushik Biswas
|
|
|
|