naudio Questions

4

Solved

I am using the NAudio library to write a simple WinForms audio recorder/player. My problem is how can I tell that playback is completed? I need to close the wave stream after that. I knew there is...
Camelot asked 30/6, 2012 at 9:2

7

Solved

Hi there iam trying to convert text to speech (wav) in the memorystream convert it to mp3 and then play it on the users page.so need i help what to do next? here is my asmx code : [WebMethod] pu...
Sturm asked 27/9, 2013 at 19:21

10

Solved

Is there a way in C# to play audio (for example, MP3) direcly from a System.IO.Stream that for instance was returend from a WebRequest without saving the data temporarily to the disk? Solution w...
Carlettacarley asked 8/10, 2008 at 20:19

5

Solved

I am very new to audio or mp3 stuff, was looking for a way to have a feature to split an mp3 file in C#, asp.net. After googling for a good 3-day without much of a great help, I am hoping that some...
Rheumatism asked 23/5, 2011 at 7:47

4

Solved

I'm using NAudio library in a C# application. I'm trying to seek an audio (*.mp3 file) to the position I want. However I didn't figure out how to do it. //Play the file starting from 16th second ...
Intolerance asked 29/4, 2012 at 11:27

1

Solved

I am trying to convert a .wav to an .mp3 file. My code usually works but now I have gotten a .wav file that was exported with Imovie and I get the error 'NoDriver calling acmFormatSuggest'. The int...
Souvenir asked 8/4, 2022 at 12:27

1

Requirement: I am trying to capture Audio/Video of windows screen with SharpAPI Example with Loopback audio stream of NAudio Example. I am using C#, wpf to achieve the same. Couple of nuget pac...
Doubtless asked 15/2, 2020 at 11:51

1

Solved

I am trying to convert .vox to .mp3 or .wav with NAudio with the code below:- var bytes = GetBytes(new FileInfo(@"D:\path\to\vox-file.vox")); using (var writer = new WaveFileWriter(@&quo...
Courier asked 27/5, 2021 at 12:56

6

Solved

I have a readonly System.IO.Stream implementation that is not seekable (and its Position always returns 0). I need to send it to a consumer that does some Seek operations (aka, sets the Position) o...
Warbler asked 23/10, 2012 at 17:22

3

The below is my sample code to record audio coming from a speaker. It is working fine. But it is recording audio only when some audio is coming out from speaker. If there is no audio then it is not...
Crassulaceous asked 15/9, 2018 at 14:27

3

Solved

I want to record raw audio from WASAPI loopback by NAudio and pipe to FFmpeg for streaming via memory stream. As from this document, FFmpeg can get input as Raw However, I got result speed at 8~10x...
Octopus asked 19/2, 2017 at 15:46

3

Solved

I'm trying to convert a WAV file(PCM,48kHz, 4-Channel, 16 bit) into mono-channel WAV files. I tried splittiing the WAV file into 4 byte-arrays like this answer and created a WaveMemoryStream like ...
Wrenn asked 22/8, 2012 at 14:12

0

I have a requirement to use IBM Watson SDK to record the audio using microphone and send it to IBM Watson speech-to-text using C#. I am able to achieve this functionality by saving the audio file l...
Writ asked 30/8, 2020 at 7:18

4

Solved

I've just seen this question, where one of the answers indicates that System.Diagnostics.Stopwatch should only be used for diagnosing performance and not in production code. In that case, what wou...
Indicative asked 27/4, 2009 at 22:10

2

Solved

I'm using NAudio in my with my Wpf app first time. Steps: 1) Recording to MemoryStream using NAudio (C#, Wpf). This is my recording code: public void StartRecording() { this.waveSource = new ...
Drupelet asked 16/7, 2015 at 11:39

3

I’m developing a UWP application ( for Windows 10) which works with audio data. It receives samples buffer at the start in the form of a float array of samples, which items are changing from -1f to...
Irritating asked 27/2, 2017 at 10:48

2

How can you get a list of all the recording devices on a computer using NAudio? When you want to record, you have to give it the index of the device you want to use, but there's no way of knowing w...
Dearborn asked 19/9, 2009 at 18:10

2

Solved

Enabling recording devices programmatically I want to enable the disabled device in Sound - Recording devices list programmatically I was able to get a list of disabled devices using Naudio Bu...
Settlement asked 23/10, 2018 at 17:37

3

Solved

WaveStream waveStream = new Mp3FileReader(mp3FileToPlay); var waveOut = new WaveOut(); waveOut.Init(waveStream); waveOut.Play(); This throws an exception: WaveBadFormat calling waveOutOpen ...
Deguzman asked 21/3, 2010 at 19:35

2

Solved

Is Media Foundation supported on Windows 2012 64 bit server? We can not have Windows 7 or Windows 8 as the server and that's the reason we are opting for Windows 2012 server. As NAudio 1.7 i...
Incongruent asked 7/11, 2013 at 15:26

3

Solved

I'm working on a project which requires me to add beat detection when a song is playing in the application (WinForms - C#). I'm currently using NAudio.NET for playing the song & displaying det...
Karlotte asked 29/12, 2011 at 0:58

2

I have a program that takes in mp3 data in a byte array. It has to convert that mp3 data into wav format and store it in a byte data. I am trying to use NAudio for this purpose. I am using the foll...
Chrestomathy asked 16/7, 2012 at 7:59

1

Solved

I am using NAudio to record and play the audio file. Now, I want to add silence or beep in an audio file for a given duration. Could you please suggest the NAudio provider name in order to achieve ...
Histolysis asked 24/5, 2018 at 8:55

2

Solved

so, sorry if this is a stupid question, but I've been working with audio a lot, and I'm going to try out NAudio, so I went to the website (which, by the way, is blocked in Chrome), and downloaded i...
Kosiur asked 31/5, 2018 at 17:45

2

I have a background sound playing in an endless loop. I want it to fade out when the user does press a button. I tried the following: A DirectSoundOut is initiated with the WaveStream A Timer ch...
Bangweulu asked 27/2, 2012 at 16:1

© 2022 - 2024 — McMap. All rights reserved.