Я получаю эту ошибку:
itterrows dataframe has no object
Кто-нибудь может мне помочь, это код:
import os
import pandas as pd
from pydub import AudioSegment
from gtts import gTTS
for index, item in df.itterrows():
textToSpeech(item['from'], '8_hindi.mp3')
textToSpeech(item['via'], ' 9_hindi.mp3')
textToSpeech(item['to'], ' 10_hindi.mp3')
textToSpeech(item['train_no'] + " " + item['train_name'], '4_hindi.mp3')
textToSpeech(item['platform'], ' 6_hindi.mp3')
audios = [f"{i}_hindi.mp3" for i in range(1,12)]
announcement = mergeAudios(audios)
announcement.export(f"announcement_{item['train_no']}_{index+1}.mp3", format="mp3")