amazon-connect / ai-powered-speech-analytics-for-amazon-connect

The AI Powered Speech Analytics for Amazon Connect solution provides the combination of speech to text transcription, translation into preferred languages, and insights for agents and supervisors all in real-time
https://aws.amazon.com/solutions/implementations/ai-powered-speech-analytics-for-amazon-connect/
Other
55 stars 54 forks source link

同時通話で文字起こしが中断する。 #33

Open yuichiro-honda opened 2 years ago

yuichiro-honda commented 2 years ago

このサンプルで同時通話を実行すると、文字起こしが中断します。 おそらくスレッドでタスクを処理しきれなくなって終わってしまっているように見えます。 単にこのサンプルとして使うのであれば問題ないですが、実際のコールセンターでは使えません。

java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@30f751d0[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@166249ce[Wrapped task = com.amazonaws.transcribestreaming.KVSByteToAudioEventSubscription$$Lambda$440/0x000000010054e440@60ed4494]] rejected from java.util.concurrent.ThreadPoolExecutor@2ace3efd[Shutting down, pool size = 1, active threads = 1, queued tasks = 97, completed tasks = 0]

dfw100 commented 2 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?

yuichiro-honda commented 2 years ago

Hi @dfw100 san このソリューションのAmazon Connectで同時通話を行います。 例えば5通話同時に実行すると、途中でエラーが発生して音声テキスト化が5通話共に終了します。 1通話では発生しないようです。エラーが出るまでの時間はまちまちです。 この音声テキスト化のプログラムはAmazon ConnectのLambda呼び出しブロックで実行されるトリガーLambdaの実行で SQSからのメッセージを受けて、スレッドを立ち上げて処理しているようですが、 上記のログを見ると、タスクが処理しきれなくなって終了しているように見えます。 そのため、問題は音声テキスト化のプログラムにあると思われます。

yuichiro-honda commented 2 years ago

Hi @Angela

コメントありがとうございます。 この問題はKVSの45分リミットの問題ではありません。 Gitのサンプルはこの対応がすでに組み込まれています。(課題はありますが)

本件は同時通話によって、数分ですべての文字起こしが例外を起こして終了します。

AWS側も再現することを確認しています。 ただし、AWS側も何が問題か把握できていません。

ログを見る限りJavaのスレッドがタスクを処理しきれずシャットダウンしていると思われます。

KVSに45分のリミットがあることは理解していますので、リンクの内容では解決しません。

ありがとう。

2021年10月12日(火) 6:13 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/33#issuecomment-940443908, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNBWXTGB53RAT6GKPP5EULUGNHOHANCNFSM5FEM3NVA . 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号≫


yuichiro-honda commented 2 years ago

こちらの原因はDynamoDBのキャパシティの問題でした。 オンデマンドにすることで解決しました。 Gitに上がっているコードは固定で5になっているため、同時通話でキャパシティを超えて、この問題が起きます。