Skip to content

Commit 66a1b79

Browse files
committed
edits
1 parent 28ad6cb commit 66a1b79

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

articles/ai-services/openai/includes/text-to-speech-javascript.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ Your app's _package.json_ file will be updated with the dependencies.
106106

107107
// You will need to set these environment variables or edit the following values
108108
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
109-
const speechFilePath =
110-
process.env["SPEECH_FILE_PATH"] || "<path to save the speech file>";
109+
const speechFilePath = "<path to save the speech file>";
111110

112111
// Required Azure OpenAI deployment name and API version
113112
const deploymentName = "tts";
@@ -174,8 +173,7 @@ Your app's _package.json_ file will be updated with the dependencies.
174173
// You will need to set these environment variables or edit the following values
175174
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
176175
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
177-
const speechFilePath =
178-
process.env["SPEECH_FILE_PATH"] || "<path to save the speech file>";
176+
const speechFilePath = "<path to save the speech file>";
179177
180178
// Required Azure OpenAI deployment name and API version
181179
const deploymentName = "tts";

articles/ai-services/openai/includes/text-to-speech-typescript.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ Your app's _package.json_ file will be updated with the dependencies.
108108

109109
// You will need to set these environment variables or edit the following values
110110
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
111-
const speechFilePath =
112-
process.env["SPEECH_FILE_PATH"] || "<path to save the speech file>";
111+
const speechFilePath = "<path to save the speech file>";
113112

114113
// Required Azure OpenAI deployment name and API version
115114
const deploymentName = "tts";
@@ -184,7 +183,7 @@ Your app's _package.json_ file will be updated with the dependencies.
184183
import "openai/shims/node";
185184
186185
// You will need to set these environment variables or edit the following values
187-
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
186+
const endpoint = "<endpoint>";
188187
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
189188
const speechFilePath =
190189
process.env["SPEECH_FILE_PATH"] || "<path to save the speech file>";

articles/ai-services/openai/includes/whisper-javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Your app's _package.json_ file will be updated with the dependencies.
112112
const { DefaultAzureCredential, getBearerTokenProvider } = require("@azure/identity");
113113

114114
// You will need to set these environment variables or edit the following values
115-
const audioFilePath = process.env["AUDIO_FILE_PATH"] || "<audio file path>";
115+
const audioFilePath = "<audio file path>";
116116
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
117117

118118
// Required Azure OpenAI deployment name and API version
@@ -167,7 +167,7 @@ Your app's _package.json_ file will be updated with the dependencies.
167167
import { AzureOpenAI } from "openai";
168168
169169
// You will need to set these environment variables or edit the following values
170-
const audioFilePath = process.env["AUDIO_FILE_PATH"] || "<audio file path>";
170+
const audioFilePath = "<audio file path>";
171171
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
172172
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
173173

articles/ai-services/openai/includes/whisper-typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Your app's _package.json_ file will be updated with the dependencies.
109109
import { DefaultAzureCredential, getBearerTokenProvider } from "@azure/identity";
110110

111111
// You will need to set these environment variables or edit the following values
112-
const audioFilePath = process.env["AUDIO_FILE_PATH"] || "<audio file path>";
112+
const audioFilePath = "<audio file path>";
113113
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
114114

115115
// Required Azure OpenAI deployment name and API version
@@ -168,7 +168,7 @@ Your app's _package.json_ file will be updated with the dependencies.
168168
import { AzureOpenAI } from "openai";
169169
170170
// You will need to set these environment variables or edit the following values
171-
const audioFilePath = process.env["AUDIO_FILE_PATH"] || "<audio file path>";
171+
const audioFilePath = "<audio file path>";
172172
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
173173
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
174174

0 commit comments

Comments
 (0)