Skip to content

Commit

Permalink
Merge pull request #1 from batumi/usingFielddb
Browse files Browse the repository at this point in the history
Adding speech recognition into master
  • Loading branch information
cesine committed Aug 31, 2015
2 parents 2efe28e + 72ff251 commit 6f5f055
Show file tree
Hide file tree
Showing 60 changed files with 698 additions and 4,565 deletions.
77 changes: 52 additions & 25 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.opensourcefieldlinguistics.fielddb.lessons.georgian"
android:versionCode="5"
android:versionName="1.102.3" >
package="com.github.opensourcefieldlinguistics.fielddb.speech.kartuli"
android:installLocation="preferExternal"
android:versionCode="9"
android:versionName="2.18.2" >

<uses-sdk
android:minSdkVersion="14"
Expand Down Expand Up @@ -47,14 +48,18 @@
android:required="false" />

<application
android:name="com.github.opensourcefieldlinguistics.fielddb.FieldDBApplication"
android:name="com.github.fielddb.KartuliSpeechRecognitionApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:label="@string/speech_app_name"
android:largeHeap="true"
android:theme="@style/AppTheme" >
<activity
android:name="com.github.opensourcefieldlinguistics.fielddb.lessons.ui.DatumListActivity"
android:name="com.github.fielddb.lessons.ui.DatumListActivity"
android:label="Recognition Trainer Advanced" >
</activity>
<activity
android:name="com.github.fielddb.lessons.ui.WelcomeActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -63,52 +68,74 @@
</intent-filter>
</activity>
<activity
android:name="com.github.opensourcefieldlinguistics.fielddb.lessons.ui.DatumDetailActivity"
android:name="com.github.fielddb.experimentation.ui.ProductionExperimentActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/train" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.github.fielddb.lessons.ui.SpeechRecognitionActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/im_listening" >
<intent-filter>
<action android:name="android.speech.action.RECOGNIZE_SPEECH" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.github.fielddb.lessons.ui.DatumDetailActivity"
android:label="@string/title_datum_detail"
android:parentActivityName="com.github.opensourcefieldlinguistics.fielddb.lessons.ui.DatumListActivity" >
android:parentActivityName="com.github.fielddb.lessons.ui.DatumListActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".DatumListActivity" />
</activity>
<activity
android:name="ca.ilanguage.oprime.datacollection.VideoRecorder"
android:name="com.github.fielddb.datacollection.VideoRecorder"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name" >
android:label="@string/speech_app_name" >
</activity>
<activity
android:name="ca.ilanguage.oprime.datacollection.TakePicture"
android:name="com.github.fielddb.datacollection.TakePicture"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name" >
android:label="@string/speech_app_name" >
</activity>

<service android:name="ca.ilanguage.oprime.datacollection.AudioRecorder" >
<service android:name="com.github.fielddb.datacollection.AudioRecorder" >
</service>
<service android:name="com.github.fielddb.service.DownloadDatumsService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.DownloadDatumsService" >
<service android:name="com.github.fielddb.service.RegisterUserService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.RegisterUserService" >
<service android:name="com.github.fielddb.service.UploadAudioVideoService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.UploadAudioVideoService" >
<service android:name="com.github.fielddb.service.KartuliSMSCorpusService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.KartuliSMSCorpusService" >
<service android:name="com.github.fielddb.service.KartuliWebSearchCorpusService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.KartuliWebSearchCorpusService" >
<service android:name="com.github.fielddb.service.KartuliLegalSearchCorpusService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.KartuliLegalSearchCorpusService" >
<service android:name="com.github.fielddb.service.PocketSphinxRecognitionService" >
</service>

<provider
android:name="com.github.opensourcefieldlinguistics.fielddb.database.DatumContentProvider"
android:authorities="com.github.opensourcefieldlinguistics.fielddb.kartuli.datum"
android:name="com.github.fielddb.database.DatumContentProvider"
android:authorities="com.github.fielddb.speechrecognition.kartuli.datum"
android:exported="false" >
</provider>
<provider
android:name="com.github.opensourcefieldlinguistics.fielddb.database.AudioVideoContentProvider"
android:authorities="com.github.opensourcefieldlinguistics.fielddb.kartuli.audiovideo"
android:name="com.github.fielddb.database.AudioVideoContentProvider"
android:authorities="com.github.fielddb.speechrecognition.kartuli.audiovideo"
android:exported="false" >
</provider>
<provider
android:name="com.github.opensourcefieldlinguistics.fielddb.database.FieldDBUserContentProvider"
android:authorities="com.github.opensourcefieldlinguistics.fielddb.kartuli.user"
android:name="com.github.fielddb.database.FieldDBUserContentProvider"
android:authorities="com.github.fielddb.speechrecognition.kartuli.user"
android:exported="false" >
</provider>
</application>
Expand Down
Binary file added ic_web_kartuli_speech.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19
android.library.reference.1=../OPrime/OPrime-Android
target=android-20
android.library.reference.1=../../fielddbhome/AndroidFieldDB
Binary file modified res/drawable-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/instructions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions res/drawable/legal_search.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/legal_search_pressed"
android:state_focused="true"
android:state_pressed="true" />
<item android:drawable="@drawable/legal_search_pressed"
android:state_focused="false"
android:state_pressed="true" />
<item android:drawable="@drawable/legal_search_selected" android:state_focused="true" />
<item android:drawable="@drawable/legal_search_default"
android:state_focused="false"
android:state_pressed="false" />
</selector>
Binary file added res/drawable/legal_search_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/legal_search_pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/legal_search_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions res/drawable/search.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/search_pressed"
android:state_focused="true"
android:state_pressed="true" />
<item android:drawable="@drawable/search_pressed"
android:state_focused="false"
android:state_pressed="true" />
<item android:drawable="@drawable/search_selected" android:state_focused="true" />
<item android:drawable="@drawable/search_default"
android:state_focused="false"
android:state_pressed="false" />
</selector>
Binary file added res/drawable/search_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/search_pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/search_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions res/drawable/sms.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/sms_pressed"
android:state_focused="true"
android:state_pressed="true" />
<item android:drawable="@drawable/sms_pressed"
android:state_focused="false"
android:state_pressed="true" />
<item android:drawable="@drawable/sms_selected" android:state_focused="true" />
<item android:drawable="@drawable/sms_default"
android:state_focused="false"
android:state_pressed="false" />
</selector>
Binary file added res/drawable/sms_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/sms_pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/sms_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion res/layout/activity_datum_list.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/datum_list"
android:name="com.github.opensourcefieldlinguistics.fielddb.lessons.ui.DatumListFragment"
android:name="com.github.fielddb.lessons.ui.DatumListFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
Expand Down
2 changes: 1 addition & 1 deletion res/layout/activity_datum_twopane.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<fragment
android:id="@+id/datum_list"
android:name="com.github.opensourcefieldlinguistics.fielddb.lessons.ui.DatumListFragment"
android:name="com.github.fielddb.lessons.ui.DatumListFragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
Expand Down
2 changes: 1 addition & 1 deletion res/layout/activity_production_experiment_datum_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
android:orientation="vertical"
>
<android.support.v4.view.ViewPager
android:id="@+android:id/viewpager"
android:id="@+id/viewpager"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
Expand Down
Binary file added res/raw/im_listening.mp3
Binary file not shown.
Binary file added res/raw/instructions.mp3
Binary file not shown.
Binary file added res/raw/prompt.mp3
Binary file not shown.
24 changes: 21 additions & 3 deletions res/values-ka/strings.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">ქართული ერთად</string>
<string name="speech_app_name">ქართული speech</string>
<string name="app_name">მწვრთნელი</string>
<string name="speech_app_name">ამომცნობი</string>
<string name="title_datum_detail">ფრაზა</string>
<string name="app_explanation">ბათუმი აპლიკაციის დეველოპერები გაერთიანდნენ ღია ველის ენათმეცნიერები რათა შექმნან სიტყვის გამომცნობი ქართული ენის მოსაუბრეებთათვის. შენ შეგიძლია ისარგებლო ამ აპლიკაციით, მოამზადო შენი ანდროიდი, რათა გამოიცნო შენი მეტყველება. შენ უნდა წაიკითხო რამოდენიმე წინადადება და შემდეგ დაუკავშირდე WiFi-ს რათა გადაამზადო შენი ხმის მოდელი. ჩვენ ვიმედოვნებთ, რომ გვექნება უკეთესი .გამომცნობი რომელიც იქნება 10%ზე მეტი, თუმცა ქართული ენა განსხვავებულია სხვა ენებისგან, ასე რომ ჩვენ ჯერ არ ვიცით რამდენად გამოსაყენებელი იქნება ეს აპლიკაცია. შენ შეგიძლია სცადო, ეს არის უფრო მეტად ექსპერიმენტული და კვლევის პროგრამული უზრუნველყოფა, ასე რო ჩვენ არ შეგვიძლია მოგცეთ გარანტია, რომ ეს იქნება გამოსაყენებელი. აქ არის ჩვენი სლაიდის ლინკი: http://batumi.github.io</string>

</resources>
<!-- Recognition prompts -->
<string name="im_listening">გისმენთ</string>
<string name="i_might_have_heard">შესაძლებელია გამიგია: </string>
<string name="or_maybe">ან შეიძლება </string>
<string name="train">წვრთნა</string>
<string name="recognize">ამოცნობა</string>
<string name="tap_to_speak">დააჭირე,რომ ილაპარაკო</string>
<string name="tap_to_end">დააჭირე,რომ დაასრულო</string>
<string name="speak_now">ილაპარაკე ახლა</string>
<string name="dialog_continue_to_advanced_training">დაამატებდი საკუთარ სიტყვებს?</string>
<string name="continue_word">გააგრძელე</string>
<string name="finished">საკმარისია</string>
<string name="context">კონტექსტში</string>
<string name="orthography">ფრაზა</string>
<string name="tag_hint">ინტერნეტ ძიება, ტექქსტური შეტყობინება, ელექქტრონული წერილი </string>
<string name="translation_hint"> </string>

</resources>
8 changes: 3 additions & 5 deletions res/values-ru/strings.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">ქართული ერთად</string>
<string name="speech_app_name">ქართული speech</string>
<string name="title_datum_detail">ფრაზა</string>

</resources>
<string name="app_name">ქართული</string>

</resources>
39 changes: 36 additions & 3 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">ქართული ერთად</string>
<string name="speech_app_name">ქართული speech</string>
<string name="app_name">ქართული</string>
<string name="speech_app_name">ქართული</string>
<string name="title_datum_detail">ფრაზა</string>
<string name="app_explanation">ბათუმი აპლიკაციის დეველოპერები გაერთიანდნენ ღია ველის ენათმეცნიერები რათა შექმნან სიტყვის გამომცნობი ქართული ენის მოსაუბრეებთათვის. შენ შეგიძლია ისარგებლო ამ აპლიკაციით, მოამზადო შენი ანდროიდი, რათა გამოიცნო შენი მეტყველება. შენ უნდა წაიკითხო რამოდენიმე წინადადება და შემდეგ დაუკავშირდე WiFi-ს რათა გადაამზადო შენი ხმის მოდელი. ჩვენ ვიმედოვნებთ, რომ გვექნება უკეთესი .გამომცნობი რომელიც იქნება 10%ზე მეტი, თუმცა ქართული ენა განსხვავებულია სხვა ენებისგან, ასე რომ ჩვენ ჯერ არ ვიცით რამდენად გამოსაყენებელი იქნება ეს აპლიკაცია. შენ შეგიძლია სცადო, ეს არის უფრო მეტად ექსპერიმენტული და კვლევის პროგრამული უზრუნველყოფა, ასე რო ჩვენ არ შეგვიძლია მოგცეთ გარანტია, რომ ეს იქნება გამოსაყენებელი. აქ არის ჩვენი სლაიდის ლინკი: http://batumi.github.io</string>
<string name="are_you_sure">Are you sure?</string>
<string name="are_you_sure_put_in_trash">Are you sure you want to put this datum in the trash?</string>

</resources>
<!-- Recognition prompts -->
<string name="im_listening">გისმენთ</string>
<string name="i_might_have_heard">I might have heard: </string>
<string name="or_maybe">Or maybe this: </string>
<string name="there_were_others">. I\'m pretty funny, ey? There were some other options, but I think I\'ll stop there. </string>
<string name="train">წვრთნა</string>
<string name="recognize">Recognize</string>
<string name="tap_to_speak">Tap to speak again</string>
<string name="tap_to_end">Tap to end</string>
<string name="speak_now">Speak now</string>
<string name="dialog_continue_to_advanced_training">Add your own words?</string>
<string name="continue_word">Continue</string>
<string name="finished">Enough</string>
<string name="context">კონტექსტში</string>
<string name="orthography">ფრაზა</string>
<string name="tag_hint">WebSearch, SMS, Email</string>
<string name="translation_hint"></string>
<string name="remove">Remove</string>
<string name="no_recognized_result">I didn\'t hear anything...</string>
<string name="hypothesis">Hypothesis</string>

<!-- PocketSphinx -->

<string name="start">Start</string>
<string name="stop">Stop</string>
<string name="kws_caption">To start demonstration say \"okay android\".</string>
<string name="menu_caption">Say \"digits\" or \"forecast\" to choose particular example.</string>
<string name="digits_caption">Let\'s recognize some digits: say something like \"one two three four five\".</string>
<string name="forecast_caption">Say something typical to a weather forecast like \"sunny spells on Wednesday\".</string>

</resources>
Loading

0 comments on commit 6f5f055

Please sign in to comment.