/* Options: Date: 2025-05-12 18:54:03 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SpeechToText.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* /** * Convert speech to text */ @Api(Description="Convert speech to text") open class SpeechToText : IReturn, IGeneration { /** * The audio stream containing the speech to be transcribed */ @ApiMember(Description="The audio stream containing the speech to be transcribed") @Required() open var audio:String? = null /** * Optional client-provided identifier for the request */ @ApiMember(Description="Optional client-provided identifier for the request") override var refId:String? = null /** * Tag to identify the request */ @ApiMember(Description="Tag to identify the request") override var tag:String? = null companion object { private val responseType = TextGenerationResponse::class.java } override fun getResponseType(): Any? = SpeechToText.responseType } /** * Response object for text generation requests */ @Api(Description="Response object for text generation requests") open class TextGenerationResponse { /** * List of generated text outputs */ @ApiMember(Description="List of generated text outputs") open var results:ArrayList? = null /** * Detailed response status information */ @ApiMember(Description="Detailed response status information") open var responseStatus:ResponseStatus? = null } interface IGeneration { var refId:String? var tag:String? } /** * Output object for generated text */ open class TextOutput { /** * The generated text */ @ApiMember(Description="The generated text") open var text:String? = null }