You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Continuously listens for speech input to recognize and send as text to Azure OpenAI
100
104
def chat_with_open_ai():
@@ -128,7 +132,8 @@ Follow these steps to create a new console application.
128
132
chat_with_open_ai()
129
133
except Exception as err:
130
134
print("Encountered exception. {}".format(err))
131
-
```
135
+
```
136
+
132
137
1. To increase or decrease the number of tokens returned by Azure OpenAI, change the `max_tokens` parameter. For more information tokens and cost implications, see [Azure OpenAI tokens](/azure/ai-services/openai/overview#tokens) and [Azure OpenAI pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/).
133
138
134
139
Run your new console application to start speech recognition from a microphone:
0 commit comments