The vizmic module allows you to record sound from a microphone while running a Vizard world. It also allows you to monitor the audio level of the incoming sound in real-time and use the data for such purposes as animating lip-flapping.
Vizmic will record sound from a system microphone to a .wav file.
The vizmic module also allows you to monitor the sound level as it comes in. This functionality can be particularly handy if you're using sound to animate the flapping lips of an avatar:
The following commands are available in the vizmic module:
Function |
Description |
vizmic.getMonitorLevel() |
Return current monitor level between 0 and 1 |
vizmic.isMonitoring() |
Return whether monitoring is currently active |
vizmic.isRecording() |
Return whether recording is currently active |
vizmic.startMonitoring() |
Start monitoring the microphone for audio levels |
vizmic.startRecording( <filename>, sampleRate=44100,bitsPerSample=16,channels=1) |
Start recording microphone to <filename> at specified quality |
vizmic.stopMonitoring() |
Stop monitoring the microphone for audio levels |
vizmic.stopRecording() |
Stop recording from microphone |