Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Nov 11, 2023
1 parent 71aa008 commit 374c700
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/whisper/whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import pathlib
import platform
from signal import SIGINT, SIGTERM
import os
from os import getenv

import numpy as np
from livekit import api, rtc

os = platform.system().lower()
if os == "windows":
platform = platform.system().lower()
if platform == "windows":
lib_file = "whisper.dll"
elif os == "darwin":
elif platform == "darwin":
lib_file = "libwhisper.dylib"
else:
lib_file = "libwhisper.so"
Expand Down Expand Up @@ -124,7 +124,7 @@ def on_track_subscribed(
audio_stream = rtc.AudioStream(track)
asyncio.create_task(whisper_task(audio_stream))

url = os.getenv("LIVEKIT_URL")
url = getenv("LIVEKIT_URL")
token = (
api.AccessToken()
.with_identity("python-bot")
Expand Down

0 comments on commit 374c700

Please sign in to comment.