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
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/includes/quickstarts/openai-speech/python.md
+22-19Lines changed: 22 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Follow these steps to create a new console application.
44
44
pip install openai
45
45
```
46
46
> [!NOTE]
47
-
> This library is maintained by OpenAI and is currently in preview. Refer to the [release history](https://github.com/openai/openai-python/releases) or the [version.py commit history](https://github.com/openai/openai-python/commits/main/openai/version.py) to track the latest updates to the library.
47
+
> This library is maintained by OpenAI (not Microsoft Azure). Refer to the [release history](https://github.com/openai/openai-python/releases) or the [version.py commit history](https://github.com/openai/openai-python/commits/main/openai/version.py) to track the latest updates to the library.
48
48
49
49
1. Copy the following code into `openai-speech.py`:
50
50
@@ -72,18 +72,17 @@ Follow these steps to create a new console application.
OpenAI prompt:How can artificial intelligence help technical writers?
146
-
OpenAI response:Artificial intelligence (AI) can help improve the efficiency of a technical writer's workflow in several ways. For example, AI can be used to generate information maps of documentation sets, analyze customer feedback to identify areas that need improvement, or suggest new topics for documentation based on customer queries. Additionally, AI-powered search engines can help technical writers find relevant information more quickly and easily.
147
-
Speech synthesized to speaker for text [Artificial intelligence (AI) can help improve the efficiency of a technical writer's workflow in several ways. For example, AI can be used to generate information maps of documentation sets, analyze customer feedback to identify areas that need improvement, or suggest new topics for documentation based on customer queries. Additionally, AI-powered search engines can help technical writers find relevant information more quickly and easily.]
148
-
OpenAI is listening. Ctrl-Z to exit
149
-
OpenAI prompt:Write a tagline for an ice cream shop.
150
-
OpenAI response:Your favorite ice cream, made fresh!
151
-
Speech synthesized to speaker for text [Your favorite ice cream, made fresh!]
152
-
OpenAI is listening. Ctrl-Z to exit
153
-
No speech could be recognized: NoMatchDetails(reason=NoMatchReason.InitialSilenceTimeout)
147
+
Azure OpenAI is listening. Say 'Stop' or press Ctrl-Z to end the conversation.
148
+
Recognized speech:Make a comma separated list of all continents.
149
+
Azure OpenAI response:Africa, Antarctica, Asia, Australia, Europe, North America, South America
150
+
Speech synthesized to speaker for text [Africa, Antarctica, Asia, Australia, Europe, North America, South America]
151
+
Azure OpenAI is listening. Say 'Stop' or press Ctrl-Z to end the conversation.
152
+
Recognized speech:Make a comma separated list of 1 Astronomical observatory for each continent. The list should include each continent name in parentheses.
153
+
Azure OpenAI response:Mauna Kea Observatory (North America), European Southern Observatory (Europe), Atacama Large Millimeter Array (South America), Siding Spring Observatory (Australia), and South African Astronomical Observatory (Africa)
154
+
Speech synthesized to speaker for text [Mauna Kea Observatory (North America), European Southern Observatory (Europe), Atacama Large Millimeter Array (South America), Siding Spring Observatory (Australia), and South African Astronomical Observatory (Africa)]
155
+
Azure OpenAI is listening. Say 'Stop' or press Ctrl-Z to end the conversation.
0 commit comments