{% if text_to_speech is defined and text_to_speech is not null %}
{% set nColNum = 0 %}
{% if column_num is defined %}
{% set nColNum = column_num %}
{% endif %}
{% set nAudioRate = 1.0 %}
{% set nCurrAudioRate = app.session.get('current_audio_rate') %}
{% if nCurrAudioRate is not null %}
{% set nAudioRate = nCurrAudioRate %}
{% endif %}
{% set sTitle = app.session.get('ui_str')["texttospeech.read"]|replace({'"':'\"'})|raw %}
<li class="nav-item"><a href="javascript:ReadText('{{ text_to_speech }}',{{ nColNum }}, {{ nAudioRate }})" id="readbutton{{ nColNum }}" title="{{ sTitle }}" class="nav-link"><i class="fa-solid fa-circle-play"></i></i><span class="mobile-only"> {{ sTitle }}</span></a></li>
{% set sTitle = app.session.get('ui_str')["texttospeech.pause"]|replace({'"':'\"'})|raw %}
<li class="nav-item"><a href="javascript:PauseReadText({{ nColNum }})" id="pausebutton{{ nColNum }}" title="{{ sTitle }}" class="nav-link" style="display:none;"><i class="fa-solid fa-circle-pause"></i><span class="mobile-only"> {{ sTitle }}</span></a></li>
{% set sTitle = app.session.get('ui_str')["texttospeech.stop"]|replace({'"':'\"'})|raw %}
<li class="nav-item"><a href="javascript:StopReadText({{ nColNum }})" id="stopbutton{{ nColNum }}" title="{{ sTitle }}" class="nav-link" style="display:none;"><i class="fa-solid fa-circle-stop"></i><span class="mobile-only"> {{ sTitle }}</span></a></li>
{% endif %}