Update voice_create.py
Browse files- voice_create.py +3 -1
voice_create.py
CHANGED
|
@@ -20,7 +20,9 @@ def text_to_speech(input_file, selected_option):
|
|
| 20 |
for idx, row in data.iterrows():
|
| 21 |
# script列が文字列か確認し、文字列でない場合は空文字に置き換える
|
| 22 |
script = row.get('script', '')
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
if not isinstance(script, str):
|
| 25 |
script = str(script)
|
| 26 |
|
|
|
|
| 20 |
for idx, row in data.iterrows():
|
| 21 |
# script列が文字列か確認し、文字列でない場合は空文字に置き換える
|
| 22 |
script = row.get('script', '')
|
| 23 |
+
if script == '':
|
| 24 |
+
# scriptが空の場合はスキップ
|
| 25 |
+
continue
|
| 26 |
if not isinstance(script, str):
|
| 27 |
script = str(script)
|
| 28 |
|