Working on speech rec

This commit is contained in:
Hillel Coren 2017-04-06 17:04:15 +03:00
parent 9df64f8ad6
commit 194540d676
2 changed files with 2 additions and 13 deletions

View File

@ -313,7 +313,7 @@
<div class="form-group has-feedback">
<input type="text" name="command" id="search" style="width: 240px;padding-top:0px;padding-bottom:0px;margin-right:12px;"
class="form-control" placeholder="{{ trans('texts.search') . ': ' . trans('texts.search_hotkey')}}"/>
@if (Utils::isNinja() && Utils::isPro() && env('SPEECH_ENABLED'))
@if (env('SPEECH_ENABLED'))
@include('partials/speech_recognition')
@endif
</div>

View File

@ -19,15 +19,6 @@
<script type="text/javascript">
// https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API
/*
$(function() {
$('#search').keypress(function(event) {
if (event.keyCode === 13) {
$('#search-form').submit();
}
})
})
*/
var langs =
[['Afrikaans', ['af-ZA']],
@ -172,9 +163,7 @@
}
function onMicrophoneClick() {
//$('#search').val("show me all deleted payments");
//$('#search').val("new invoice for joe, set the due date to today and the discount to ten percent");
//$('#search').val("34123 1234123 1324");
//$('#search').val("");
//$('#search-form').submit();
//return;