/* Options: Date: 2025-05-12 19:02:16 SwiftVersion: 6.0 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: SpeechToText.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Convert speech to text */ // @Api(Description="Convert speech to text") public class SpeechToText : IReturn, IGeneration, Codable { public typealias Return = TextGenerationResponse /** * The audio stream containing the speech to be transcribed */ // @ApiMember(Description="The audio stream containing the speech to be transcribed") // @Required() public var audio:String? /** * Optional client-provided identifier for the request */ // @ApiMember(Description="Optional client-provided identifier for the request") public var refId:String? /** * Tag to identify the request */ // @ApiMember(Description="Tag to identify the request") public var tag:String? required public init(){} } /** * Response object for text generation requests */ // @Api(Description="Response object for text generation requests") public class TextGenerationResponse : Codable { /** * List of generated text outputs */ // @ApiMember(Description="List of generated text outputs") public var results:[TextOutput]? /** * Detailed response status information */ // @ApiMember(Description="Detailed response status information") public var responseStatus:ResponseStatus? required public init(){} } public protocol IGeneration { var refId:String? { get set } var tag:String? { get set } } /** * Output object for generated text */ public class TextOutput : Codable { /** * The generated text */ // @ApiMember(Description="The generated text") public var text:String? required public init(){} }