问题描述
我正在构建和利用语音识别将语音转换为文本的应用程序。 一切正常,但我想保存录音,以便可以将所说的内容与转录的内容进行比较。这是我的录音代码
func tapUploadVideo(_ sender: Any) {
//guard let path = Bundle.main.path(forResource: "Video",ofType: "mov") else { return }
let videoUrl = URL(fileURLWithPath: "your video file path")
AWSS3Manager.shared.uploadVideo(videoUrl: videoUrl,progress: { [weak self] (progress) in
guard let strongSelf = self else { return }
strongSelf.progressView.progress = Float(progress)
}) { [weak self] (uploadedFileUrl,error) in
guard let strongSelf = self else { return }
if let finalPath = uploadedFileUrl as? String {
strongSelf.s3UrlLabel.text = "Uploaded file url: " + finalPath
} else {
print("\(String(describing: error?.localizedDescription))")
}
}
}
我正在尝试使用此功能将捕获的音频上传到AWS s3
Credential validation was not successful: Timed out connecting to server
如何获取捕获的音频本地URL?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)