amplify-swift/Amplify/Categories/Predictions/Result/TextToSpeechResult.swift

21 lines
461 B
Swift

//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
import Foundation
/// Results are mapped to TextToSpeechResult when convert() API is
/// called to convert a text to audio
public struct TextToSpeechResult: ConvertResult {
/// Resulting audio from text to speech conversion
public let audioData: Data
public init(audioData: Data) {
self.audioData = audioData
}
}