|
import os
|
|
import logging
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
load_dotenv()
|
|
token = os.getenv("hf_key")
|
|
|
|
|
|
device = "cpu"
|
|
logger.info(f"Device set to use {device}")
|
|
|
|
|
|
SYSTEM_PROMPT = """You are ConversAI, a helpful AI assistant who remembers conversation history. Keep responses clear, friendly and natural. Always refer to previous context when responding."""
|
|
|
|
|
|
VOICE = "en-US-JennyNeural"
|
|
FALLBACK_VOICES = ["en-US-ChristopherNeural", "en-US-EricNeural"]
|
|
|
|
|
|
OUTPUT_FORMAT = "audio-24khz-48kbit-mono-mp3" |