recive audio from multiple sources for audiokit #1032
-
thank you for your work. but i have multiple problems! it is very confusing when i am trying to do a new thing with your code. and i found some confusing problems. for example:
i am trying to create a server that multiple devices can send audio to it and it reads the data and sends it to speaker. you can Set up the web server the way you like. it is easy. just receives the data from the link "/audio" and sends it to the decoder |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 13 replies
-
Yes, this will not work: You obviously ignored all the documentation that can be found in the AudioKit Project! |
Beta Was this translation helpful? Give feedback.
-
That's why you can find the following in the Readme: Unfortunately AI Thinker created a big mess with their boards using different Audio chips and pin assingments, all of them using the same version number. You might need to make an educated guess by looking at the number after the version and if you have a 2957 board, you need to check all 3 options! If you have a new combination, feel free to add a new board number... |
Beta Was this translation helpful? Give feedback.
-
I am not quite sure what you mean with multiple senders: Do you have multiple senders that send concurrently different audio to one single destination ? |
Beta Was this translation helpful? Give feedback.
-
Your comment about internet and LAN does not make any sense: both use the same communications protocols! I think your multiple senders is not impossible, but quite challenging. The issue is that concurrent audio output is not handled by the operating system, but you would need to do this yourself with the help of a mixer. So I would expect, that part would be easier on a Rasperry PI (If you are looking for a small one, a zero would do) For the AudioTools, just look at the communications examples: e.g. ip, udp, iban. For the iban, I did not test the receiving part: so there is no example, but it might be an interesting starting point because you already get the sending App and for your voice example it does not disturb that it's working with pcm. Even your webserver post example might work as well, if you manage to get a server implementation that provides you the data as a stream... |
Beta Was this translation helpful? Give feedback.
-
I just added a mp3 post example to my TinyHttp project... |
Beta Was this translation helpful? Give feedback.
-
ok, i have this code:
it is suppose to get up to 3 different client audio , and play it. if i connect 1 client, it is great, but for 2 or more, audio gets clipy and very bad. i don't understand where the clipping is coming from, where is the delay in it? its like it reads one client and then waits few ms then goes and read other client and so on. what is happening? i really need your help.
and it can only play mp3. i don't know where i am going bad. i have tested lot of decoders. but that really doesn't matter. i am slamming my head to the wall! i am going mad! need help. |
Beta Was this translation helpful? Give feedback.
So you did not see the text in the Configuration Section:
You must define your board and the default settings in the libraries/arduino-audiokit/src/AudioKitSettings.h file. Please note that the functionality will not work properly if this is done in the Sketch.
ps. you cant't store the audio data in a string on a Microcontroller: There is just not enough memory....