/* Options: Date: 2025-05-12 17:37:04 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SpeechToText.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface IGeneration { refId?: string; tag?: string; } // @DataContract export class ResponseError { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public fieldName: string; // @DataMember(Order=3) public message: string; // @DataMember(Order=4) public meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public message: string; // @DataMember(Order=3) public stackTrace: string; // @DataMember(Order=4) public errors: ResponseError[]; // @DataMember(Order=5) public meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Output object for generated text */ export class TextOutput { /** @description The generated text */ // @ApiMember(Description="The generated text") public text?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Response object for text generation requests */ // @Api(Description="Response object for text generation requests") export class TextGenerationResponse { /** @description List of generated text outputs */ // @ApiMember(Description="List of generated text outputs") public results?: TextOutput[]; /** @description Detailed response status information */ // @ApiMember(Description="Detailed response status information") public responseStatus?: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Convert speech to text */ // @Api(Description="Convert speech to text") export class SpeechToText implements IReturn, IGeneration { /** @description The audio stream containing the speech to be transcribed */ // @ApiMember(Description="The audio stream containing the speech to be transcribed") // @Required() public audio: string; /** @description Optional client-provided identifier for the request */ // @ApiMember(Description="Optional client-provided identifier for the request") public refId?: string; /** @description Tag to identify the request */ // @ApiMember(Description="Tag to identify the request") public tag?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SpeechToText'; } public getMethod() { return 'POST'; } public createResponse() { return new TextGenerationResponse(); } }