question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WasapiCapture is not recognized in the sample code

See original GitHub issue

I 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:closed
  • Created 5 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
securigycommented, Apr 20, 2023

nope, got it resolved.

1reaction
securigycommented, Apr 11, 2023

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found