diff --git a/Readme.md b/Readme.md
index d6a003e..29b2688 100644
--- a/Readme.md
+++ b/Readme.md
@@ -89,7 +89,7 @@ Windowsの場合は、Windowsの検索窓で「環境変数を編集」で検索
以下のリンクから ZundaGPT2.ZIP をダウンロードして、作成したフォルダに展開するのだ。
-https://github.com/led-mirage/ZundaGPT2/releases/tag/v1.0.0
+https://github.com/led-mirage/ZundaGPT2/releases/tag/v1.0.1
#### 3. 実行
@@ -169,9 +169,9 @@ OpenAIやGoogle GeminiのAPIキーはあなただけのものなので、人に
これが嫌な人は(ボクも嫌だけど)、Python本体をインストールしてPythonから普通に実行して欲しいのだ。実行ファイルのほうが手軽だし、そのほうがPythonに詳しくない人にとっては簡単なんだけど、誤認問題がついて回ることは覚えておいて欲しいのだ。
VirusTotalでのチェック結果は以下の通りなのだ。
-(74個中3個のアンチウィルスエンジンで検出 :2024/06/02 v1.0.0)。
+(72個中3個のアンチウィルスエンジンで検出 :2024/06/08 v1.0.1)。
-
+
### ⚡ 免責事項
@@ -184,12 +184,12 @@ VirusTotalでのチェック結果は以下の通りなのだ。
ホームページ: https://github.com/r0x0r/pywebview
ライセンス:BSD-3-Clause license
-### 🔖 openai 1.23.2
+### 🔖 openai 1.33.0
ホームページ: https://github.com/openai/openai-python
ライセンス:Apache License 2.0
-### 🔖 google-generativeai 0.5.4
+### 🔖 google-generativeai 0.6.0
ホームページ: https://github.com/google-gemini/generative-ai-python
ライセンス:Apache License 2.0
@@ -199,7 +199,7 @@ VirusTotalでのチェック結果は以下の通りなのだ。
ホームページ: https://github.com/pndurette/gTTS
ライセンス:MIT License
-### 🔖 requests 2.31.0
+### 🔖 requests 2.32.3
ホームページ: https://requests.readthedocs.io/en/latest/
ライセンス:Apache License 2.0
@@ -342,3 +342,10 @@ VirusTotalでのチェック結果は以下の通りなのだ。
- SAPI5に対応
- requestsのバージョンを2.32.2に更新
- バージョンを1.x.xに改定
+
+### 1.0.1 (2024/6/8)
+
+- openaiのバージョンを1.33.0に更新
+- google-generativeaiのバージョンを0.6.0に更新
+- requestsのバージョンを2.32.3に更新
+- 再生環境による文末の音声途切れ問題を軽減するため、再生終了後に0.2秒間の待機時間を追加
diff --git a/app/main.py b/app/main.py
index 7694541..7dff307 100644
--- a/app/main.py
+++ b/app/main.py
@@ -22,7 +22,7 @@
from chat_log import ChatLog
APP_NAME = "ZundaGPT2"
-APP_VERSION = "1.0.0"
+APP_VERSION = "1.0.1"
COPYRIGHT = "Copyright 2024 led-mirage"
# アプリケーションクラス
diff --git a/app/sound/sound.py b/app/sound/sound.py
index d35156b..8a9b4f3 100644
--- a/app/sound/sound.py
+++ b/app/sound/sound.py
@@ -7,6 +7,7 @@
# ライセンスの詳細については、このプロジェクトのLICENSEファイルを参照してください。
import io
+import time
import wave
import pyaudio
@@ -29,6 +30,7 @@ def play_sound(wave_data: bytes):
while data != b'':
stream.write(data)
data = wave_file.readframes(1024)
+ time.sleep(0.2)
finally:
stream.stop_stream()
stream.close()
diff --git a/doc/virustotal_1.0.1.png b/doc/virustotal_1.0.1.png
new file mode 100644
index 0000000..aedb6ee
Binary files /dev/null and b/doc/virustotal_1.0.1.png differ
diff --git a/requirements.txt b/requirements.txt
index 6f0bebb..f41cdcd 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,9 +1,9 @@
pywebview==4.4.1
requests==2.32.3
pyaudio==0.2.14
-openai==1.23.2
+openai==1.33.0
pythonnet==3.0.3
-google-generativeai==0.5.4
+google-generativeai==0.6.0
gtts==2.5.1
langdetect==1.0.9
pydub==0.25.1