/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { audioCreateTranscription } from "../funcs/audioCreateTranscription.js"; import { audioCreateTranslation } from "../funcs/audioCreateTranslation.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Audio extends ClientSDK { /** * Transcribe Audio to Text */ async createTranscription( request: models.BodyTranscriptionsV1AudioTranscriptionsPost, options?: RequestOptions, ): Promise { return unwrapAsync(audioCreateTranscription( this, request, options, )); } /** * Translate Audio to Text */ async createTranslation( request: models.BodyTranslationsV1AudioTranslationsPost, options?: RequestOptions, ): Promise< models.TranslationsV1AudioTranslationsPostResponseTranslationsV1AudioTranslationsPost > { return unwrapAsync(audioCreateTranslation( this, request, options, )); } }