TranscribeStreamingService
public struct TranscribeStreamingService
Client object for interacting with AWS TranscribeStreamingService service.
Operations and objects for transcribing streaming speech to text.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the TranscribeStreamingService client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)Parameters
accessKeyIdPublic access key provided by AWS
secretAccessKeyPrivate access key provided by AWS
sessionTokenToken provided by STS.AssumeRole() which allows access to another AWS account
regionRegion of server you want to communicate with
endpointCustom endpoint URL to use instead of standard AWS servers
middlewaresArray of middlewares to apply to requests and responses
eventLoopGroupProviderEventLoopGroup to use. Use
useAWSClientSharedif the client shall manage its own EventLoopGroup.
-
Starts a bidirectional HTTP2 stream where audio is streamed to Amazon Transcribe and the transcription results are streamed to your application. The following are encoded as HTTP2 headers: x-amzn-transcribe-language-code x-amzn-transcribe-media-encoding x-amzn-transcribe-sample-rate x-amzn-transcribe-session-id
Declaration
Swift
@discardableResult public func startStreamTranscription() -> EventLoopFuture<Void>
View on GitHub
TranscribeStreamingService Structure Reference