Open Source Toolkit Documentation:

The MITRE Audio Echo Server


The audio echo server is designed to test audio devices by routing incoming audio broker connections to outgoing audio broker connections. It currently handles 8-bit and 16-bit broker data.



Status

History and plans

This server originated in the Galaxy Communicator 2.x distribution, and was removed in a cleanup before 3.0 was released. In the meantime, we've enhanced it somewhat.

Version history


Usage

Command line

<OSTK_HOME>/bin/audio_echo

Default port

5000

Command line arguments

No server-specific arguments.

This server also accepts the standard server arguments. See the command-line argument parsing library in the Galaxy Communicator documentation for details.


Message set



handle_audio_data establishes an incoming broker connection and copies the broker data to an outgoing broker connection. At the moment, it only handles binary (8-bit) and 16-bit audio data. It supports compatibility with the MIT playbox control protocol.
 
  parameter type optional depends on description/constraints
IN: :audio_host string     host of the outgoing audio broker
  :audio_port integer     port of the outgoing audio broker
  :call_id string     call ID of the outgoing audio broker
  :batch integer yes   if 1, save the audio until the outgoing broker is done and then set up the return broker. If 0 or not present, set up the return broker immediately and relay audio as it arrives.
  :mit_playbox_protocol integer yes   If 1, use the MIT playbox control protocol on input and output
  :sample_rate integer yes   Sample rate of the incoming audio. The server does nothing with the value besides include it in the return broker announcement.
  :encoding_format string yes   Encoding format of the incoming audio. The server does nothing with the value besides include it in the return broker announcement.

This message returns a frame.


Messages issued

When the server announces the return broker, it sends the following message:
{c FromEcho
   :synth_host <string: host of return broker>
   :synth_port <integer: port of return broker>
   :call_id <string: call ID of return broker>
   :sample_rate <integer: sample rate reported by incoming broker, if present>
   :encoding_format <string: encoding format reported by incoming broker, if present>
}



Known bugs

None yet.


Please send comments and suggestions to: bugs-darpacomm@linus.mitre.org
Last updated January 25, 2002.

Copyright (c) 2002
The MITRE Corporation
ALL RIGHTS RESERVED