uezo / aiavatarkit

🥰 Building AI-based conversational avatars lightning fast ⚡️💬
Apache License 2.0
257 stars 21 forks source link

Add sample rate configuration for audio devices #47

Closed uezo closed 6 months ago

uezo commented 6 months ago

Add support for configuring input and output sample rates in AIAvatar

This update enables users to specify custom sample rates for both input and output audio devices, as demonstrated in the AIAvatar initialization. This feature provides greater flexibility in handling different audio specifications and enhances compatibility with various hardware.

app = AIAvatar(
    openai_api_key=OPENAI_API_KEY,
    google_api_key=GOOGLE_API_KEY,
    input_sample_rate=48000,
    output_sample_rate=44100
)