Extension: UDP audio Chat. Voice. WiFi. Send sound over UDP

5.- Credits.

  • The code to Get the Local IP is an adaptation of...

http://www.java2s.com/example/java-api/java/net/networkinterface/getnetworkinterfaces-0-1.html

2 Likes

Cool! But is there a way to use a mp3 file as input instead of microphone? I'd like to do something like phone-bot for my home

The easiest answer would be to send the .mp3 file

send mp3 as text and then playback it at remote device?

One idea would be to convert the file to Base64 and send it using UDP, I haven't tried it with large files.

http://kio4.com/appinventor/277_extension_imagen_string.htm

these files wont be large. just some tts speech

Try

i want use in network wan over internet not in lan, one idea

I haven't tried it, but maybe opening the port of a local network (NAT) can be achieved.

I did it

125kb file is too large even when at base64 (it isnt sending)

edit: 64kb is still too big

what did you do to achieve this?

What he said @Juan_Antonio i did it, i mounted server and not found the devices

ok, i interpreted your "I did it" as success

Another idea would be to install an FTP server on a PC.

great idea! but the is one problem with your extension (ftp) it causes a dx compile error

I can "Build" p174C_extension_FTP.aia

compiling p174C_extension_FTP.aia works

but when i try to compile udp+ftp app (removing ftp builds the app) i get this:

App Inventor is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating style xml
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 1.282 seconds
______Compiling source files
(compiling appinventor/ai
**********/udp_siur/Screen1.yail to appinventor.ai
**********.udp_siur.Screen1)
(compiling /tmp/runtime5622658823022149790.scm to com.google.youngandroid.runtime)
Kawa compile time: 2.32 seconds
________Invoking DX
DX time: 17.138000 seconds
YAIL compiler - DX execution failed.

What does it mean? "compile udp+ftp app (removing ftp builds the app)"

I can compile with extensions UDP and FTP