0
아마존 폴리을 신속하게 내 프로젝트 중 하나에 통합하고 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 플레이 할 수있는 새로운 항목을 추가하고 이전을 무시 것을 발견 디버그 동안. polly가 프레임 워크 내에서 여러 호출을 처리하는 방법에 대한 제안을하고 싶습니다.
도움을 주셨습니다. 감사합니다