Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai/resources/audio/translations.ts>Translations

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
namespace Translations
import { Translations } from "https://deno.land/x/openai@v4.66.1/resources/audio/translations.ts";
class Translations
extends APIResource
import { Translations } from "https://deno.land/x/openai@v4.66.1/resources/audio/translations.ts";

Methods

create(body: TranslationCreateParams<"json" | undefined>, options?: Core.RequestOptions): Core.APIPromise<Translation>

Translates audio into English.

create(body: TranslationCreateParams<"verbose_json">, options?: Core.RequestOptions): Core.APIPromise<TranslationVerbose>
create(body: TranslationCreateParams<"text" | "srt" | "vtt">, options?: Core.RequestOptions): Core.APIPromise<string>
create(body: TranslationCreateParams, options?: Core.RequestOptions): Core.APIPromise<Translation>