with open(recordingFile, 'wb') as f:
ch = -1
for ch in iter(lambda: ch+1, -1):
try:
with open(f'chunk_{ch}', 'rb') as chunk_file:
f.write(chunk_file.read())
except FileNotFoundError:
break
def spin_words(sentence):
snt = sentence.split()
for k,x in enumerate(snt):
if len(x) >= 5:
snt[k]=x[::-1]
return " ".join(snt)