Skip to content

Commit ed7d1a2

Browse files
committed
edits
1 parent 7fd8ec7 commit ed7d1a2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,11 @@ Your app's _package.json_ file will be updated with the dependencies.
115115

116116
## Create a sample application
117117

118-
#### [TypeScript (Microsoft Entra Id)](#tab/typescript-keyless)
118+
#### [TypeScript (Microsoft Entra ID)](#tab/typescript-keyless)
119119

120120
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:
121121

122122
```typescript
123-
import "dotenv/config";
124123
import { createReadStream } from "fs";
125124
import { AzureOpenAI } from "openai";
126125
import { DefaultAzureCredential, getBearerTokenProvider } from "@azure/identity";
@@ -175,12 +174,11 @@ Your app's _package.json_ file will be updated with the dependencies.
175174
```console
176175
node Whisper.js
177176
```
178-
#### [JavaScript (Microsoft Entra Id)](#tab/javascript-keyless)
177+
#### [JavaScript (Microsoft Entra ID)](#tab/javascript-keyless)
179178

180179
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:
181180

182181
```javascript
183-
require("dotenv/config");
184182
const { createReadStream } = require("fs");
185183
const { AzureOpenAI } = require("openai");
186184
const { DefaultAzureCredential, getBearerTokenProvider } = require("@azure/identity");
@@ -237,7 +235,6 @@ Your app's _package.json_ file will be updated with the dependencies.
237235
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:
238236

239237
```typescript
240-
import "dotenv/config";
241238
import { createReadStream } from "fs";
242239
import { AzureOpenAI } from "openai";
243240
@@ -293,7 +290,6 @@ Your app's _package.json_ file will be updated with the dependencies.
293290
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:
294291

295292
```javascript
296-
require("dotenv/config");
297293
const { createReadStream } = require("fs");
298294
const { AzureOpenAI } = require("openai");
299295

0 commit comments

Comments
 (0)