<html>
<head></head>
<body>
<p>Hi, list. Today, I found a interesting "need". We have installed a Access Grid client on a normal machine where the audio is a external multifunctional microphone (concretly, a Yamaha PJP-25EUR:&nbsp;<a href="http://www.gizmos.es/1828/audio-portatil/yamaha-pjp-25ur-microfono-multidireccional/">http://www.gizmos.es/1828/audio-portatil/yamaha-pjp-25ur-microfono-multidireccional/</a>), this has a speaker and a set of microphones and, usualy, it is used for Meetings Venues, etc.</p>
<p>Audio on Access Grid, works fine, but, I have to modify RAT to select the audio device (in audio tab), because, by default, the audio device selected is the sound card. On audio tab, I can select the default audio device to use on RAT... so, I think that is interesting add an aditional option to AudioService to select the audio device prefered.</p>
<p>I already modify the AudioService code tu add a new option, adding to the end of __init__ function the next lines:</p>
<p><p>self.audioDevice = OptionSetParameter( "Audio device:", audioDefault, self.listAudio)<br/>
self.configuration.append(self.audioDevice)</p>
<br/>
<p>Where, self.listAudio is a list where I want to store the differents audio devices that has the system. And here is my doubt, how can I obtain the audio devices installed on my system, like RAT show me? I thought to modify RAT to permit storage the configuration, or see the code to see how RAT does it, but I think that RAT is a compiled program (C or C++), right? I saw the "aplay -L" and "aplay -l" commands, but I don't know if with this commands I can do something (I don't, for example, if RAT detect the audio names that this commands show me).</p>
<p>I know that I can modify the .RATdefault file to&nbsp;permanently save the configuration.&nbsp;&nbsp;But I think that I'm going to see this in the future and I thought that is interesting save the config with AudioService like Gains, etc.&nbsp;I add this lines too on AudioService.py on WriteRatDefaults function:</p>
<br/>
<p>ratDefaults["*audioDevice"] = str(self.audioDevice.value )</p>
<p>To save, the selected audio in AudioService window, to the .RATdefault file.</p>
<br/>
<br/>
<br/>
<p>Sorry, as usual, for my bad English.</p>
<p>Thanks and Regards!</p>

</body>
</html>