Godot Version
4.3
Question
For my project, I need to access the user’s microphone and return the volume. I thought this would do the trick, but turns out that audioStreamMicrophone has like zero methods.
extends Node
class_name AudioManager
@onready var input_stream = AudioStreamMicrophone.new()
var volume: int
func _ready() → void:
pass
func _process(delta: float) → void:
if input_stream.is_playing():
var mic_data = input_stream.get_data()
var vol = get_volume(mic_data)
print(vol)
volume = vol
does anyone know how to get the volume as a float from the user’s microphone in 4.3?