MCPcopy Create free account
hub / github.com/langgenius/dify / audioToText

Method audioToText

sdks/nodejs-client/src/client/base.ts:212–223  ·  view source on GitHub ↗
(form: unknown, user: string)

Source from the content-addressed store, hash-verified

210 }
211
212 audioToText(form: unknown, user: string): Promise<DifyResponse<JsonObject>> {
213 if (!isFormData(form)) {
214 throw new FileUploadError("FormData is required for audio uploads");
215 }
216 ensureNonEmptyString(user, "user");
217 appendUserToFormData(form, user);
218 return this.http.request({
219 method: "POST",
220 path: "/audio-to-text",
221 data: form,
222 });
223 }
224
225 textToAudio(
226 request: TextToAudioRequest

Callers 1

base.test.tsFile · 0.80

Calls 4

isFormDataFunction · 0.90
ensureNonEmptyStringFunction · 0.90
appendUserToFormDataFunction · 0.85
requestMethod · 0.45

Tested by

no test coverage detected