Update engines/orpheus_engine.py
Browse files
engines/orpheus_engine.py
CHANGED
@@ -16,9 +16,7 @@ all outstanding token‑streaming issues and eliminates audible clicks by
|
|
16 |
The API (``get_voices()``, ``set_voice()``, …) is unchanged, so you can
|
17 |
keep using it from RealTimeTTS.
|
18 |
"""
|
19 |
-
from __future__ import annotations
|
20 |
|
21 |
-
from snac import SNAC, __version__ as snac_version # ①
|
22 |
|
23 |
|
24 |
|
@@ -29,6 +27,7 @@ import json
|
|
29 |
import logging
|
30 |
import struct
|
31 |
import time
|
|
|
32 |
from queue import Queue
|
33 |
from typing import Generator, Iterable, List, Optional
|
34 |
|
@@ -36,6 +35,8 @@ import numpy as np
|
|
36 |
import pyaudio # provided by RealTimeTTS[system]
|
37 |
import requests
|
38 |
from RealtimeTTS.engines import BaseEngine
|
|
|
|
|
39 |
|
40 |
###############################################################################
|
41 |
# Constants #
|
|
|
16 |
The API (``get_voices()``, ``set_voice()``, …) is unchanged, so you can
|
17 |
keep using it from RealTimeTTS.
|
18 |
"""
|
|
|
19 |
|
|
|
20 |
|
21 |
|
22 |
|
|
|
27 |
import logging
|
28 |
import struct
|
29 |
import time
|
30 |
+
import os
|
31 |
from queue import Queue
|
32 |
from typing import Generator, Iterable, List, Optional
|
33 |
|
|
|
35 |
import pyaudio # provided by RealTimeTTS[system]
|
36 |
import requests
|
37 |
from RealtimeTTS.engines import BaseEngine
|
38 |
+
from __future__ import annotations
|
39 |
+
from snac import SNAC, __version__ as snac_version
|
40 |
|
41 |
###############################################################################
|
42 |
# Constants #
|