das gebe ich ein:
python add_lead_in_messages.py -i 'import' -o export --use-say
Meine Audiodateien befinden sich im Unterordner ‚import‘. Dieser befindet sich im selben Ordner wie das Skript.
Das ist die komplette Ausgabe
WARNING: It looks like you are using an old version of Python. Please use Python 3 if you intend to use Google Text to Speech.
Adding lead-in "-Auf dem Bauernhof" to /Users/lp-mj-02/Documents/TonUINO/TonUINO-DEV/tools/export/001-Auf_dem_Bauernhof.mp3
Generating: temp-lead-in.mp3 - -Auf dem Bauernhof
say: invalid option -- A
Usage: say [-v voice] [-o out] [-f in | message]
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.16)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin -fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
temp.aiff: No such file or directory
Traceback (most recent call last):
File "add_lead_in_messages.py", line 135, in <module>
addLeadInMessage(args.input, args.output)
File "add_lead_in_messages.py", line 55, in addLeadInMessage
addLeadInMessage(os.path.join(inputPath, child), os.path.join(outputPath, child))
File "add_lead_in_messages.py", line 84, in addLeadInMessage
text_to_speech.textToSpeechUsingArgs(text=text, targetFile=tempLeadInFile, args=args)
File "/Users/lp-mj-02/Documents/TonUINO/TonUINO-DEV/tools/text_to_speech.py", line 64, in textToSpeechUsingArgs
textToSpeech(text, targetFile, lang=args.lang, useAmazon=args.use_amazon, useGoogleKey=args.use_google_key)
File "/Users/lp-mj-02/Documents/TonUINO/TonUINO-DEV/tools/text_to_speech.py", line 97, in textToSpeech
os.remove('temp.aiff')
OSError: [Errno 2] No such file or directory: 'temp.aiff'