Coder Social home page Coder Social logo

assert wave_path.exists() about allosaurus HOT 5 CLOSED

xinjli avatar xinjli commented on May 30, 2024
assert wave_path.exists()

from allosaurus.

Comments (5)

xinjli avatar xinjli commented on May 30, 2024

Hi,

I guess this is because your Windows path format is wrong.

Try --path='C:\\Users\\maria\\Allo\\train' or --path='C:/Users/maria/Allo/train' instead
and then fix paths to the same format inside your wave txt

from allosaurus.

jesserme avatar jesserme commented on May 30, 2024

Okay so I tried the second one and still get

C:\Users\maria>python -m allosaurus.bin.prep_feat --path='C:/Users/maria/Allo/train'
Traceback (most recent call last):
File "C:\Users\maria\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\maria\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\maria\AppData\Local\Programs\Python\Python39\lib\site-packages\allosaurus\bin\prep_feat.py", line 57, in
assert wave_path.exists(), "the path directory should contain a wave file, please check README.md for details"
AssertionError: the path directory should contain a wave file, please check README.md for details

I changed my wave txt file to look the same
utt_1 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs5.wav'
utt_2 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs6.wav'
utt_3 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs7.wav'
utt_4 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs8.wav'
utt_5 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs9.wav'
utt_6 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs10.wav'
utt_7 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs12.wav'
utt_8 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs14.wav'
utt_9 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs15.wav'
utt_10 'C:/Users/maria/Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs16.wav'

I was going through the readme and ran the sample wav successfully so I know some things work, but I guess I'm just confused why it doesn't seem to want to find my own data that I want to test it on.

from allosaurus.

jesserme avatar jesserme commented on May 30, 2024

I'm pretty confused and tried running it on a Linux VM to see if using Windows was the problem. I did a test with one of my wav files

python -m allosaurus.run -i Allo/koyi/crdo-KKT_CONVERSATION_CONVERSATIONs5.wav

And it produced the transcription output. I'm guessing maybe the problem is with how I'm formatting my wave txt file or something because it seems like Allosaurus is able to process/find my files otherwise. I'm just not sure what I'm doing wrong.

from allosaurus.

xinjli avatar xinjli commented on May 30, 2024

hmm, another possibility is that you have an extension on your wave file. It should be "wave" without any extension like wave.txt.

from allosaurus.

jesserme avatar jesserme commented on May 30, 2024

Thank you, that was it. I wouldn't have guessed that the .txt was causing issues this whole time.

from allosaurus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.