PREV TOC HOME INDEX NEXT


4.3.1 Manual Mode

To run the CSP demo in manual mode for a T-1 board, type:

cspdemo -t 

To run the CSP demo in manual mode for an E-1 board, type:

cspdemo -e 

To run the CSP demo in manual mode (the default mode) for an analog board, type:

cspdemo -a   OR   cspdemo 

Since analog board is the default option, you can omit -a from the command line.

The manual mode is a single-channel demo that uses the first channel of the CSP-enabled board configured as the first board in your system. This mode allows you to listen to a prompt and interrupt as the prompt is playing. Messages are displayed on your screen as the demo progresses. This mode illustrates the operation of the ec_reciottdata( ) function and the ec_stream( ) function.

On digital boards, the manual mode also shows how to route a CSP resource to another span's network resource.

In the manual mode, the demo runs as follows:

  1. After the demo starts, a welcome prompt, sample.pcm, is played. It starts with "Welcome ..."
  2. This part of the demo illustrates the operation of the ec_reciottdata( ) function. As the prompt is playing, you can interrupt the prompt or barge-in through the T-1, E-1 or analog line.

    As soon as you speak, the prompt stops playing and echo-cancelled recording begins. TDX_BARGEIN and TEC_VAD events are generated. The demo records your message for 6 seconds and stores the message in ec_reciott.pcm. At the end of this time, the TEC_STREAM event is generated to indicate termination of recording.

    The demo then plays back the echo-cancelled recording of your message.

    Note that if the prompt completes without any barge-in, the TDX_PLAY is generated.

  3. The welcome prompt is played again. This part of the demo illustrates the operation of the ec_stream( ) function.

    As the prompt is playing, you can interrupt or barge-in through the T-1, E-1 or analog line.

    As soon as you speak, the prompt stops playing and the echo-cancelled recording begins. The TDX_BARGEIN and TEC_VAD events are generated. Your echo-cancelled speech in the data buffer is streamed to a user-defined callback function. A message is displayed on your screen stating that the data buffer has been received. The TEC_STREAM event is generated to indicate termination of streaming.

    The demo then plays back the echo-cancelled recording of your message.

  4. The demo is completed.

PREV TOC HOME INDEX NEXT

Click here to contact Dialogic Customer Engineering

Copyright 2001, Intel Corporation
All rights reserved
This page generated December, 2001