import base64def decode_audio_data(audio_data: str, output_path: str, samplerate: int): audio_binary = base64.b64decode(audio_data.encode()) with open(output_path, 'wb') as f: f.write(audio_binary) return sf.read(output_path, dtype='float32')[0]import base64def decode_audio_data(audio_data: str, output_path: str, samplerate: int): audio_binary = base64.b64decode(audio_data.encode()) with open(output_path, 'wb') as f: f.write(audio_binary) return sf.read(output_path, dtype='float32')[0]