Skip to content

Examples and guides for using the OpenAI API

Update markdown headers in Realtime out-of-band transcription example… (#2252)

Minhajul Hoque2bf9c1b9e943
diff --git a/examples/Realtime_out_of_band_transcription.ipynb b/examples/Realtime_out_of_band_transcription.ipynb
index 63f4e4bf..2ae3c26e 100644
--- a/examples/Realtime_out_of_band_transcription.ipynb
+++ b/examples/Realtime_out_of_band_transcription.ipynb
@@ -38,9 +38,10 @@
},
{
"cell_type": "markdown",
+ "id": "1c0f46ad",
"metadata": {},
"source": [
- "## 1. Why use out-of-band transcription?\n",
+ "# 1. Why use out-of-band transcription?\n",
"\n",
"The Realtime API offers built-in user input transcription, but this relies on a **separate ASR model** (e.g., gpt-4o-transcribe). Using different models for transcription and response generation can lead to discrepancies. For example:\n",
"\n",
@@ -100,9 +101,10 @@
},
{
"cell_type": "markdown",
+ "id": "63ccae3d",
"metadata": {},
"source": [
- "## 2. Requirements & Setup\n",
+ "# 2. Requirements & Setup\n",
"\n",
"Ensure your environment meets these requirements:\n",
"\n",
@@ -144,7 +146,7 @@
"id": "d7d60089",
"metadata": {},
"source": [
- "## 3. Prompts\n",
+ "# 3. Prompts\n",
"\n",
"We use **two distinct prompts**:\n",
"\n",
@@ -201,7 +203,7 @@
"id": "4ddbd683",
"metadata": {},
"source": [
- "## 4. Core configuration\n",
+ "# 4. Core configuration\n",
"\n",
"We define:\n",
"\n",
@@ -291,7 +293,7 @@
"id": "a905ec16",
"metadata": {},
"source": [
- "## 5. Building the Realtime session & the out‑of‑band request\n",
+ "# 5. Building the Realtime session & the out‑of‑band request\n",
"\n",
"The Realtime session (`session.update`) configures:\n",
"\n",
@@ -394,7 +396,7 @@
"id": "9afe7911",
"metadata": {},
"source": [
- "## 6. Audio streaming: mic → Realtime → speakers\n",
+ "# 6. Audio streaming: mic → Realtime → speakers\n",
"\n",
"We now define:\n",
"\n",
@@ -506,7 +508,7 @@
"id": "d02cc1bd",
"metadata": {},
"source": [
- "## 7. Extracting and comparing transcripts\n",
+ "# 7. Extracting and comparing transcripts\n",
"\n",
"The function below enables us to generate **two transcripts** for each user turn:\n",
"\n",
@@ -556,7 +558,7 @@
"id": "6025bbf6",
"metadata": {},
"source": [
- "## 8. Listening for Realtime events\n",
+ "# 8. Listening for Realtime events\n",
"\n",
"`listen_for_events` drives the session:\n",
"\n",
@@ -739,7 +741,7 @@
"id": "10c69ded",
"metadata": {},
"source": [
- "## 9. Run Script\n",
+ "# 9. Run Script\n",
"\n",
"In this step, we run the the code which will allow us to view the realtime model transcription vs transcription model transcriptions. The code does the following:\n",
"\n",