C
C#AndrewDEV

❔ SoundBoard

Hi! I am working on a soundboard lately and i got stuck with playing a sound throught microphone. i've heard that you can do this with NAudio but i dont know how. Can someone please help me?
C
canton7384d ago
Playing a sound... through a microphone?
UWC
undisputed world champions384d ago
i mean microphones and speakers are kinda the same thing ... like generators and electric engines are basically the same but i don't know if that's a smart idea ^^
T
TheRanger384d ago
you mean you want to hear a sound coming from the microphone? i remember screaming on my old speaker and my computer recognized it
UU
Unknown User384d ago
T
TheRanger384d ago
didnt BSOD with me
A
AndrewDEV384d ago
yeah but you know a simple soundboard like voicemod's soundboard not using a mic as a speaker
UU
Unknown User384d ago
A
AndrewDEV384d ago
so its a virtual cable as people say it?
UU
Unknown User384d ago
T
TheRanger384d ago
are we talking about Stereo Mix ?
UU
Unknown User384d ago
A
AndrewDEV384d ago
just a simple soundboard
UU
Unknown User384d ago
A
AndrewDEV384d ago
no a soundboard select a sound fx and play it thourgh your mic and when you go in like discord or something people can hear it
M
MODiX384d ago
tebeco#0205
maybe you want the opposite of stereo mix in fact
Quoted by
<@!689473681302224947> from #SoundBoard (click here)
React with ❌ to remove this embed.
UU
Unknown User384d ago
T
TheRanger384d ago
that does sound like stereo mix
UU
Unknown User384d ago
A
AndrewDEV384d ago
NO
A
AndrewDEV384d ago
Free Real Time Voice Changer and Modulator - Voicemod
Soundboard: Free PC Meme Sound Effects App - Voicemod
Voicemod's meme soundboard works online with tons of games and programs including CS:GO, Fortnite, Valorant, Among Us, Discord, Skype, TeamSpeak, and more!
UU
Unknown User384d ago
A
AndrewDEV384d ago
sorry
UU
Unknown User384d ago
A
AndrewDEV384d ago
sorry
UU
Unknown User384d ago
A
AndrewDEV384d ago
kinda
UU
Unknown User384d ago
A
AndrewDEV384d ago
yes
UU
Unknown User384d ago
A
AndrewDEV384d ago
yeah
UU
Unknown User384d ago
A
AndrewDEV384d ago
so people on discord for example can hear what i say and if i play a sound effect as well yes
UU
Unknown User384d ago
A
AndrewDEV384d ago
i know
UU
Unknown User384d ago
A
AndrewDEV384d ago
it was just an example
UU
Unknown User384d ago
A
AndrewDEV384d ago
so if i create a new audio input with NAudio i can "import" my real mic into that? but i dont want to save it just play it in my mic or my new input
UU
Unknown User384d ago
A
AndrewDEV384d ago
yeah if i get stuck and i cant figure out something i usually ask chatgpt but its down at the moment but for like 2 or more days
S
sibber384d ago
wouldnt this require a custom audio driver where did you see that NAudio supported this
A
AndrewDEV384d ago
idk google
UU
Unknown User384d ago
A
Accord383d ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
A
AndrewDEV383d ago
so does anybody know how to play sound on a capture device as a soundboard?
M
MODiX383d ago
tebeco#0205
my advice is / was ... if you're using NAudio maybe ask naudio 🙃
Quoted by
<@!689473681302224947> from #❔ SoundBoard (click here)
React with ❌ to remove this embed.
UU
Unknown User383d ago
A
AndrewDEV382d ago
Sounds is a comboBox
private void Play_Click(object sender, EventArgs e)
{
var reader = new NAudio.Wave.Mp3FileReader("C:\\Users\\Andris\\Desktop\\Cornfield chase.mp3");
int index = 100;
for (int idx = 0; idx < NAudio.Wave.WaveOut.DeviceCount; ++idx)
{
string devName = NAudio.Wave.WaveOut.GetCapabilities(idx).ProductName;

if(Mics.SelectedItem != null)
Sounds.Items.Add(devName);
{
if (devName.StartsWith(Mics.SelectedItem.ToString()))
{
Sounds.Items.Add("ok!");
index = idx;
break;
}
}
}
NAudio.Wave.WaveOut waveOut = new NAudio.Wave.WaveOut(){DeviceNumber = index};
waveOut.Init(reader);
waveOut.Play();
}
private void Play_Click(object sender, EventArgs e)
{
var reader = new NAudio.Wave.Mp3FileReader("C:\\Users\\Andris\\Desktop\\Cornfield chase.mp3");
int index = 100;
for (int idx = 0; idx < NAudio.Wave.WaveOut.DeviceCount; ++idx)
{
string devName = NAudio.Wave.WaveOut.GetCapabilities(idx).ProductName;

if(Mics.SelectedItem != null)
Sounds.Items.Add(devName);
{
if (devName.StartsWith(Mics.SelectedItem.ToString()))
{
Sounds.Items.Add("ok!");
index = idx;
break;
}
}
}
NAudio.Wave.WaveOut waveOut = new NAudio.Wave.WaveOut(){DeviceNumber = index};
waveOut.Init(reader);
waveOut.Play();
}
A
AndrewDEV382d ago
Pastebin
private void Play_Click(object sender, EventArgs e) { ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
A
Accord375d ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ accessing object from a class inside of another classI got this class called "Engine"(image 1) that has the object "isOn" which indicates whether the eng❔ QuestionControllerHello, i have a question regarding API structure. I have two classses, Item and Store. I created C❔ Problem Binding to Image SizeI am making an app that displays a series of books. An image and title of the book is to be displaye❔ whats the best site or youtube channel to start learning c#?just downloaded visual studio and wanted to know what would be the best way to learn C#❔ C# MVC - Erroring in VSC not VS2022I'm writing a C# .Net Core 7.0 web application with dapper for my SQL queries. It runs just fine inString Contain issueSo im trying to get a word in a string using Contain but its not getting the word, I havent found a ❔ Catching Exceptions with generic parameters?When adding an entity to the database, i first check if it already exists and if it does I throw an ❔ How should I learn programming?I'm sure this is a common question, but I want to learn game development but am a pretty new C# prog❔ How to properly structure projects in a multi-app MVVM solution?I tend to structure my MVVM projects in the following way: ``` . ├── src/ │ ├── Applications/ │ Sending File and Data to a Minimal API endpointHi. I am using .NET 7, Minimal API and Mailkit. What I want to do is to send an attachment along wi❔ reprotucing the kings pathcan anybody help me fix this code https://paste.mod.gg/sgsvrbaqnmpi/0 ``` the input is number of obs❔ Its there a way to fix this?Hi there, currently I am trying to develop some functions to publish them to azure later, but right ✅ Does this styling code look right?I'm using this code for a simple hover effect. Im wondering if I'm doing this correctly: <Window.Re❔ ?[] operator for dictionariesIs not working. It is explained here. https://learn.microsoft.com/en-us/dotnet/csharp/language-refer❔ IAsyncEnumerable vs List<T> as parameter in methodI have a method that is overloaded and will take in a List<T> or IAsyncEnumerable. The method will b❔ This code is bugged how can i solve it?```LogiwaEntities1 db = new LogiwaEntities1(); ProductData productData = new ProductData✅ How to add hover effect to WPF button elementThis code I'm using isn't working. When I hover over buttons its a lightblue color. <Style with or without refso i learned that in c#(or most oop languages) when you create a method that takes an object as a pa✅ .net trying to find non-existent cs files`Error IDE1100 Error reading content of source file 'D:\Dev\C++\Test\TestCS\obj\Debug\net6.0\.❔ WPF - Binding to last child of collectionI have the following setup: ```csharp public partial class StatusMessageService : ObservableObject