rename token to key

This commit is contained in:
Ajay Raj 2023-02-24 10:52:09 -08:00
commit e0382f329b
2 changed files with 4 additions and 4 deletions

View file

@ -20,14 +20,14 @@ class Conversation:
def __init__(
self,
token: str,
key: str,
input_device: BaseInputDevice,
output_device: BaseOutputDevice,
transcriber_config: TranscriberConfig,
agent_config: AgentConfig,
synthesizer_config: SynthesizerConfig
):
self.token = token
self.key = key
self.input_device = input_device
self.output_device = output_device
self.transcriber_config = transcriber_config
@ -46,7 +46,7 @@ class Conversation:
self.active = False
async def start(self):
async with websockets.connect(f"{VOCODE_WEBSOCKET_URL}?key={self.token}") as ws:
async with websockets.connect(f"{VOCODE_WEBSOCKET_URL}?key={self.key}") as ws:
async def sender(ws):
start_message = StartMessage(
transcriber_config=self.transcriber_config,