Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hertz-Lab
Research
Intelligent Museum
Language Identifier
Commits
a0339259
Commit
a0339259
authored
Dec 14, 2021
by
Dan Wilcox
Browse files
added -e info to readme, updated changelog
parent
8b869082
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES.txt
View file @
a0339259
...
...
@@ -2,15 +2,18 @@
* fix crash due to wrong prev buffer value
* added audio support for multi-channel device input and settable samperate
* added audio support for multi-channel device input and settable samp
l
erate
* added OSC receiver on default port 9898
* added manual listening control via OSC /listen message and l key press
* added listening auto stop on detection via OSC /autostop message or a key press
* added optional command execution on detection
* added commandline argument parsing
* added verbose printing
* now use 7 lang model
* don't enable recording on start
* dont draw extra graph start & end vertices
* graph now goes to 0 when listening is stopped
0.2.0: 2021 Jun 23
...
...
README.md
View file @
a0339259
...
...
@@ -151,6 +151,7 @@ Options:
-r
,--samplerate INT audio input device samplerate, can be 441000 or a multiple of 16000, default 48000
--nolisten
do
not listen on start
--autostop
stop listening automatically after detection
-e
,--execute TEXT
command
to execute on detection with
key
=
value pair args
-v
,--verbose verbose printing
--version
print version and
exit
```
...
...
@@ -181,6 +182,27 @@ Reload the shell and application can now be invoked via:
% langid
-v
--inputdev
2
```
### Executing commands
LanguageIdentifier can execute a command on a language detection via the
`-e/--execute`
option:
```
shell
% bin/LanguageIdentifier
-e
`
pwd
`
/script.sh
```
The arguments passed to the command are a series of key & values pairs where
`key=value`
:
*
selected key: string value, name of detected language
*
LANG key: float value, normalized detection confidence 0-1 for each supported language
Example args:
~~~
selected=noise noise=0.753628 chinese=0.000086 english=0.237782 french=0.001154 german=0.002538 italian=0.000791 russian=0.000018 spanish=0.004004
~~~
_Note: In general, the command must include the full path if it is not in current shell PATH._
Demos
-----
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment