0
私のプロジェクトの1つにamazon pollyを迅速に統合し、複数のテキスト文字列をTTSに依頼しています。確かに私は、サウンドを再生するために一連の命令の下に存在し使用しています:アマゾンが複数のテキスト入力をポーリンシーしていない
builder.continueOnSuccessWith { (awsTask: AWSTask<NSURL>) ->
Any? in
// The result of getPresignedURL task is NSURL.
// Again, we ignore the errors in the example.
let url = awsTask.result!
// Try playing the data using the system AVAudioPlayer
self.audioPlayer.replaceCurrentItem(with: AVPlayerItem(url: url as URL))
self.audioPlayer.play()
return nil
}
デバッグは、私はreplaceCurrentItemがプレイするための新しいアイテムを追加し、前を無視していることが判明している間。ポリグラフがフレームワーク内でこのような複数の呼び出しをどのように処理するかについていくつかの提案をしたいと思います。
ありがとう