<?php
defined('ABSPATH') or die("You can't access this file directly.");

$speech_stt_type  = get_option('qc_voice_to_speech_stt_type');
if(isset($speech_stt_type) && ($speech_stt_type == 'google' || $speech_stt_type == 'openai') ){
    wp_register_script( 'qcld_stt_languages_option', QC_VOICEWIDGET_PLUGIN_URL . 'assets/js/stt-google-languages-option.js', ['jquery'], '', true );

}else{
    wp_register_script( 'qcld_stt_languages_option', QC_VOICEWIDGET_PLUGIN_URL . 'assets/js/stt-languages-option.js', ['jquery'], '', true );
}

	wp_enqueue_script( 'qcld_stt_languages_option' );
	$cutom_js = '
			jQuery( document ).ready( function( $ ) {
	            var inputLanguage = $(".qcld_stt_language").length;
	            if(inputLanguage){

	                qcld_stt_languages.forEach((lang) => {
	                    const option = document.createElement("option");
	                    option.value = lang.code;
	                    option.innerHTML = lang.name;
	                    $(".qcld_stt_language").append(option);
	                });

	            }
		        
		        $(".qc_voice_to_speech_stt_choose").css({"display":"none"});
		        $(".qc_voice_to_speech_openai_stt_choose").css({"display":"none"});

		        if($("input[type=radio][name=qc_voice_to_speech_stt_type]:checked").val() == "google" ){
		            $(".qc_voice_to_speech_stt_choose").attr("style", "");
		        }

		        if($("input[type=radio][name=qc_voice_to_speech_stt_type]:checked").val() == "openai" ){
		            $(".qc_voice_to_speech_openai_stt_choose").attr("style", "");
		        }

		        $(document).on("change", "input[type=radio][name=qc_voice_to_speech_stt_type]",function(event) {
		        	event.preventDefault();
		            if ( this.value == "google" ) {
		            	$(".qc_voice_to_speech_openai_stt_choose").css({"display":"none"});
		                $(".qc_voice_to_speech_stt_choose").attr("style", "");
		            }else if ( this.value == "openai" ) {
		            	$(".qc_voice_to_speech_stt_choose").css({"display":"none"});
		                $(".qc_voice_to_speech_openai_stt_choose").attr("style", "");
		            }else{
		                $(".qc_voice_to_speech_stt_choose").css({"display":"none"});
		                $(".qc_voice_to_speech_openai_stt_choose").css({"display":"none"});
		            }
		        });

		        $(document).on("change", "#qcld_stt_language",function(event) {
			        event.preventDefault();
			        var currentVal = $(this).val();

			        $("input[type=text][name=qc_voice_to_speech_stt_lang_code]").val(currentVal);
			    
			    });

				function QclddoSomethingModal(e) {
			    	setTimeout( function () {

			    		var TB_WIDTH = 800; 
						var TB_HEIGHT = 600;

			    		var qcld_width = $("body").width();
                    	if(qcld_width > 991){
                    		var TB_WIDTH = 830,
					        TB_WIDTH_WIDTH = 800;
					    }else{
					    	var TB_WIDTH = qcld_width-20,
					        TB_WIDTH_WIDTH = qcld_width-50;
					    }
					     
					    if( TB_WIDTH && TB_HEIGHT ){
						    $("#TB_window").animate({
						        marginLeft: "-" + parseInt((TB_WIDTH / 2), 10) + "px",
						        width: TB_WIDTH + "px",
						        marginTop: "-" + parseInt((TB_HEIGHT / 2), 10) + "px"
						    });
					    }
					    if( TB_WIDTH_WIDTH ){
						    $("#TB_ajaxContent").animate({
						        width: TB_WIDTH_WIDTH + "px",
						    });
					    }

				    }, 300 );
   
				}

				jQuery("body").on("click", ".qcld_modal_stt_btn", QclddoSomethingModal);
				jQuery(window).resize(QclddoSomethingModal);

	        });';

    wp_add_inline_script('qcld_stt_languages_option', $cutom_js );

?>
<div class="wrap swpm-admin-menu-wrap">
    <div class="vmwpmdp-admin-panel">
      <h2><?php echo esc_html__('Voice Addon Settings Page', 'voice-widgets' ); ?></h2>
    </div>
	
    <?php $action = 'edit.php?post_type=wp_voicemsg_record&page=wpvoice_speech_to_text'; 

    $datasss = get_option('qc_voice_to_speech_stt_allow_voice_control');

    ?>
    <div class="qcld-accordion-box">
        <form  action="<?php echo esc_attr(admin_url($action)); ?>" method="POST" enctype="multipart/form-data">


			<div class="wppt-settings-section text_to_speech_wrap">
				<table class="form-table">

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Enable Speech To Text ', 'voice-widgets' ); ?></th>
						<td>
							<input type="checkbox" name="qc_voice_to_speech_stt_allow_control" value="on" <?php echo (esc_attr( get_option('qc_voice_to_speech_stt_allow_control') )=='on'?'checked="checked"':''); ?> />
							<i><?php echo esc_html__('Select this option to enable Speech to Text on your voice widgets', 'voice-widgets' ); ?></i>
						</td>
					</tr>
                    <tr valign="top">
                        <th scope="row"><?php echo esc_html__('Speech To Text Type', 'voice-widgets' ); ?></th>
                        <td>
                            <label class="radio-inline">
                                <input class="qc_voice_to_speech_stt_type" type="radio" name="qc_voice_to_speech_stt_type" value="speechrecognition" <?php echo ( get_option('qc_voice_to_speech_stt_type') =='' || get_option('qc_voice_to_speech_stt_type') =='speechrecognition' ?'checked="checked"':''); ?>>
                                 <?php echo esc_html__('Browser based ', 'voice-widgets' ); ?>  </label>
                            <label class="radio-inline">
                                <input class="qc_voice_to_speech_stt_type" type="radio" name="qc_voice_to_speech_stt_type" value="google" <?php echo (esc_attr( get_option('qc_voice_to_speech_stt_type') )=='google'?'checked="checked"':''); ?>>
                                <?php echo esc_html__('Google ', 'voice-widgets' ); ?></label> 
                            <label class="radio-inline">
                                <input class="qc_voice_to_speech_stt_type" type="radio" name="qc_voice_to_speech_stt_type" value="openai" <?php echo (esc_attr( get_option('qc_voice_to_speech_stt_type') )=='openai'?'checked="checked"':''); ?>>
                                <?php echo esc_html__('OpenAI ', 'voice-widgets' ); ?></label>     
                                
                                <p><i><?php echo esc_html__('Browser based Speech to Text is not as advanced and not supported in all the browsers', 'voice-widgets' ); ?> </i></p>          
                                <p><i><?php echo esc_html__('Google Cloud Speech provides the best and most accurate results', 'voice-widgets' ); ?></i></p>          
                        </td>
                    </tr>


					<?php if ( ! file_exists( QC_VOICEWIDGET_PLUGIN_DIRNAME . '/autoload.php' ) || ( file_exists( QC_VOICEWIDGET_PLUGIN_DIRNAME . '/autoload.php' ) && !version_compare( PHP_VERSION, '8.2.0', '>=' ) ) ) { ?>
					<tr valign="top" class="qc_voice_to_speech_stt_choose">
							<?php    if ( !version_compare( PHP_VERSION, '8.2.0', '>=' )  ) { 
							    ?>
									<th scope="row"></th>
									<td>
							        <br>
							        <p style="color:indianred"><b><?php esc_html_e('Upgrade your PHP to 8.2+ and check again here. (if version is less than 8.2)', 'voice-widgets' ); ?></b></p>
							        <p style="color:indianred"><b><?php esc_html_e('Your PHP Version is ', 'voice-widgets' ); ?> <?php echo PHP_VERSION ?></b></p>
							        <br>
							        </td>
							    <?php } else { ?>

									<th scope="row"></th>
									<td>
		                                <br>
		                                <p style="color:indianred"><b><?php esc_html_e( 'PHP Version 8.2+ is required for Google Cloud to work.', 'voice-widgets' ); ?></b></p>
		                                <p style="color:indianred"><b><?php esc_html_e( 'Your PHP Version is', 'voice-widgets' ); ?> <?php echo PHP_VERSION ?></b></p>
		                                <br>
		                                <button class="button button-primary" id="qc_voice_gc_download"><?php esc_html_e( 'Download and Install the Google Client', 'voice-widgets' ); ?></button>
		                                <div class="qcld_voice_download_statuses"> </div>

								        </td>
								        
								<?php   } ?>
						
					</tr>
					<?php } ?>

					<tr valign="top" class="qc_voice_to_speech_stt_choose">
						<th scope="row"><?php echo esc_html__('Google Project ID', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_speech_stt_project_id" value="<?php echo get_option('qc_voice_to_speech_stt_project_id'); ?>" />
                            <br>
							<i><?php echo esc_html__('Google project ID.', 'voice-widgets' ); ?> <?php echo esc_html__('Please see this article', 'voice-widgets' ); ?> <a href="<?php echo esc_url('https://dev.dna88.com/voice-widgets/voice-widgets-addon-google-api-setup/'); ?>" target="_blank"> <?php echo esc_html__('Voice Addon Google API Setup', 'voice-widgets' ); ?></a></i>
						</td>
					</tr>
					
					<tr valign="top" class="qc_voice_to_speech_stt_choose">
						<th scope="row"><?php echo esc_html__('Private Key', 'voice-widgets' ); ?></th>
						<td>
                            <textarea name="qc_voice_to_speech_stt_private_key" rows="10" cols="100">
                                <?php echo esc_attr( get_option('qc_voice_to_speech_stt_private_key') ); ?>
                            </textarea>
                            <br>
							<i><?php echo esc_html__('Private key for the google service account', 'voice-widgets' ); ?> <?php echo esc_html__('Please see this article', 'voice-widgets' ); ?> <a href="<?php echo esc_url('https://dev.dna88.com/voice-widgets/voice-widgets-addon-google-api-setup/'); ?>" target="_blank"><?php echo esc_html__('Voice Addon Google API Setup', 'voice-widgets' ); ?></a></i>
						</td>
					</tr>

					<tr valign="top" class="qc_voice_to_speech_stt_choose">
						<th scope="row"><?php echo esc_html__('Google Bucket Name', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_speech_stt_bucket_name" value="<?php echo get_option('qc_voice_to_speech_stt_bucket_name'); ?>" class="regular-text" />
                            <br>
							<i><?php echo esc_html__('Google', 'voice-widgets' ); ?> <a href="<?php echo esc_url('https://console.cloud.google.com/storage/browser/'); ?>" target="_blank"><?php echo esc_html__('cloud-storage', 'voice-widgets' ); ?></a> <?php echo esc_html__(' Bucket Name.', 'voice-widgets' ); ?> <?php echo esc_html__('Please see this article', 'voice-widgets' ); ?> <a href="<?php echo esc_url('https://dev.dna88.com/voice-widgets/voice-widgets-addon-google-api-setup/'); ?>" target="_blank"> <?php echo esc_html__('Voice Addon Google API Setup', 'voice-widgets' ); ?></a></i>
						</td>
					</tr>
					
					<tr valign="top" class="qc_voice_to_speech_openai_stt_choose">
						<th scope="row"><?php echo esc_html__('OpenAi API Key', 'voice-widgets' ); ?></th>
						<td>
							<input type="password" name="qc_voice_to_speech_stt_openai_api_key" value="<?php echo get_option('qc_voice_to_speech_stt_openai_api_key'); ?>" class="regular-text" />
                            <br>
							<i><?php echo esc_html__('**If OpenAI is not responding back then likely you hit your OpenAI usage limit. Please pre-purchase credit to use OpenAI API and increase the Usage limit. You can add credits to your API account by visiting the  ', 'voice-widgets' ); ?> <a href="<?php echo esc_url('https://platform.openai.com/account/billing'); ?>" target="_blank"> <?php echo esc_html__('billing page.', 'voice-widgets' ); ?></a></i>
						</td>
					</tr>
					
					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Language Name', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_speech_stt_lang_name" value="<?php echo ( get_option('qc_voice_to_speech_stt_lang_name') != '' ? get_option('qc_voice_to_speech_stt_lang_name') : 'en-US-Standard-A' ); ?>" />
                            <br>
							<i><?php echo esc_html__('See all supported Language Code here:', 'voice-widgets' ); ?> <a href="<?php echo esc_url('https://cloud.google.com/text-to-speech/docs/voices'); ?>" target="_blank"><?php echo esc_attr__('https://cloud.google.com/text-to-speech/docs/voices', 'voice-widgets' ); ?></a>. <?php echo esc_html__('Leave empty for default', 'voice-widgets' ); ?> <?php echo esc_attr__(' en-US-Standard-A.', 'voice-widgets' ); ?> <?php echo esc_attr__(' This will be the default language used everywhere.', 'voice-widgets' ); ?></i>
						</td>
					</tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Language Code', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_speech_stt_lang_code" value="<?php echo ( get_option('qc_voice_to_speech_stt_lang_code') != '' ? get_option('qc_voice_to_speech_stt_lang_code') : 'en-US' ); ?>" />
							<select class="qcld_stt_language" id="qcld_stt_language">
								
							</select>
                            <br>
							<i><?php echo esc_html__('See all supported Language Code here:', 'voice-widgets' ); ?> <a href="<?php echo esc_url('https://cloud.google.com/text-to-speech/docs/voices'); ?>" target="_blank"><?php echo esc_attr__('https://cloud.google.com/text-to-speech/docs/voices', 'voice-widgets' ); ?></a>. <?php echo esc_html__('Leave empty for default', 'voice-widgets' ); ?> <?php echo esc_attr__(' en-US. ', 'voice-widgets' ); ?>  <?php echo esc_attr__(' This will be the default language used everywhere.', 'voice-widgets' ); ?></i>
						</td>
					</tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Use Shortcode', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_shortcode_code" value="[qcld_stt_form]" />
                            <br>
							<i><?php echo esc_html__('Paste this shortcode anywhere on a page where you want the STT button to show', 'voice-widgets' ); ?> en-US.</i>
						</td>
					</tr>

				</table>
			</div>

			<div class="wppt-settings-section text_to_speech_wrap">
				<table class="form-table">

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Enable Voice Search', 'voice-widgets' ); ?></th>
						<td>
							<input type="checkbox" name="qc_voice_search_stt_form_control" value="on" <?php echo (esc_attr( get_option('qc_voice_search_stt_form_control') )=='on'?'checked="checked"':''); ?> />
							<i><?php echo esc_html__('Select this option to enable Speech to Text on wp Search Form', 'voice-widgets' ); ?></i>
						</td>
					</tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Enable Voice Auto Submit', 'voice-widgets' ); ?></th>
						<td>
							<input type="checkbox" name="qc_voice_search_stt_form_auto_submit" value="on" <?php echo (esc_attr( get_option('qc_voice_search_stt_form_auto_submit') )=='on'?'checked="checked"':''); ?> />
							<i><?php echo esc_html__('Select this option to enable for Form Auto Submit', 'voice-widgets' ); ?></i>
						</td>
					</tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Remove Submit Button', 'voice-widgets' ); ?></th>
						<td>
							<input type="checkbox" name="qc_voice_search_remove_submit" value="on" <?php echo (esc_attr( get_option('qc_voice_search_remove_submit') )=='on'?'checked="checked"':''); ?> />
							<i><?php echo esc_html__('Select this option to Remove Form Submit Button', 'voice-widgets' ); ?></i>
						</td>
					</tr>

                    <tr valign="top">
                        <th scope="row"><?php echo esc_html__('Style', 'voice-widgets' ); ?></th>
                        <td>
                            <label class="radio-inline">
                                <input class="qc_voice_search_stt_style" type="radio" name="qc_voice_search_stt_style" value="qc_voice_verticle" <?php echo ( get_option('qc_voice_search_stt_style') =='' || get_option('qc_voice_search_stt_style') =='qc_voice_verticle' ?'checked="checked"':''); ?>>
                                 <?php echo esc_html__('Style 1', 'voice-widgets' ); ?>  </label>
                            <label class="radio-inline">
                                <input class="qc_voice_search_stt_style" type="radio" name="qc_voice_search_stt_style" value="qc_voice_inline" <?php echo (esc_attr( get_option('qc_voice_search_stt_style') )=='qc_voice_inline'?'checked="checked"':''); ?>>
                                <?php echo esc_html__('Style 2', 'voice-widgets' ); ?></label>     
                                      
                        </td>
                    </tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Enable language', 'voice-widgets' ); ?></th>
						<td>
							<input type="checkbox" name="qc_voice_search_stt_lang_settings" value="on" <?php echo (esc_attr( get_option('qc_voice_search_stt_lang_settings') )=='on'?'checked="checked"':''); ?> />
							<i><?php echo esc_html__('Select this option to enable Frontend Language Settings', 'voice-widgets' ); ?></i>
						</td>
					</tr>

				</table>
			</div>

			<div class="wppt-settings-section text_to_speech_wrap">
				<h4><a href="https://www.dna88.com/product/voice-widgets-pro/" target="_blank" style="font-weight: bold; color:red; text-decoration: none"> <?php echo esc_html__('Pro Feature', 'voice-widgets' ); ?> ( <span style="font-weight: bold; color:#0000ff"><?php echo esc_html__('Upgrade to Pro', 'voice-widgets' ); ?> </span> )</a></h4>
				<table class="form-table">
					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Learning Mode Shortcode', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_shortcode_code" value="[qcld_stt_learning_mode]" />
                            <br>
							<i><?php echo esc_html__('Paste this shortcode anywhere on a page where you want the STT button to show', 'voice-widgets' ); ?> </i>

							<p><?php echo esc_html__('The Speech to Text Learning mode is useful to learn a new language. It allows a learner to speak words or sentences and have the Google Cloud Speech try to recognize the words. The learner can immediately play back the spoken words to try and understand what went wrong if the words cannot be recognized by the Google Cloud Speech', 'voice-widgets' ); ?></p>
						</td>
					</tr>

				</table>
			</div>

			<div class="wppt-settings-section text_to_speech_wrap">
				<h4><a href="https://www.dna88.com/product/voice-widgets-pro/" target="_blank" style="font-weight: bold; color:red; text-decoration: none"> <?php echo esc_html__('Pro Feature', 'voice-widgets' ); ?> ( <span style="font-weight: bold; color:#0000ff"><?php echo esc_html__('Upgrade to Pro', 'voice-widgets' ); ?> </span> )</a></h4>
				<table class="form-table">

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Enable Speech To Text ', 'voice-widgets' ); ?></th>
						<td>
							<input type="checkbox" name="qc_voice_to_speech_stt_form_control" value="on" <?php echo (esc_attr( get_option('qc_voice_to_speech_stt_form_control') )=='on'?'checked="checked"':''); ?> disabled />
							<i><?php echo esc_html__('Select this option to enable Speech to Text on your form fields. This works for all kinds of Forms and Even WooCommerce Product Review submissions', 'voice-widgets' ); ?></i>
						</td>
					</tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Speech to Text Form Field IDs', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_speech_stt_unique_field_id" class="regular-text" value="<?php echo get_option('qc_voice_to_speech_stt_unique_field_id'); ?>" disabled />
							<?php add_thickbox(); ?>
							<a href="#TB_inline?width=600&height=550&inlineId=qcld-stt-modal-window-id" title="<?php esc_html_e('Speech to Text Settings Example', 'voice-widgets' ); ?>" class="thickbox qcld_modal_stt_btn"><span class="dashicons dashicons-info-outline"></span></a><span></span>
                            <br>
							<i><?php echo esc_html__('Provide valid form', 'voice-widgets' ); ?> <a href="#TB_inline?width=600&height=550&inlineId=qcld-stt-modal-window-id" title="<?php esc_html_e('Speech to Text Settings Example', 'voice-widgets' ); ?>" class="thickbox qcld_modal_stt_btn"><?php echo esc_html__('Field ID OR Class Name', 'voice-widgets' ); ?></a>, <?php echo esc_html__('Voice text will be added to this field.', 'voice-widgets' ); ?> <?php echo esc_html__('You can add multiple ID OR Class Name as coma(,) seperated value', 'voice-widgets' ); ?></a></i>


							<div id="qcld-stt-modal-window-id" style="display:none;">
							    <div class="qcld_stt_accordion_item">
							        <div>
							        	<div class="qcld_stt_accordion_content">
							       		 	<p><?php esc_html_e('You can enable the Speech to Text feature on any form field by following the steps below. This works for all kinds of Forms and Even WooCommerce Product Review submissions:', 'voice-widgets' ); ?></p>
							       		 	<h4><?php esc_html_e('Steps', 'voice-widgets' ); ?></h4>
							       		 	<ol>
							       		 		<li><?php esc_html_e('First create your forms as you normally would and publish it on your page', 'voice-widgets' ); ?></li>
							       		 		<li><?php esc_html_e('Go to the page on the front end where you have the form. You need to find the Class or ID name of the form field where you want the Speech to Text option to appear by Inspecting the page. See the section below how you can do that', 'voice-widgets' ); ?></li>
							       		 		<li><?php esc_html_e('Copy the Class or ID name and paste in the "Speech to Text Form Field IDs" field', 'voice-widgets' ); ?></li>
							       		 		<li><?php esc_html_e('If you want to add the STT feature to multiple forms and fields, add them all in the Speech to Text Form Field IDs field by', 'voice-widgets' ); ?> <strong> <?php esc_html_e('separating the Class or IDs with COMMA', 'voice-widgets' ); ?></strong></li>
							       		 	</ol>
							       		 	<br/>
							        		<p><b><?php esc_html_e('You can find the "Speech to Text Form Field IDs" very easily by Inspecting element. To do that Right Click on the form field where you want to add STT and select Inspect following the screenshots below and copy the Class/ID name:', 'voice-widgets' ); ?></b></p>
							        		<p><?php esc_html_e('Paste the Class/ID in the "Speech to Text Form Field IDs" field.', 'voice-widgets' ); ?></p>
							        		<img src="<?php echo esc_url(QC_VOICEWIDGET_PLUGIN_IMG_URL.'/stt/STT-Voice-Forms.png'); ?>" alt=""/>
							        		<p><?php esc_html_e('You can also find the form Field ID/class name using the browser\'s developer tools like below', 'voice-widgets' ); ?></p>
							        		<img src="<?php echo esc_url(QC_VOICEWIDGET_PLUGIN_IMG_URL.'/stt/open-devtools.png'); ?>" alt=""/>
							        		<p><b><?php esc_html_e('Frontend View', 'voice-widgets' ); ?></b></p>
							        		<p><?php esc_html_e('Clear any cache plugin and check the form - the Speech to Text fields will be added automatically.', 'voice-widgets' ); ?></p>
							        		<img src="<?php echo esc_url(QC_VOICEWIDGET_PLUGIN_IMG_URL.'/stt/screenshot-2.png'); ?>" alt=""/>
							    		</div>
							    	</div>
							    </div>
							</div>
						</td>
					</tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('Product Review', 'voice-widgets' ); ?></th>
						<td>
							<input type="checkbox" name="qc_voice_to_speech_stt_pro_review" value="on" <?php echo (esc_attr( get_option('qc_voice_to_speech_stt_pro_review') )=='on'?'checked="checked"':''); ?>  disabled />
							<i><?php echo esc_html__(' Select this option to enable Speech To Text for WooCommerce Product Review', 'voice-widgets' ); ?></i>
						</td>
					</tr>

					<tr valign="top">
						<th scope="row"><?php echo esc_html__('language', 'voice-widgets' ); ?></th>
						<td>
							<input type="text" name="qc_voice_to_speech_stt_language_text" value="<?php echo get_option('qc_voice_to_speech_stt_language_text'); ?>" disabled />
                            <br>
							<i><?php echo esc_html__('You can change the text "language" from here', 'voice-widgets' ); ?></a></i>
						</td>
					</tr>

				</table>
			</div>
			<?php submit_button(); ?>
            <?php wp_nonce_field('voice-speech-to-text'); ?>

		</form>
		
	</div>
</div>
