Comments (11)
you need to use plain pcm, so option 2 is what you need (option 1 should produce white noise). Then make sure that your file is using 44.1kHz sample rate (don't know the ffmpeg options to resample)
from libraop.
s16le seems to work, but i have to put 88200 rate for that...
or do you know the sox or else option for piping in stdin ?
from libraop.
If you have to use 88200 it means that it’s not a stereo file or something like that. I don’t understand why you want to use sox, ffmpeg can do the job. Then pipe is well documented on this and I think I use - as well in raop_play (I’ve not used it in a while, but the cmd line help will tell you)
from libraop.
yes it's mono file for most (TTS) , i've seen in your code, you assume it's stereo, could you detect that ?
about sox it was just an idea, ffmpeg is good too
about s16le, do you know if it's the most likely to work format ? my project will be on several archs (x86, x86_64, armhf, arm64, etc)
if you want, i've forked your project and fixed several things for compilation on linux and working with debian buster (including openssl 1.0 because buster install 1.1 and it's not working)
from libraop.
So you have to convert to stereo before sending it to raop_play. I think ffmpeg can do that
from libraop.
ok for others ppl reading, something like this seems to work fine :
ffmpeg -y -i myfile.mp3 -vn -ac 2 -ar 44100 -acodec pcm_s16le -f s16le "myfile.pcm";
about s16le, do you know if it's the most likely to work format ? my project will be on several archs (x86, x86_64, armhf, arm64, etc)
if you want, i've forked your project and fixed several things for compilation on linux and working with debian buster (including openssl 1.0 because buster install 1.1 and it's not working)
from libraop.
Yes, pull requests are always welcome. This project is more a reference for the library I’m using in many other projects, hence I did not a lot of updates of the application itself, more on the library. If you look at my other projects, I’ve changed the way I’m using ssl to be able to load any version on any platform
from libraop.
Re 16 bits little endian, the only cpu that can be problem are mips and sparc, afaik, all others are little endian. I have to check how much there are endianness issues, I’ve tried to take care of most of them as what I do is usually cross os and cpu, but I can’t say that I tested a lot of mips and sparc
from libraop.
in which project do you have solved the ssl ?
from libraop.
LMS-to-UPnP for example
from libraop.
I'm sorry but I'm not a c dev... and I don't see how you've solved that in those project and how to solve it for this one...
from libraop.
Related Issues (20)
- pair-setup-pin failure HOT 13
- curve25519 with OpenSSL HOT 2
- send synchronous audio to multiple players example HOT 5
- Get volume from airplay device HOT 2
- Compile failure - dereferencing pointer to incomplete type HOT 3
- Fails to build HOT 1
- valgrind repo seems not available anymore HOT 3
- License
- Contribution HOT 1
- examples?
- aarch64 issue? HOT 2
- build config fails HOT 2
- compile error: missing ../include/external_calls.h HOT 4
- tools/log_util.c cannot find source file HOT 13
- Question about Music Assistant HOT 3
- Question about pair-pin-start protocolc HOT 2
- error in documentation of SRP HOT 1
- Would you like an update to your SRP document (for server details) HOT 2
- License HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libraop.