https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RAudioRecorder&feed=atom&action=history
IC Python API:RLPy RAudioRecorder - Revision history
2024-03-28T08:39:56Z
Revision history for this page on the wiki
MediaWiki 1.26.2
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RAudioRecorder&diff=4571&oldid=prev
Chuck (RL) at 09:21, 23 April 2020
2020-04-23T09:21:13Z
<p></p>
<a href="https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RAudioRecorder&diff=4571&oldid=2966">Show changes</a>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RAudioRecorder&diff=2966&oldid=prev
Chuck (RL) at 02:42, 1 April 2019
2019-04-01T02:42:55Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 02:42, 1 April 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l117" >Line 117:</td>
<td colspan="2" class="diff-lineno">Line 117:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></div></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>-----</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>-----</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">=</del>===UnregisterCallback<del class="diffchange diffchange-inline">=</del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>===UnregisterCallback===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><syntaxhighlight lang="Python"></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><syntaxhighlight lang="Python"></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>RLPy.RAudioRecorder ( self )</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>RLPy.RAudioRecorder<ins class="diffchange diffchange-inline">.UnregisterCallback </ins>( self )</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Unregister network audio recorder event callback.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Unregister network audio recorder event callback.</div></td></tr>
</table>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RAudioRecorder&diff=2965&oldid=prev
Chuck (RL) at 02:40, 1 April 2019
2019-04-01T02:40:06Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 02:40, 1 April 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l116" >Line 116:</td>
<td colspan="2" class="diff-lineno">Line 116:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''RLPy.RStatus.Failure''' Fail</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''RLPy.RStatus.Failure''' Fail</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></div></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></div></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">-----</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">====UnregisterCallback====</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><syntaxhighlight lang="Python"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">RLPy.RAudioRecorder ( self )</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></syntaxhighlight></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Unregister network audio recorder event callback.</ins></div></td></tr>
</table>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RAudioRecorder&diff=2964&oldid=prev
Chuck (RL): Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Detailed Description== This class is used for the recording of audio. The functions GetAvailableDevices() can get..."
2019-04-01T01:09:08Z
<p>Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Detailed Description== This class is used for the recording of audio. The functions GetAvailableDevices() can get..."</p>
<p><b>New page</b></p><div>{{TOC}}<br />
{{Parent|IC_Python_API:RL_Python_Modules|Modules}}<br />
==Detailed Description==<br />
This class is used for the recording of audio.<br />
The functions GetAvailableDevices() can get a list of all available audio devices. Developer can use SetInputDevice() and GetInputDevice() to set/get current recording device. <syntaxhighlight lang="Python"><br />
audio_recorder = RLPy.RAudioRecorder()<br />
# If you want to select your recording devices.<br />
all_device = audio_recorder.GetAvailableDevices()<br />
audio_recorder.SetInputDevice(all_device[0])<br />
audio_recorder.Start()<br />
#Recording is now started<br />
#...<br />
audio_recorder.Stop()<br />
recorded_audio = audio_recorder.GetAudio() # RIAudioObject<br />
</syntaxhighlight><br />
==Member Functions==<br />
===GetAudio===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.GetAudio ( self )<br />
</syntaxhighlight><br />
Returns the recorded audio.<br />
====Returns====<br />
<div style="margin-left: 2em;">RIAudioObject - RLPy.RIAudioObject<br />
</div><br />
-----<br />
===GetAvailableDevices===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.GetAvailableDevices ( self )<br />
</syntaxhighlight><br />
Returns a list of audio devices.<br />
====Returns====<br />
<div style="margin-left: 2em;">Available device name list - string<br />
</div><br />
-----<br />
===GetInputDevice===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.GetInputDevice ( self )<br />
</syntaxhighlight><br />
Returns current audio input device.<br />
====Returns====<br />
<div style="margin-left: 2em;">Current input device name - string<br />
</div><br />
-----<br />
===GetTimeLimit===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.GetTimeLimit ( self )<br />
</syntaxhighlight><br />
Get current limit time of Audio Recorder.<br />
====Returns====<br />
<div style="margin-left: 2em;">Limit of time in millisecond. The default value is 9000000 millisecond( 15 minutes ) - int<br />
</div><br />
-----<br />
===RegisterCallback===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.RegisterCallback ( self, pCallback )<br />
</syntaxhighlight><br />
Register audio recorder event callback.<br />
====Parameters====<br />
<div style="margin-left: 2em;"><br />
<br />
'''pCallback''' [IN] RAudioRecorderCallback - RLPy.RAudioRecorderCallback<br />
</div><br />
-----<br />
===SetInputDevice===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.SetInputDevice ( self, strInputAudioDeviceName )<br />
</syntaxhighlight><br />
Select your recording device.<br />
====Parameters====<br />
<div style="margin-left: 2em;"><br />
<br />
'''strInputAudioDeviceName''' [IN] Device name - string<br />
</div><br />
====Return Values====<br />
<div style="margin-left: 2em;"><br />
<br />
'''RLPy.RStatus.Success''' Success<br />
<br />
'''RLPy.RStatus.Failure''' Fail<br />
</div><br />
-----<br />
===SetTimeLimit===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.SetTimeLimit ( self, nMillisecond )<br />
</syntaxhighlight><br />
Limit recording time for Audio Recorder.<br />
====Parameters====<br />
<div style="margin-left: 2em;"><br />
<br />
'''nMillisecond''' [IN] limit of recording time in millisecond - int<br />
</div><br />
-----<br />
===Start===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.Start ( self )<br />
</syntaxhighlight><br />
Starts recording from the audio input device.<br />
====Return Values====<br />
<div style="margin-left: 2em;"><br />
<br />
'''RLPy.RStatus.Success''' Success<br />
<br />
'''RLPy.RStatus.Failure''' Fail<br />
</div><br />
-----<br />
===Stop===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RAudioRecorder.Stop ( self )<br />
</syntaxhighlight><br />
Stop recording from the audio input device.<br />
====Return Values====<br />
<div style="margin-left: 2em;"><br />
<br />
'''RLPy.RStatus.Success''' Success<br />
<br />
'''RLPy.RStatus.Failure''' Fail<br />
</div></div>
Chuck (RL)