cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
361
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Enrico Conedera on 14-12-2010 11:21:30 PM
What exactly is the "Gain" referenced in this xStatus command.  I know that it returns a value between -54dB and +15dB, but what part of the audio chain does this represent?

Is it this:  the gain value applied *at that moment* by the auto mixer function in the codec?

I am looking for an xStatus that I can use to monitor active audio levels on mic inputs - to see which mic has the loudest signal at that particular moment.  is this the right status to suscribe to?

thanks,

Subject: RE: xStatus Audio Output LocalOutput [1..n] Input [1..n] Gain
Replied by: Johan Randby on 10-01-2011 10:40:28 AM
enrico conedera:
What exactly is the "Gain" referenced in this xStatus command.  I know that it returns a value between -54dB and +15dB, but what part of the audio chain does this represent?

Is it this:  the gain value applied *at that moment* by the auto mixer function in the codec?

I am looking for an xStatus that I can use to monitor active audio levels on mic inputs - to see which mic has the loudest signal at that particular moment.  is this the right status to suscribe to?

thanks,



Hi Enrico

From the C60-C40 API reference guide:
Shows the gain in dB on the input, when it is connected to the local output. Range from -54 dB to 15 dB, where -54 dB equals Off.
You can run the command xStatus Audio Output LocalOutput to find the identity [1..n] of the output and input.
Value space of the result returned:
<-54..15>
Example:
xStatus Audio Output LocalOutput 4 Input 2 Gain *s Audio Output LocalOutput 4 Input 2 Gain: 0 ** end


When monitoring the status of the mic gain in the remoteoutput when in a call, it does seem to be static, that is - not the way you suggested.

Unfortunately I believe the xStatus you are looking for does not exist. However, I will update this thread if I find a solution.

-Johan

Subject: RE: xStatus Audio Output LocalOutput [1..n] Input [1..n] Gain
Replied by: Johan Randby on 11-01-2011 02:35:10 PM
Hi Enrico
I now have a solution for you.
You may for instance use the following to monitor VU-meter values for Mic1 on XAPI:

xfeed register /event
xCommand Audio Vumeter Start ConnectorType: Microphone ConnectorId: 1


Text like the following will scroll over the terminal window:

Audio Input Connectors Microphone 1 VuMeter: 27
*e Audio Input Connectors Microphone 1 PPMeter: 35
*e Audio Input Connectors Microphone 1 SignalLevel: 139
*e Audio Input Connectors Microphone 1 NoiseLevel: 60
** end
*e Audio Input Connectors Microphone 1 VuMeter: 26
*e Audio Input Connectors Microphone 1 PPMeter: 34
*e Audio Input Connectors Microphone 1 SignalLevel: 124
*e Audio Input Connectors Microphone 1 NoiseLevel: 60
** end
*e Audio Input Connectors Microphone 1 VuMeter: 25
*e Audio Input Connectors Microphone 1 PPMeter: 33
*e Audio Input Connectors Microphone 1 SignalLevel: 118
*e Audio Input Connectors Microphone 1 NoiseLevel: 61
** end
*e Audio Input Connectors Microphone 1 VuMeter: 23
*e Audio Input Connectors Microphone 1 PPMeter: 32
*e Audio Input Connectors Microphone 1 SignalLevel: 121
*e Audio Input Connectors Microphone 1 NoiseLevel: 61
** end


to stop:

xCommand Audio Vumeter Stop ConnectorType: Microphone ConnectorId: 1
xfeed deregister /event


I guess the signal level is the value you are looking for..
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links