@@ -115,12 +115,11 @@ Your app's _package.json_ file will be updated with the dependencies.
115
115
116
116
## Create a sample application
117
117
118
- #### [ TypeScript (Microsoft Entra Id )] ( #tab/typescript-keyless )
118
+ #### [ TypeScript (Microsoft Entra ID )] ( #tab/typescript-keyless )
119
119
120
120
1 . Create a new file named _ Whisper.js_ and open it in your preferred code editor. Copy the following code into the _ Whisper.js_ file:
121
121
122
122
``` typescript
123
- import " dotenv/config" ;
124
123
import { createReadStream } from " fs" ;
125
124
import { AzureOpenAI } from " openai" ;
126
125
import { DefaultAzureCredential , getBearerTokenProvider } from " @azure/identity" ;
@@ -175,12 +174,11 @@ Your app's _package.json_ file will be updated with the dependencies.
175
174
` ` ` console
176
175
node Whisper.js
177
176
` ` `
178
- #### [JavaScript (Microsoft Entra Id )](#tab / javascript - keyless )
177
+ #### [JavaScript (Microsoft Entra ID )](#tab / javascript - keyless )
179
178
180
179
1. Create a new file named _Whisper .js_ and open it in your preferred code editor . Copy the following code into the _Whisper .js_ file :
181
180
182
181
` ` ` javascript
183
- require("dotenv/config");
184
182
const { createReadStream } = require("fs");
185
183
const { AzureOpenAI } = require("openai");
186
184
const { DefaultAzureCredential, getBearerTokenProvider } = require("@azure/identity");
@@ -237,7 +235,6 @@ Your app's _package.json_ file will be updated with the dependencies.
237
235
1. Create a new file named _Whisper .js_ and open it in your preferred code editor . Copy the following code into the _Whisper .js_ file :
238
236
239
237
` ` ` typescript
240
- import "dotenv/config";
241
238
import { createReadStream } from "fs";
242
239
import { AzureOpenAI } from "openai";
243
240
@@ -293,7 +290,6 @@ Your app's _package.json_ file will be updated with the dependencies.
293
290
1. Create a new file named _Whisper .js_ and open it in your preferred code editor . Copy the following code into the _Whisper .js_ file :
294
291
295
292
` ` ` javascript
296
- require("dotenv/config");
297
293
const { createReadStream } = require("fs");
298
294
const { AzureOpenAI } = require("openai");
299
295
0 commit comments