mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on speech rec
This commit is contained in:
parent
9df64f8ad6
commit
194540d676
@ -313,7 +313,7 @@
|
|||||||
<div class="form-group has-feedback">
|
<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;"
|
<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')}}"/>
|
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')
|
@include('partials/speech_recognition')
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,15 +19,6 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API
|
// 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 =
|
var langs =
|
||||||
[['Afrikaans', ['af-ZA']],
|
[['Afrikaans', ['af-ZA']],
|
||||||
@ -172,9 +163,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onMicrophoneClick() {
|
function onMicrophoneClick() {
|
||||||
//$('#search').val("show me all deleted payments");
|
//$('#search').val("");
|
||||||
//$('#search').val("new invoice for joe, set the due date to today and the discount to ten percent");
|
|
||||||
//$('#search').val("34123 1234123 1324");
|
|
||||||
//$('#search-form').submit();
|
//$('#search-form').submit();
|
||||||
//return;
|
//return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user