Pausing and Resuming audio recording on Win-RT - c#

Can anyone help me to code in WinRT for PAUSING and RESUMING recording audio files.
Classes used are as follows:
IRamdomAccessStream for storing captured voice to random stream.
Windows.Media.Capture.MediaCapture for capturing audio voice.
Windows.Storage.StorageFile for storing file.
Please help me with the code that how to pause the stream and again on resume the captured voice append to the existing stream.
waiting 4 the reply..
Thank you.

Not sure why this had been down voted. Have a look at this sample, it should get you started.

The sample linked above provides indeed a good start about how to work with audio/video capture within a WinRT app.
However, there's no scenario in the samples replying the original question:
It seems indeed there are no methods that support pausing in MediaCapture.
The only Store App available that supports pausing while recording that I can see it's Windows Sound Recorder from Microsoft.
I assume that App is written in C++ and uses a custom sink instead to record audio which also supports appending data to an existing stream.

Related

Xamarin Android live stream video/audio from device in c#

I am challenged with the task to stream video and audio (camera and mic) from my android API 19 devices directly to a server. Displaying (on the device) is also optional.
Following this link I learned that you can use Mediarecorder with a socket instead of an output file. But they describe this method is to slow (3 seconds delay), because of the encoding. They also show a second method with preview frames (as MJpeg) but only for video.
Some apps from the store use the same method with an additional audio recorder, which causes a big delay between image and sound. I was hoping someone knows how to live stream from android to a server over wifi. C# code would be much appreciated. Third-party libraries are also welcome as long as they are free for commercial use. Any help/ideas are welcome and thanks in advance.

How to use system audio output to draw spectrum in my C# application

I want to display the spectrum of output audio of my windows C# application. Currently i am using NAudio Library to calculate information through PCM data of input file. But it seems that this process is taking a lot of time and processing in older systems configurations. So i was wondering if i can use the windows audio output data to do so. I meant this.
As you can see windows is generating green bar of current sound output. And it does recognize multiple outputs in MIXER. So is there any way to get this data and use in my application to escape extra calculation? And i haven't posted any code or my work as i am not sure how to do that and if that is even possible so kindly bear with me.
Thank. You.
Take a look at Stereomix which echos the computer's output as an input device. Listening to this input will be the probably easiest way to detect sounds playing. Also take a look at Loopback Recording.

Playback sound while recording

I want to record sound to a file and at the same time I want to be able to play audio from the same file in C#
For example, play the last 15 seconds but the microphone has to keep on registering and recording while replaying.
Is this possible and in that case, which is the best approach to do this?
The answer is YES, and you should play around with low level audio API, namely WaveIn/Out functions from winmm.dll, through P/Invoke in C#.
In short words, you need to use WaveIn to capture input signal from a input device and store in some structure, then use WaveOut to play back the audio simultaneously, or some delay after.
Here is a project you can start with: a duplex audio player. You can download the project and play around with it and see how it achieves it, then do some modifications upon the project to achieve what you want :)

Windows 8 Metro record audio (filter noise, change pitch)

Is it possible to record audio only when there is someone talking? I want to listen to the microphone and only start recording when the "volume" is greater than some noise level (meaning someone is talking) I also need to change the pitch of the recorded audio.
I tried MediaCapture class in C# but StartRecordToStorageFileAsync from a sample is not useable in my scenario. In Windows Phone I use XNA but I cannot find a similiar API in Windows 8.
Check this thread on MSDN forums: How to get the decibel with C#?
It seems like there is and probably will not be APIs for doing that in C#, Visual Basic or JavaScript and you need to do it in a native component.
The Core Audio/WASAPI APIs from the article mentioned in that thread should have what you need: Win32 and COM for Metro style apps (multimedia)
I think this document has a description of a sample for capturing audio from a Kinect sensor that might have relevant code samples showing how you would use GetBuffer() calls to get the buffer of raw audio samples that you could process to get the information you need.

How to Create a Simple C# Audio/Voice recorder in Visual Studio [duplicate]

I just want to implement audio recording tool in our application.The functionality is as follows.
Record an audio through microphone(voice recording)
stop that audio
saving that audio
generate embed code for the same audio
I appreciate your suggessions to implement this.
thanks very much
ASP.NET on its own is not suited for this kind of application. If you want users to be able to record audio on your website, you could take a look at Silverlight 4.0 (vid).
See also this question:
Recording Audio From Web Page
If that's not what you need, please explain your intended purpose more clearly.
This should be done in flash or silverlight. This has not a lot to do with c#.
See http://activeden.net/item/sound-recorder/104191

Categories