Tomtom84 commited on
Commit
9759e45
·
verified ·
1 Parent(s): af8d415

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -20,6 +20,7 @@ from RealtimeTTS import (
20
  OpenAIEngine,
21
  KokoroEngine
22
  )
 
23
 
24
  from RealtimeTTS import register_engine
25
 
@@ -40,18 +41,25 @@ PORT = int(os.environ.get("TTS_FASTAPI_PORT", 8000))
40
 
41
  register_engine("orpheus", OrpheusEngine)
42
 
 
 
 
 
 
43
  SUPPORTED_ENGINES = [
44
  "azure",
45
  "openai",
46
  "elevenlabs",
47
  "system",
48
  # "coqui", #multiple queries are not supported on coqui engine right now, comment coqui out for tests where you need server start often,
49
- "kokoro"
 
50
  ]
51
 
52
  # change start engine by moving engine name
53
  # to the first position in SUPPORTED_ENGINES
54
- START_ENGINE = SUPPORTED_ENGINES[0]
 
55
 
56
  BROWSER_IDENTIFIERS = [
57
  "mozilla",
 
20
  OpenAIEngine,
21
  KokoroEngine
22
  )
23
+ from engines.orpheus_engine import OrpheusEngine
24
 
25
  from RealtimeTTS import register_engine
26
 
 
41
 
42
  register_engine("orpheus", OrpheusEngine)
43
 
44
+ ORPHEUS_API_URL = "https://huggingface.co/spaces/Tomtom84/dev-mode-realtts-orpheus/"
45
+
46
+ engines["orpheus"] = OrpheusEngine(api_url=ORPHEUS_API_URL)
47
+
48
+
49
  SUPPORTED_ENGINES = [
50
  "azure",
51
  "openai",
52
  "elevenlabs",
53
  "system",
54
  # "coqui", #multiple queries are not supported on coqui engine right now, comment coqui out for tests where you need server start often,
55
+ "kokoro",
56
+ "orpheus"
57
  ]
58
 
59
  # change start engine by moving engine name
60
  # to the first position in SUPPORTED_ENGINES
61
+ # START_ENGINE = SUPPORTED_ENGINES[0]
62
+ START_ENGINE = "orpheus"
63
 
64
  BROWSER_IDENTIFIERS = [
65
  "mozilla",