Spaces:
Runtime error
Runtime error
File size: 537 Bytes
6c09f76 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
"""Data models for the application."""
from dataclasses import dataclass
import pyaudio
from dotenv import load_dotenv
load_dotenv()
@dataclass
class AudioConfig:
"""Audio configuration settings."""
format: int = pyaudio.paInt16
channels: int = 1
send_sample_rate: int = 16000
receive_sample_rate: int = 24000
chunk_size: int = 1024
@dataclass
class ModelConfig:
"""Gemini model configuration."""
api_key: str
name: str
tools: dict
generation_config: dict
system_instruction: str
|