-
Notifications
You must be signed in to change notification settings - Fork 0
License
adveres/Speech-Over-IP
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
README This program was written in Eclipse and has an Eclipse project file structure. I am using Java 1.6 on this machine, although 1.7 should work fine. I programmed this on OSX, but used a Windows 7 machine as the other client. For UDP, everything works great from both ends. For TCP, some clicking occurs and the receiver seems to have trouble playing sound nicely. It's understandable, but much less pleasant than UDP. I suspect real VOIP applications have a thread dedicated to playing sound buffers smoothely, but that's out of the scope of this program. • All source is under /src/speech_over_ip/*.java • Compiled *.class files go under /bin/speech_over_ip Speak requires 6 parameters to run. Parameters 7 and 8 are optional. If no ITL/ITU are given, they are inferred based on the latency parameter by assuming "silence" meant each byte's integer value is '1'. For example, with 20ms latency each chunk will be 160bytes, and thus the energy is <= 160 for silence. However, if that logic is poor, ITL/ITU can be passed in to the program as parameters as previously mentioned. 1. Host: String - IP address or hostname 2. Port: Int - Port number to talk on 3. Loss: Int - Percentage of packets to drop on the receiver side to simulate network loss 4. Latency: Int - Integer from 20-1000 for how many milliseconds of audio the sender should gather before sending. 5. Packet type: String - TCP or UDP 6. Detect speech: Bool - 'true' or 'false' to not send audio chunks with energy lower than ITU - - - - - Optional Params Below - - - - - 7. ITL: Int - ITL lower threshold for speech energy 8. ITU: Int - ITU upper threshold for speech energy Execute these commands inside the root project directory (where this README sits): Compile: javac -d bin src/speech_over_ip/*.java Run: java -cp ./bin speech_over_ip.Main [PLUS PARAMETERS] Run: java -jar veres_proj2.jar [PLUS PARAMETERS] Written by Adam Veres For CS529 Multimedia Networking Project 2 Spring 2014, WPI
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published