repo_description: Local, OpenAI-compatible text-to-speech (TTS) API using Chatterbox, enabling users to generate voice cloned speech anywhere the OpenAI API is used (e.g. Open WebUI, AnythingLLM, etc.)
repo_topics: ai chatgpt chatterbox cuda docker elevenlabs gpt local-llm ollama open-webui openai openai-api python self-hosted speech text-to-speech tts voice-clone voice-cloning
code: #!/usr/bin/env python3
  """
  Chatterbox TTS API Entry Point
  
  This is the main entry point for the application.
  It imports the FastAPI app from the organized app package.
  """
  
  import uvicorn
  from app.main import app
  from app.config import Config
  
  
  def main():
      """Main entry point"""
      try:
          Config.validate()
          print(f"Starting Chatterbox TTS API server...")
          print(f"Server will run on http://{Config.HOST}:{Config.PORT}")
          print(f"API documentation available at http://{Config.HOST}:{Config.PORT}/docs")
          
          uvicorn.run(
              "app.main:app",
              host=Config.HOST,
              port=Config.PORT,
              reload=False,
              access_log=True
          )
      except Exception as e:
          print(f"Failed to start server: {e}")
          exit(1)
  
  
  if __name__ == "__main__":
      main() 