File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed
articles/ai-services/openai/includes Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,7 @@ Your app's _package.json_ file will be updated with the dependencies.
106
106
107
107
// You will need to set these environment variables or edit the following values
108
108
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>" ;
111
110
112
111
// Required Azure OpenAI deployment name and API version
113
112
const deploymentName = " tts" ;
@@ -174,8 +173,7 @@ Your app's _package.json_ file will be updated with the dependencies.
174
173
// You will need to set these environment variables or edit the following values
175
174
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
176
175
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>";
179
177
180
178
// Required Azure OpenAI deployment name and API version
181
179
const deploymentName = "tts";
Original file line number Diff line number Diff line change @@ -108,8 +108,7 @@ Your app's _package.json_ file will be updated with the dependencies.
108
108
109
109
// You will need to set these environment variables or edit the following values
110
110
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>" ;
113
112
114
113
// Required Azure OpenAI deployment name and API version
115
114
const deploymentName = " tts" ;
@@ -184,7 +183,7 @@ Your app's _package.json_ file will be updated with the dependencies.
184
183
import "openai/shims/node";
185
184
186
185
// 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>";
188
187
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
189
188
const speechFilePath =
190
189
process.env["SPEECH_FILE_PATH"] || "<path to save the speech file>";
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ Your app's _package.json_ file will be updated with the dependencies.
112
112
const { DefaultAzureCredential , getBearerTokenProvider } = require (" @azure/identity" );
113
113
114
114
// 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>" ;
116
116
const endpoint = process .env [" AZURE_OPENAI_ENDPOINT" ] || " <endpoint>" ;
117
117
118
118
// Required Azure OpenAI deployment name and API version
@@ -167,7 +167,7 @@ Your app's _package.json_ file will be updated with the dependencies.
167
167
import { AzureOpenAI } from "openai";
168
168
169
169
// 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>";
171
171
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
172
172
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
173
173
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ Your app's _package.json_ file will be updated with the dependencies.
109
109
import { DefaultAzureCredential , getBearerTokenProvider } from " @azure/identity" ;
110
110
111
111
// 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>" ;
113
113
const endpoint = process .env [" AZURE_OPENAI_ENDPOINT" ] || " <endpoint>" ;
114
114
115
115
// Required Azure OpenAI deployment name and API version
@@ -168,7 +168,7 @@ Your app's _package.json_ file will be updated with the dependencies.
168
168
import { AzureOpenAI } from "openai";
169
169
170
170
// 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>";
172
172
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] || "<endpoint>";
173
173
const apiKey = process.env["AZURE_OPENAI_API_KEY"] || "<api key>";
174
174
You can’t perform that action at this time.
0 commit comments