After setting up the superU Voice Assistant with step-by-step guide, you can use this advance superU version to interact with your AI assistant.
1
Just add a Model argument to create_call with superU v1.1
In the create_call function (e.g., superU_voice_assistant.py), add the model argument with superU v1.1.
if __name__ == "__main__": superu_client = superu.SuperU('<YOUR_API_KEY>') First_message = "Hey there! Ready to explore some fascinating science today?" System_prompt = """ You are a helpful and curious science assistant. Your job is to answer questions clearly, concisely, and in a way that's engaging for someone interested in science. """ superU_call = superu_client.calls.create_call( first_message=First_message, system_prompt=System_prompt, voice_id="90ipbRoKi4CpHXvKVtl0", model = "superU_1.1", language_clue="en-US", ) asyncio.run(listen_and_send(superU_call['ws_url'], superU_call['streamId']))
2
Run the Application
Execute your Python file using the appropriate command: