Skip to content

Commit 95eaf46

Browse files
authored
🐛 fix: fix stt request url (#50)
1 parent 54fe503 commit 95eaf46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/OpenAISTT/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class OpenaiSTT {
7171
static safeRecordMineType = getRecordMineType;
7272

7373
fetch = async (payload: OpenAISTTPayload) => {
74-
const url = urlJoin(this.OPENAI_BASE_URL, 'audio/speech');
74+
const url = urlJoin(this.OPENAI_BASE_URL, 'audio/transcriptions');
7575
return this.serviceUrl
7676
? fetch(this.serviceUrl, {
7777
body: genServiceSTTBody(payload),

0 commit comments

Comments
 (0)