Open yuichiro-honda opened 3 years ago
Hi @yuichiro-honda , could you please provide us with additional information such as steps to reproduce and the AWS resource where you are seeing this error?
Hi @dfw100 san. 2つの問いかけにレスポンスありがとうございます。 このサンプルはKVSの45分の制限を超えるために、42分で文字起こしを再実行しているかと思います。 ただし、実際に42分を超えて再実行された時に、その切り替えの20数秒エラーが発生して、 文字起こし結果が欠落します。また、稀に顧客またはオペレータの音声テキスト化が再実行されずに終了します。 推測ですが、再実行時に前のTranscribeの結果が完了していないうちに再実行され、 継続して開始する位置が、Transcribeの結果が完了していない部分より後ろから開始されているのではないかと 思われます。 これは普通に42分以上通話をして、跨ぐ部分で会話をしていれば、毎回再現します。 再現する場合は通話量がもったいないので、42分を5分とかに書き換えて再現したほうがよいです。
Hi @yuichiro-honda, KVS Session are limited to 45 minutes so we request a new endpoint at 42 minutes and issue a new GetMedia. Please try adjusting the timing in the code.
Please see aws/amazon-kinesis-video-streams-parser-library#108 . We have the same implementation.
Let me know if this answers your question.
Hi, @Angela
KVSに45分のリミットがあることは理解しています。 このサンプルはそれが対応されています(42分で再実行)。
ただし、処理に問題があるため、再実行するさいの20数秒の文字起こしが欠落します。 ログにも例外が出力されるはずです。
これは、再実行時に、Transcribeも再実行しているせいかと思われます。 そのため、KVS再実行時にはまだ完了していない文字起こし処理が、中断されてしまうのではないでしょうか? サンプルプログラムを試せば100%再現するので確認できるかと思います。
42分待つのは長すぎるので、再実行時間を5分程度に変更して試すのがよいかと思います。
ありがとう。
2021年10月12日(火) 6:14 Angela @.***>:
Hi @yuichiro-honda https://github.com/yuichiro-honda, KVS Session are limited to 45 minutes so we request a new endpoint at 42 minutes and issue a new GetMedia. Please try adjusting the timing in the code.
Please see aws/amazon-kinesis-video-streams-parser-library#108 https://github.com/aws/amazon-kinesis-video-streams-parser-library/issues/108 . We have the same implementation.
Let me know if this answers your question.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/amazon-connect/ai-powered-speech-analytics-for-amazon-connect/issues/32#issuecomment-940444777, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNBWXRYHLXN6DDBJOX5V3LUGNHUHANCNFSM5FEMWAGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
--
ARアドバンストテクノロジ株式会社【A.R.I.】 ユニファイドソリューションユニット UCネットワーク部 UCサービス第1課
本多 裕一郎(Yuichiro Honda)
<<渋谷オフィス>> 〒150-0002 東京都渋谷区渋谷1-14-16 渋谷野村證券ビル8F TEL:03-6450-6080 / FAX:03-6450-6088 @.*** URL:http://www.ari-jp.com
≪ISMS/ISO27001認証取得≫ ≪Pマーク認証番号:第17000819号≫
Hey @yuichiro-honda thanks for the update. Here is in the code where this is done
Feel free to update it to see if it suits your use case better. Please keep in mind other API limits if for example if you change it to 5min.
KVSの45分のリミットを超えるために、42分で再リクエストしていますが、 まだTranscribeが完了していないうちに再実行してしまうため、20秒程度のテキスト化の結果が欠落します。
また、稀に継続せずに顧客またはオペレータの文字起こしが終了してしまいます。 こちらに関しては、GetMedia API より返却されるペイロードから AWS_KINESISVIDEO_CONTINUATION_TOKEN を取得して、 そのトークンを指定して再度 GetMedia を行うよう修正することで対応出来ました。