Git Product home page Git Product logo

Comments (3)

stsaz avatar stsaz commented on July 19, 2024

Hi! Looks like phiola can't get the audio format that is set by default in your Windows audio settings. Let's find out why is that. Here are a few options:

  1. Execute
    phiola -D ....wav | findstr wasapi:
    This will print several lines to you terminal. Please paste here the line wasapi: *1: opening device ....
  2. Execute
    phiola -D ....wav -exclusive | findstr wasapi:
    It's the same but now trying to open the audio device exclusively.
  3. What's the default format for your audio device? Try to set another format. (See https://integraudio.com/default-audio-format-windows-10/)

from phiola.

Landiie avatar Landiie commented on July 19, 2024
  1. Lines + Error
08:40:52.738 #3272 DEBUG  wasapi: *1: opening device #0, int16/22050/1, flags:80
08:40:53.576 #3272 DEBUG  wasapi: *1: opening device #0, float32/48000/8, flags:80
08:40:54.112 #3272 ERROR  wasapi: *1: open(): unsupported format
  1. No change running -exclusive, same output as above

  2. My Default Format is "8 channel, 16 bit, 480000 Hz", which I believe is unique to my corsair headset. Setting it to any of the other available formats in 2 channel mode makes it work just fine.

Something I will note: Now, with the channel change, I can play all of the wav files, however, any sounds with a different Hertz from my Default Format have a considerable delay compared to the other formats. a little over half a second!

from phiola.

stsaz avatar stsaz commented on July 19, 2024

in 2 channel mode makes it work just fine.

Interesting! I think your audio device doesn't support float32/48000/8 that phiola is trying to use but supports int16/48000/8. This is surprising to me because WASAPI should convert float32->int16 internally, and phiola relies on this behaviour. We can test this theory:

  1. Change your default format back to int16/48000/8 as it was before.
  2. Convert your audio file:

phiola convert ....wav -o test.wav -af int16 -chan 8 -ra 48000

  1. Now try to play the new file:
    phiola -D test.wav | findstr wasapi:

  2. It should print opening device #0, int16/48000/8 and then play audio just fine.

from phiola.

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.