o
    h                     @  s>   d dl mZ d dlmZmZmZmZ ddlmZ dd	d
ZdS )    )annotations)AudioPCM	AudioPCMA	AudioPCMURealtimeAudioFormats   )loggerinput_audio_format!str | RealtimeAudioFormats | NonereturnRealtimeAudioFormats | Nonec                 C  sv   d }| d ur9t | tr7| dv rtddd}|S | dv r"tdd}|S | dv r-td	d}|S td
|   |S | }|S )N)pcm16	audio/pcmpcmr   i]  )typerate)	g711_ulaw
audio/pcmupcmur   )r   )	g711_alaw
audio/pcmapcmar   zUnknown input_audio_format: )
isinstancestrr   r   r   r   debug)r	   format r   ^/var/www/html/openai_agents/venv/lib/python3.10/site-packages/agents/realtime/audio_formats.pyto_realtime_audio_format   s    
	

r   N)r	   r
   r   r   )	
__future__r   ,openai.types.realtime.realtime_audio_formatsr   r   r   r   r   r   r   r   r   r   <module>   s    