Skip to content

Commit

Permalink
Doing some initial recognition testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander James Wallar committed Jan 21, 2014
1 parent cce8084 commit e0246f3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
24 changes: 12 additions & 12 deletions app/Locabean/res/layout/activity_node.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,13 @@
android:layout_alignLeft="@+id/nameTextView"
android:text="@string/confidenceItl" />

<Button
android:id="@+id/btnStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/btnStop"
android:layout_alignLeft="@+id/btnStop"
android:layout_marginBottom="15dp"
android:text="@string/record" />

<Button
android:id="@+id/btnSend"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnStop"
android:layout_alignLeft="@+id/btnStart"
android:layout_alignParentBottom="true"
android:layout_marginBottom="34dp"
android:layout_marginBottom="27dp"
android:text="@string/send" />

<Button
Expand All @@ -72,7 +63,16 @@
android:layout_height="wrap_content"
android:layout_above="@+id/btnSend"
android:layout_centerHorizontal="true"
android:layout_marginBottom="17dp"
android:layout_marginBottom="26dp"
android:text="@string/stop" />

<Button
android:id="@+id/btnStart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/btnStop"
android:layout_alignLeft="@+id/btnStop"
android:layout_marginBottom="27dp"
android:text="@string/record" />

</RelativeLayout>
4 changes: 2 additions & 2 deletions app/Locabean/src/com/locaudio/locabean/NodeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class NodeActivity extends Activity {
private TextView confidenceTextView = null;
private Locaudio locaudio = null;

private static final String IP_ADDRESS = "10.0.0.221";// "192.168.1.9";
private static final String IP_ADDRESS = "192.168.1.9";
private static final int PORT = 8000;

@Override
Expand Down Expand Up @@ -110,7 +110,7 @@ public void onClick(View v) {
break;
}
case R.id.btnSend: {

Wave wave = new Wave(WaveWriter.getFilename());
NotifyForm postForm = new NotifyForm();
postForm.setFingerprint(wave.getFingerprint());
Expand Down
11 changes: 11 additions & 0 deletions app/Locabean/src/com/locaudio/signal/WaveProcessing.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.locaudio.signal;

import com.musicg.wave.Wave;

public class WaveProcessing {

public static short determineAverageApplitude(Wave wave) {
return 0;
}

}
2 changes: 1 addition & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import locaudio.api as api


server_addr = "10.0.0.221" #"192.168.1.9"
server_addr = "192.168.1.9"
server_port = 8000

test_sound_name = "Cock"
Expand Down

0 comments on commit e0246f3

Please sign in to comment.