fix: removed unnecessary run_command
This commit is contained in:
parent
19502db6c6
commit
b5dcb40dde
|
@ -13,11 +13,6 @@ import tempfile
|
||||||
|
|
||||||
client = OpenAI()
|
client = OpenAI()
|
||||||
|
|
||||||
def run_command(command):
|
|
||||||
print(command)
|
|
||||||
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
|
||||||
return result
|
|
||||||
|
|
||||||
def tts(text, play_audio):
|
def tts(text, play_audio):
|
||||||
if os.getenv('ALL_LOCAL') == 'False':
|
if os.getenv('ALL_LOCAL') == 'False':
|
||||||
response = client.audio.speech.create(
|
response = client.audio.speech.create(
|
||||||
|
|
Loading…
Reference in New Issue