• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
Resource icon

Plugins + Scripts Microphone Audio Source

Download [0 MB]

lfe

Well-known member
Featured Contributor
Joined
Jun 1, 2020
Messages
195
Reactions
1,514
lfe submitted a new resource:

Microphone Audio Source - Your Microphone can make sound now too

? Like this? Consider gifting the community a creation in my name or even a private gift to me.
* I choose not to have a Patreon (love all you who do)

Microphone Audio Source

This plugin will let you choose a Microphone and will send the audio from that microphone to the AudioSource on the Atom that you add this to.

It works well with the Lip Sync plugin.

Example:
  • Add this script to a Person
  • Add the...

Read more about this resource...
 
I'm not sure what's wrong, but anytime I select a microphone VaM just hangs and never recovers. I'm putting the plugins in the person in the order you suggest and selecting the mic after both are in. All is fine until I select a microphone from the dropdown. Whatever I pick it just freezes. Is there a setting I should look for to make this work?
 
I'm not sure what's wrong, but anytime I select a microphone VaM just hangs and never recovers. I'm putting the plugins in the person in the order you suggest and selecting the mic after both are in. All is fine until I select a microphone from the dropdown. Whatever I pick it just freezes. Is there a setting I should look for to make this work?
I've solved it by changing the microphone in the Windows setting to the actual microphone I'm using. There was another one, that doesn't work and VAM was freezing with it too.
 
Ok so I wanted something like this so that I could pipe my Spotify into an Audio Source with spatial audio in VR. Extended this plugin a little (make it work on any atom with an Audio Source, better sample rate selection, ...) and fixed the bug that would make VaM hang when there is a microphone capturing error. Everything was good. It worked.

Then I noticed that Audio Sources have a "Start Microphone Input" button now which does the same thing and which I somehow managed to ignore until now ?

... Anyway ... ? if anyone needs something like this and for some reason can't use the VaM built-in function (or needs to see how to do it) ... here you go. Feel free to integrate this @lfe although I'm not sure there is a point to it now.

Edit: Ok arguably you do get to choose the microphone input which VaM will not let you do. I just noticed Windows switches the mic input to the VR headset by default when you turn that on, so this is actually kind of useful for my edge case. Phew.
 

Attachments

  • MicAudioSource.cs
    4.1 KB · Views: 0
Last edited:

Similar threads

Assets + Accessories Microphone
Replies
0
Views
765
Plugins + Scripts Vibration Source
Replies
11
Views
2K
Back
Top Bottom