mirror of
https://github.com/FlightControl-Master/MOOSE_DOCS.git
synced 2026-08-16 16:05:48 +00:00
Auto commit by GitHub Actions Workflow
This commit is contained in:
@@ -2321,6 +2321,12 @@ atis:Start()
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(MSRS).gender">MSRS.gender</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
<p>Gender. Default "female".</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(MSRS).getSpeechTime">MSRS.getSpeechTime(length, speed, isGoogle)</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
<p>Function returns estimated speech time in seconds.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
@@ -2363,6 +2369,12 @@ atis:Start()
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(MSRS).provider">MSRS.provider</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
<p>Provider of TTS (win, gcloud, azure, amazon).</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(MSRS).uuid">MSRS.uuid()</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
<p>Function for UUID.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
@@ -7288,6 +7300,98 @@ set the path to the exe file via <a href="##(MSRS).SetPath">MSRS.SetPath</a>.</p
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w3-card-2 w3-padding-small w3-margin-top">
|
||||
|
||||
<div class="w3-theme-l2">
|
||||
<h2><a id="#(MSRS).getSpeechTime" ><strong>MSRS.getSpeechTime(length, speed, isGoogle)</strong></a></h2>
|
||||
</div>
|
||||
|
||||
<p>Function returns estimated speech time in seconds.</p>
|
||||
|
||||
|
||||
<p>Assumptions for time calc: 100 Words per min, average of 5 letters for english word so</p>
|
||||
|
||||
<ul>
|
||||
<li>5 chars * 100wpm = 500 characters per min = 8.3 chars per second</li>
|
||||
</ul>
|
||||
|
||||
<p>So length of msg / 8.3 = number of seconds needed to read it. rounded down to 8 chars per sec map function:</p>
|
||||
|
||||
<ul>
|
||||
<li>(x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div id= "#Functions##getSpeechTime" class="w3-show w3-white">
|
||||
<div class="w3-container w3-white" id="functiontype">
|
||||
<h2><strong>Defined in:</strong></h2>
|
||||
<div class="w3-margin-left">
|
||||
<p>MSRS</p>
|
||||
</div>
|
||||
<h2><strong>Parameters:</strong></h2>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
#number
|
||||
<strong><strong>length</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>can also be passed as #string</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
#number
|
||||
<strong><strong>speed</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>Defaults to 1.0</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
#boolean
|
||||
<strong><strong>isGoogle</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>We're using Google TTS</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w3-card-2 w3-padding-small w3-margin-top">
|
||||
|
||||
<div class="w3-theme-l2">
|
||||
<h2><a id="#(MSRS).uuid" ><strong>MSRS.uuid()</strong></a></h2>
|
||||
</div>
|
||||
|
||||
<p>Function for UUID.</p>
|
||||
|
||||
<div id= "#Functions##uuid" class="w3-show w3-white">
|
||||
<div class="w3-container w3-white" id="functiontype">
|
||||
<h2><strong>Defined in:</strong></h2>
|
||||
<div class="w3-margin-left">
|
||||
<p>MSRS</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user