Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2d46898
making default db the username's db
cesine Jun 12, 2014
2722f05
adding support for speech recognition training app
cesine Jun 12, 2014
e5ec28d
created a production experiment datum fragment
cesine Jun 12, 2014
f3de322
displaying different background images based on tags (for category ba…
cesine Jun 12, 2014
c8c1aeb
added a list pager which makes it possible to swipe between datum
cesine Jun 12, 2014
997bfe8
scrollabel flash cards a bit more memory optimized and turning of acr…
cesine Jun 13, 2014
621854c
creating corpus directories in an app directory and playing instructi…
cesine Jun 13, 2014
9f991fe
auto advancing between stimuli/cards
cesine Jun 13, 2014
cd1f004
added a confirm dialog if users want to add their own words
cesine Jun 13, 2014
ac58490
adding a high res version of the speech bubbles for backgroun dimage
cesine Jun 13, 2014
c580815
aded a simple datum view for non-linguists fixes https://github.com/O…
cesine Jun 13, 2014
ef0fcf6
putting default datum list back to using the datum views not a view p…
cesine Jun 13, 2014
66edfbf
added audio upload for https://github.com/OpenSourceFieldlinguistics/…
cesine Jun 13, 2014
bb7e9bf
checking if the cursor is null
cesine Jun 13, 2014
2052c3f
adding bouncy castle but not upload not working yet
cesine Jun 13, 2014
6f47e87
uplaod is working
cesine Jun 14, 2014
31605e5
deployed v2.4.0
cesine Jun 14, 2014
a187c9d
downloading samples was on for the speechrec app
cesine Jun 14, 2014
fdd38df
corrections to acra found while doing https://github.com/OpenSourceFi…
cesine Jun 15, 2014
77c2b83
renaming production experiment activity
cesine Jun 15, 2014
638ea38
using a datum edit activity for the speech recognition hypothesis dis…
cesine Jun 16, 2014
b764885
matching parrnt to not underflow the action bar
cesine Jun 16, 2014
e7b3fbf
turning off the recording if you scroll to the next item
cesine Jun 16, 2014
51b6149
Speech recognition creates a new datum with validation status of Aut…
cesine Jun 16, 2014
a1cb854
new speech recognition interface is ready fixes https://github.com/ba…
cesine Jun 16, 2014
806db03
forcing locale to kartuli and adding color to the speech recognitoin …
cesine Jun 17, 2014
aa2ded4
new layout for horizontal tablets with buttons and text next to eacho…
cesine Jun 17, 2014
4ff0369
using speechrecognition as the app type and preparing for release
cesine Jun 17, 2014
7a5828b
Getting on focus change listeners to set the orthography isnt working
cesine Jun 17, 2014
ebe4eaf
dont need on buffered listener
cesine Jun 17, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
using a datum edit activity for the speech recognition hypothesis dis…
  • Loading branch information
cesine committed Jun 16, 2014
commit 638ea38933a7256227026e8e9b2f286c3f960fb4
7 changes: 7 additions & 0 deletions res/layout/activity_speech_recognition.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/datum_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".SpeechRecognitionActivity"
tools:ignore="MergeRootFrame" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package com.github.opensourcefieldlinguistics.fielddb.lessons.ui;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import com.github.opensourcefieldlinguistics.fielddb.speech.kartuli.R;

public class DatumSpeechRecognitionHypothesesFragment extends DatumDetailFragment {

private boolean isRecognizing;
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
// no menu
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_production_stimulus,
container, false);

if (mItem != null) {

}

return rootView;
}
public void playSpeechRecognitionPrompt(){
this.isRecognizing = true;
}

@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (this.isVisible() && !this.isRecognizing) {
playSpeechRecognitionPrompt();
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package com.github.opensourcefieldlinguistics.fielddb.lessons.ui;

import com.github.opensourcefieldlinguistics.fielddb.speech.kartuli.R;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

public class SpeechRecognitionActivity extends FragmentActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setContentView(R.layout.activity_speech_recognition);

// savedInstanceState is non-null when there is fragment state
// saved from previous configurations of this activity
// (e.g. when rotating the screen from portrait to landscape).
// In this case, the fragment will automatically be re-added
// to its container so we don't need to manually add it.
// For more information, see the Fragments API guide at:
//
// http://developer.android.com/guide/components/fragments.html
//
if (savedInstanceState == null) {
// Create the detail fragment and add it to the activity
// using a fragment transaction.
Bundle arguments = new Bundle();
arguments.putString(DatumDetailFragment.ARG_ITEM_ID, getIntent()
.getStringExtra(DatumDetailFragment.ARG_ITEM_ID));
DatumSpeechRecognitionHypothesesFragment fragment = new DatumSpeechRecognitionHypothesesFragment();
fragment.setArguments(arguments);
getSupportFragmentManager().beginTransaction()
.add(R.id.datum_detail_container, fragment).commit();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void onTrainClick(View view) {
}

public void onRecognizeClick(View view) {
Intent openRecognizer = new Intent(this, ListenAndRepeat.class);
Intent openRecognizer = new Intent(this, SpeechRecognitionActivity.class);
startActivity(openRecognizer);
}

Expand Down