pocketsphinx-android | pocketsphinx build for Android | Android library
kandi X-RAY | pocketsphinx-android Summary
kandi X-RAY | pocketsphinx-android Summary
This project is a wrapper for Pocketsphinx for Android providing high-level interface for recognizing the microphone input.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Synchronizes the assets in the application
- Gets the path to assets
- Read the content of the input stream into a list of strings
- Copies the asset from the external storage to the external storage
- Stops the recognition process
- Stops the recognizer thread
- Add a search based on the search string
- Add searches based on the given file
- Start speech recognizer thread
- Start recognition thread
- Get the name of the currently active search
- Removes a listener
- Adds a keyword search based on a file
- Adds a listener
- Default setup
- Set the acoustic model
- Set the dictionary to use
- Sets the threshold threshold
- Sets integer
- Sets the raw log directory
- Sets the sample rate
- Shuts down the recognizer and releases the recorder
- Set a boolean
- Adds search based on N - gram model
- Cancels the recognition thread
- Gets collection of items to copy
pocketsphinx-android Key Features
pocketsphinx-android Examples and Code Snippets
Community Discussions
Trending Discussions on pocketsphinx-android
QUESTION
We have an Android app with some Activities that share a toolbar. Everything was working well, until I (at Android Studio's recommendation) switched my build.gradle file from constraint-layout:1.0.2 to 1.1.3. Now the toolbar covers the entire visible screen. I'm unsure why this happened or how to fix it. My current workaround is to go back to 1.0.2.
Any thoughts on why this is happening and how to fix it?
Here is the build.gradle dependencies:
...ANSWER
Answered 2019-Aug-13 at 21:01Change the height of your toolbar from match_parent
to ?attr/actionBarSize
:
QUESTION
When I add
...ANSWER
Answered 2019-May-26 at 17:27This solves the build problem for me:
QUESTION
Android 8's battery consumption improvements are nice to the user but I am a bit afraid if my service will work as expected.
First of all: Thank you for any suggestions but I cannot just schedule my service. I want to make a OK Google
-like keyword listener running in the background all the time. It will be based on the open source pocketsphinx-android library. I know that this will consume much battery power and I will inform the user about this.
Can we create a permanent background service on android 8+ ? I need to target android 8 in gradle because I was expecting some bugs with older targets. I also don't want to annoy a user with a foreground service which permanently shows a notification in the status bar.
[https://developer.android.com/about/versions/oreo/background.html] - Is there really no way of making permanent background services for my use-case (but preferably for all use-cases) possible?
...ANSWER
Answered 2017-Nov-13 at 20:55Unfortunately, it's not possible to use a background service and don't show a foreground notification on Android 8.0 and higher.
The only one way that it might work is if you stick your app to Google APIs such as Voice Actions API.
As far as I know there is no a good work around and most apps like WhatsApp are still targetting Android API 24.
QUESTION
I have downloaded the pocketsphinx-android-demo from Github and did some modifications for my own purpose.
I have created a new my-en-us.dict
(dictionary) file for my app specific words and added below words
ANSWER
Answered 2018-Apr-28 at 16:31Presumably you changed the implementation of onPartialResult()
to handle a switchSearch(LOGIN_SEARCH)
as well.
The hypothesis is continually "login" because that's the only word you have in your grammar. Other words ("hello", "settings") are probably being misinterpreted as "login" because that keyword has no "kws-threshold" associated with it.
For this use case, you want to use addKeywordSearch()
instead of a grammar. It is much like addKeyPhraseSearch()
, but lets you use multiple keywords, each with their own thresholds:
QUESTION
I'm using pocketsphynx library on Android for keyword spotting, and it serves its purpose great. However, when I am trying to release microphone to make use of it in another component of the app, I am unable to do so. I get the following error in logcat:
...ANSWER
Answered 2017-Dec-13 at 22:10Alright, I got it to work. Calling SpeechRecognizer.shutdown
is indeed unnecessary. I was able to use SpeechRecognizer.stop
API while making sure to wait for the last result to come in in onResult
callback of my RecognitionListener
implementation. After that I am able to call getUserMedia
browser API and it successfully gets a hold of a mic.
onResult
code in my RecognitionListener
implementation:
QUESTION
I faced a problem while trying to replace English accoustic model with Russian one here:
...ANSWER
Answered 2017-Sep-14 at 22:14E/cmusphinx: ERROR: "lda.c", line 71: LDA incompatible with multi-stream features (n_stream = 4)
This error means you forgot to delete feature_transform
from the model folder or it remains on sdcard. Extra file in the model folder breaks model loading. You need to
- Clean model folder on sdcard on the phone.
- Make sure you do not have extra files in the assets folder.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pocketsphinx-android
sdk.dir - path to Android SDK
ndk.dir - path to Android NDK
pocketsphinx.dir - path to pocketsphinx folder
sphinxbase.dir - path to sphinxbase folder
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page