ManimCommunity / manim-voiceover

Manim plugin for all things voiceover
https://voiceover.manim.community/en/stable
MIT License
154 stars 20 forks source link

Get a TypeError: 'NoneType' object is not subscriptable after press key 'a' during RECORDING #82

Open semikernel opened 5 months ago

semikernel commented 5 months ago

Description of bug / unexpected behavior

I pressed 'r' to record my voice and after that, when I want to continue and press a, the error happened.

Expected behavior

It should save my voice and let me record next one

How to reproduce the issue

manim -pql recording.py --disable_caching then press 'a' Press... l to [l]isten to the recording r to [r]e-record a to [a]ccept the recording

Code for reproducing the problem ```py manim -pql recording.py --disable_caching ```

Additional media files

image

Images/GIFs

Logs

Terminal output ``` /home/semikernel/anaconda3/envs/manimexp/lib/python3.11/site-packages/stable_whisper/whisper_word_level.py:235: UserWarning: FP16 is not supported on CPU; using FP32 instead warnings.warn("FP16 is not supported on CPU; using FP32 instead") 0%| | 0/4.59 [00:00= time_offset │ │ 307 │ │ │ │ │ ) │ │ 308 │ │ │ │ │ start_sample = ( │ ╰──────────────────────────────────────────────────────────────────────────────╯ TypeError: 'NoneType' object is not subscriptable ```

System specifications

System Details - OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Red Hat Enterprise Linux 9.3 (Plow) - RAM:16GB - Python version (`python/py/python3 --version`):Python 3.11.7 - Installed modules (provide output from `pip list`): ``` Package Version ------------------------------ ------------ absl-py 2.1.0 aiohttp 3.9.1 aiosignal 1.3.1 annotated-types 0.6.0 anyascii 0.3.2 asttokens 2.4.1 attrs 23.2.0 audioread 3.0.1 azure-cognitiveservices-speech 1.34.1 Babel 2.14.0 bangla 0.0.2 blinker 1.7.0 blis 0.7.11 bnnumerizer 0.0.2 bnunicodenormalizer 0.1.6 Brotli 1.1.0 build 1.0.3 CacheControl 0.13.1 cachetools 5.3.2 catalogue 2.0.10 certifi 2023.11.17 cffi 1.16.0 charset-normalizer 3.3.2 cleo 2.1.0 click 8.1.7 click-default-group 1.2.4 cloudpathlib 0.16.0 cloup 2.1.2 cmake 3.28.1 colorama 0.4.6 confection 0.1.4 contourpy 1.2.0 coqpit 0.0.17 crashtest 0.4.1 cryptography 42.0.1 cycler 0.12.1 cymem 2.0.8 Cython 3.0.8 dateparser 1.1.8 decorator 5.1.1 distlib 0.3.8 docopt 0.6.2 dulwich 0.21.7 einops 0.7.0 encodec 0.1.1 evdev 1.6.1 executing 2.0.1 fastjsonschema 2.19.1 ffmpeg-python 0.2.0 filelock 3.13.1 Flask 3.0.1 fonttools 4.47.2 frozenlist 1.4.1 fsspec 2023.12.2 future 0.18.3 g2pkk 0.1.2 glcontext 2.5.0 google-auth 2.27.0 google-auth-oauthlib 1.2.0 grpcio 1.60.0 gruut 2.2.3 gruut-ipa 0.13.0 gruut_lang_de 2.0.0 gruut_lang_en 2.0.0 gruut_lang_es 2.0.0 gruut_lang_fr 2.0.2 gTTS 2.5.0 hangul-romanize 0.1.0 huggingface-hub 0.20.3 idna 3.6 importlib-metadata 7.0.1 inflect 7.0.0 installer 0.7.0 ipython 8.20.0 isosurfaces 0.1.0 itsdangerous 2.1.2 jamo 0.4.1 jaraco.classes 3.3.0 jedi 0.19.1 jeepney 0.8.0 jieba 0.42.1 Jinja2 3.1.3 joblib 1.3.2 jsonlines 1.2.0 keyring 24.3.0 kiwisolver 1.4.5 langcodes 3.3.0 lazy_loader 0.3 librosa 0.10.1 lit 17.0.6 llvmlite 0.41.1 manim 0.18.0 manim-voiceover 0.3.4.post1 ManimPango 0.5.0 mapbox-earcut 1.0.1 Markdown 3.5.2 markdown-it-py 3.0.0 MarkupSafe 2.1.4 matplotlib 3.8.2 matplotlib-inline 0.1.6 mdurl 0.1.2 moderngl 5.9.0 moderngl-window 2.4.1 more-itertools 10.2.0 mpmath 1.3.0 msgpack 1.0.7 multidict 6.0.4 multipledispatch 0.6.0 murmurhash 1.0.10 mutagen 1.47.0 networkx 2.8.8 nltk 3.8.1 num2words 0.5.13 numba 0.58.1 numpy 1.26.3 nvidia-cublas-cu11 11.10.3.66 nvidia-cublas-cu12 12.1.3.1 nvidia-cuda-cupti-cu11 11.7.101 nvidia-cuda-cupti-cu12 12.1.105 nvidia-cuda-nvrtc-cu11 11.7.99 nvidia-cuda-nvrtc-cu12 12.1.105 nvidia-cuda-runtime-cu11 11.7.99 nvidia-cuda-runtime-cu12 12.1.105 nvidia-cudnn-cu11 8.5.0.96 nvidia-cudnn-cu12 8.9.2.26 nvidia-cufft-cu11 10.9.0.58 nvidia-cufft-cu12 11.0.2.54 nvidia-curand-cu11 10.2.10.91 nvidia-curand-cu12 10.3.2.106 nvidia-cusolver-cu11 11.4.0.1 nvidia-cusolver-cu12 11.4.5.107 nvidia-cusparse-cu11 11.7.4.91 nvidia-cusparse-cu12 12.1.0.106 nvidia-nccl-cu11 2.14.3 nvidia-nccl-cu12 2.18.1 nvidia-nvjitlink-cu12 12.3.101 nvidia-nvtx-cu11 11.7.91 nvidia-nvtx-cu12 12.1.105 oauthlib 3.2.2 openai-whisper 20230314 packaging 23.2 pandas 1.5.3 parso 0.8.3 pexpect 4.9.0 Pillow 9.5.0 pip 23.3.2 pkginfo 1.9.6 platformdirs 3.11.0 poetry 1.7.1 poetry-core 1.8.1 poetry-plugin-export 1.6.0 pooch 1.8.0 preshed 3.0.9 prompt-toolkit 3.0.43 protobuf 4.23.4 psutil 5.9.8 ptyprocess 0.7.0 pure-eval 0.2.2 pyasn1 0.5.1 pyasn1-modules 0.3.0 PyAudio 0.2.14 pycairo 1.25.1 pycparser 2.21 pydantic 2.5.3 pydantic_core 2.14.6 pydub 0.25.1 pyglet 1.5.27 Pygments 2.17.2 pynndescent 0.5.11 pynput 1.7.6 pyparsing 3.1.1 pypinyin 0.50.0 pyproject_hooks 1.0.0 pyrr 0.10.3 pysbd 0.3.4 PySocks 1.7.1 python-crfsuite 0.9.10 python-dateutil 2.8.2 python-dotenv 0.21.1 python-slugify 8.0.2 python-xlib 0.33 pytz 2023.3.post1 PyYAML 6.0.1 rapidfuzz 3.6.1 regex 2023.12.25 requests 2.31.0 requests-oauthlib 1.3.1 requests-toolbelt 1.0.0 rich 13.7.0 rsa 4.9 safetensors 0.4.2 scikit-learn 1.4.0 scipy 1.12.0 screeninfo 0.8.1 SecretStorage 3.3.3 setuptools 69.0.3 shellingham 1.5.4 six 1.16.0 skia-pathops 0.8.0.post1 smart-open 6.4.0 soundfile 0.12.1 sox 1.4.1 soxr 0.3.7 spacy 3.7.2 spacy-legacy 3.0.12 spacy-loggers 1.0.5 srsly 2.4.8 srt 3.5.3 stable-ts 2.11.1 stack-data 0.6.3 SudachiDict-core 20240109 SudachiPy 0.6.8 svgelements 1.9.6 sympy 1.12 tensorboard 2.15.1 tensorboard-data-server 0.7.2 text-unidecode 1.3 thinc 8.2.2 threadpoolctl 3.2.0 tiktoken 0.3.1 tokenizers 0.15.1 tomli 2.0.1 tomlkit 0.12.3 torch 2.1.2 torchaudio 2.1.2 tqdm 4.66.1 trainer 0.0.36 traitlets 5.14.1 transformers 4.37.1 triton 2.1.0 trove-classifiers 2024.1.8 TTS 0.22.0 typer 0.9.0 typing_extensions 4.9.0 tzlocal 5.2 umap-learn 0.5.5 Unidecode 1.3.8 urllib3 2.1.0 virtualenv 20.25.0 wasabi 1.1.2 watchdog 2.3.1 wcwidth 0.2.13 weasel 0.3.4 Werkzeug 3.0.1 wheel 0.42.0 yarl 1.9.4 zipp 3.17.0 ```
LaTeX details + LaTeX distribution (e.g. TeX Live 2020): TeX Live 2020 + Installed LaTeX packages:
FFMPEG Output of `ffmpeg -version`: ``` ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.3.0 (conda-forge gcc 12.3.0-2) configuration: --prefix=/home/conda/feedstock_root/build_artifacts/ffmpeg_1696213708285/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac --cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1696213708285/_build_env/bin/x86_64-conda-linux-gnu-cc --cxx=/home/conda/feedstock_root/build_artifacts/ffmpeg_1696213708285/_build_env/bin/x86_64-conda-linux-gnu-c++ --nm=/home/conda/feedstock_root/build_artifacts/ffmpeg_1696213708285/_build_env/bin/x86_64-conda-linux-gnu-nm --ar=/home/conda/feedstock_root/build_artifacts/ffmpeg_1696213708285/_build_env/bin/x86_64-conda-linux-gnu-ar --disable-doc --disable-openssl --enable-demuxer=dash --enable-hardcoded-tables --enable-libfreetype --enable-libfontconfig --enable-libopenh264 --enable-libdav1d --enable-gnutls --enable-libmp3lame --enable-libvpx --enable-libass --enable-pthreads --enable-vaapi --enable-gpl --enable-libx264 --enable-libx265 --enable-libaom --enable-libsvtav1 --enable-libxml2 --enable-pic --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libopus --pkg-config=/home/conda/feedstock_root/build_artifacts/ffmpeg_1696213708285/_build_env/bin/pkg-config libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 ```

Additional comments