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.
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";
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.
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>";
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.
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
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.
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
You can’t perform that action at this time.
0 commit comments