WasapiCapture is not recognized in the sample code
See original GitHub issueI am trying to run your sample from: https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/csharp/dotnet-windows/speechtotext-naudio/speechtotext-naudio/Program.cs
However, I cannot build it - WasapiCapture function from NAudio is not recognized. I do have at the top of the file:
using NAudio.CoreAudioApi;
The project references include NAudio.Core, NAudi.WinFormsm and NAudio.WinMM.
So where is the WasapiCapture coming from?
Issue Analytics
- State:
- Created 5 months ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
c# - WasapiCapture NAudio
You say you are capturing audio in exclusive mode, but in the example code you call the Initialize method with AudioClientMode.Shared .
Read more >WasapiLoopbackCapture DataAvailable event buffer stuck
When using WasapiLoopbackCapture, in the DataAvailable event, the buffer reads duplicate data. WasapiCapture = wasapiCapture; // "WasapiCapture" ...
Read more >Persistent audio discontinuity in WASAPI loopback capture ...
I am writing a program that captures the output on a Windows device using WASAPI loopback capture. In principle it works correctly, ...
Read more >Problem with BassMix and Wasapi capture devices
I'm trying to create a mixing of the input coming from 2 different Wasapi capture devices but I'm not finding the correct way...
Read more >WASAPICapture.cpp
searchcode is a free source code search engine. Code snippets and open source (free software) repositories are indexed and searchable.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
nope, got it resolved.
I have existing project with VS2022 and .NET 4.8 where I added the example code, and NAudio.Wasapi was not added to the reference and was not in popup that provides solution suggestions. When I looked for it yesterday on NuGet I could not find it, but today it is there - so I added… So yes, something get confused, but now I have another problem which seems to be with my key, but I that’s what I got when I subscribed recently…