https://www.dropbox.com/s/u281czkokpriac5/b4aSnowBoy.apk?dl=0Wrapper needed for Android. My budget is 100$.
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim snowboy As SnowBoy
Private btnRecord As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
snowboy.Initialize("Snowboy",File.Combine(File.DirRootExternal, "snowboy/common.res"),File.Combine(File.DirRootExternal, "snowboy/alexa.umdl"))
Log(snowboy.NumHotwords)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Snowboy_start()
' To Capture the audio you should create the output file here and open an outputstream for the audio-data
End Sub
Sub Snowboy_onAudioDataReceived(audio() As Byte, length As Int)
' Write the audiobytes to the opened outputstream here
'Log($"Snowboy_onAudioDataReceived(${i},${audio})"$)
End Sub
Sub Snowboy_stop()
' Close the outputstream to the captured audio.
' you know the destination of the captured audio.
' To train the audio you need to convert the audio-file
' to an base64 encoded string.
'
' See http://docs.kitt.ai/snowboy/#api-v1-train
' for detailed description on how to train....
'Log($"Snowboy_stop()"$)
End Sub
Sub Snowboy_onHotword(hotword As Int)
Log($"Snowboy_onHotword(${hotword})"$)
End Sub
Sub btnRecord_Click
If btnRecord.Tag = "record" Then
btnRecord.Text = "Start Record"
btnRecord.Tag = "stopped"
snowboy.stopRecording
Else
btnRecord.Text = "Stop"
btnRecord.Tag = "record"
snowboy.startRecording
End If
End Sub
Logger verbunden mit: 5784193308e57d55
--------- beginning of system--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
--G-> recording started ...
Startrecording
--G-> Detected 1 times
Snowboy_onHotword(1)
--G-> recording stopped
Hmm. Can you connect it with usb-debuging and see if you get any logs in the IDE?The app stops on my s8
--------- beginning of main
--------- beginning of system
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Service (starter) Start **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Service (starter) Start **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Service (starter) Start **
Even in the unfiltered log i cannot find anything useful :-/Got nothing
Doesn't work eitherHere is the APK of my "shortcut" wrap. It recognises "alexa" and "snowboy" (and more can be added)
When saying "alexa" it will show a toast with the number "1". For "snowboy" it will show "2"
https://drive.google.com/file/d/0B4g9tud5lvjgS2NTSl9CMEVIVFE/view?usp=sharing
I have an S7 EDGEstops on my s8
It is running on my S4 mini (KitKat) with ARMv7I have an S7 EDGE
Do you have a chance to check it on another device?
Which CPU architecture does the S8 have?
Doesn't work (the APK) on Bq Aquaris M5 Android 6.0.1 (app stops when clicking Start)It is running on my S4 mini (KitKat) with ARMv7
Can you see anything in the unfiltered logs when you connect your device via USB cable to your PC/Laptop and B4A is active? You need to clear the logs and wait for the log to "stabilize" and then click on the START button and immediately go to the top of the unfiltered log to see what it reports. There must be something....Doesn't work (the APK) on Bq Aquaris M5 Android 6.0.1 (app stops when clicking Start)
Was a permissions question (Settings -> Aplications -> b4asnowboy -> Permissions (activate Magazement and microphone)Can you see anything in the unfiltered logs when you connect your device via USB cable to your PC/Laptop and B4A is active? You need to clear the logs and wait for the log to "stabilize" and then click on the START button and immediately go to the top of the unfiltered log to see what it reports. There must be something....
Does it crash when the very first start button in pressed?
As what @DonManfred has asked above - what is the CPU architecture? The lib only provides for ARMv7 at presentDoesn't work (the APK) on Bq Aquaris M5 Android 6.0.1 (app stops when clicking Start)
When the activity with the two buttons open:Was a permissions question (Settings -> Aplications -> b4asnowboy -> Permissions (activate Magazement and microphone)
Otherwise, how works the app ? (When clicking start, another activity is open with two buttons to record and play the recorded sound but I've not found the recognisement function)
Can you also try my version from #2? Does it work for you? The only hotword is "Alexa" at this time.Doesn't work (the APK)
Alexa should also work if you pronounce it close to the way that it was recorded....Works !(the app doesn't like my "Alexa" pronunciation, "snowboy" does the job)
Can you also try my version from #2? Does it work for you? The only hotword is "Alexa" at this time.
It should PLING if it detects Alexa said after you start recording
Hmm. What do you mean with you need to aprove?(same issue with Permissions--> need to aprove on Settings
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?