leijie лет назад: 8
Родитель
Сommit
b4aaa44347
34 измененных файлов с 127 добавлено и 0 удалено
  1. 8 0
      ipu-voice-lib/.classpath
  2. 3 0
      ipu-voice-lib/.gitignore
  3. 11 0
      ipu-voice-lib/AndroidManifest.xml
  4. 2 0
      ipu-voice-lib/assets/voice/.gitignore
  5. 1 0
      ipu-voice-lib/assets/voice/asr_license
  6. BIN
      ipu-voice-lib/assets/voice/bd_etts_speech_female.dat
  7. BIN
      ipu-voice-lib/assets/voice/bd_etts_speech_male.dat
  8. BIN
      ipu-voice-lib/assets/voice/bd_etts_text.dat
  9. BIN
      ipu-voice-lib/libs/VoiceRecognition-2.0.1.jar
  10. 5 0
      ipu-voice-lib/libs/armeabi/.gitignore
  11. BIN
      ipu-voice-lib/libs/com.baidu.tts_2.2.3.20160229_359d952_release.jar
  12. BIN
      ipu-voice-lib/libs/galaxy-v2.0.jar
  13. BIN
      ipu-voice-lib/libs/ipu-voice.jar
  14. 7 0
      ipu-voice-lib/res/drawable-hdpi/.gitignore
  15. BIN
      ipu-voice-lib/res/drawable-xhdpi/bd_asr_mic.png
  16. BIN
      ipu-voice-lib/res/drawable-xhdpi/bd_asr_wave.png
  17. 24 0
      ipu-voice-lib/res/drawable/.gitignore
  18. 12 0
      ipu-voice-lib/res/drawable/bd_asr_popup_bg.xml
  19. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_greendeep_normal.9.png
  20. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_greendeep_pressed.9.png
  21. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_greenlight_normal.9.png
  22. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_greenlight_pressed.9.png
  23. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_normal.9.png
  24. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_orangedeep_normal.9.png
  25. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_orangedeep_pressed.9.png
  26. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_orangelight_normal.9.png
  27. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_orangelight_pressed.9.png
  28. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_pressed.9.png
  29. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_recognizing.9.png
  30. BIN
      ipu-voice-lib/res/drawable/bdspeech_btn_recognizing_deep.9.png
  31. 1 0
      ipu-voice-lib/res/layout/.gitignore
  32. 46 0
      ipu-voice-lib/res/layout/bd_asr_popup_speech.xml
  33. 5 0
      ipu-voice-lib/res/raw/.gitignore
  34. 2 0
      ipu-voice-lib/res/values/.gitignore

+ 8 - 0
ipu-voice-lib/.classpath

@ -0,0 +1,8 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="gen"/>
4
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
5
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
6
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
7
	<classpathentry kind="output" path="bin/classes"/>
8
</classpath>

+ 3 - 0
ipu-voice-lib/.gitignore

@ -0,0 +1,3 @@
1
/gen/
2
/bin/
3
/project.properties

+ 11 - 0
ipu-voice-lib/AndroidManifest.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
    package="com.ai.ipu.voice"
4
    android:versionCode="1"
5
    android:versionName="1.0" >
6
7
    <uses-sdk
8
        android:minSdkVersion="8"
9
        android:targetSdkVersion="21" />
10
11
</manifest>

+ 2 - 0
ipu-voice-lib/assets/voice/.gitignore

@ -0,0 +1,2 @@
1
/s_1
2
/tts_license

+ 1 - 0
ipu-voice-lib/assets/voice/asr_license

@ -0,0 +1 @@
1
79e4327fac94b13223cb2ac9d4d64acb8e254ce322b643541b3a7585a90bda5722e313b61716f9f0e5eefee625e50a2bdcbd7b028c1f61527e7ee99754eff08ccce70d67199844611dc6f4bdace0405d7c3fd3d52e607ddd56774a83e2a33d1b9959d13c92abfe5b3cfc0cc8fb8491066ac5d779b1d0cc4147656291912e3eac54bafd3c9ebe2edf612bb536f28b9a771db519e0843155b388f69afa91be62472cf1005339868d5e1af244a137707aa588af1ba03d908a69320d449e38329dede1a0770e6a725a04d4190545b120a9902340c1255c73a6ec08ad731c3f601c4e2efbeccd660c53497009522a94566a14da63bdc6fab1e51e25a7fc6f403bbf39

BIN
ipu-voice-lib/assets/voice/bd_etts_speech_female.dat


BIN
ipu-voice-lib/assets/voice/bd_etts_speech_male.dat


BIN
ipu-voice-lib/assets/voice/bd_etts_text.dat


BIN
ipu-voice-lib/libs/VoiceRecognition-2.0.1.jar


+ 5 - 0
ipu-voice-lib/libs/armeabi/.gitignore

@ -0,0 +1,5 @@
1
/libbdEASRAndroid.so
2
/libBDSpeechDecoder_V1.so
3
/libbdtts.so
4
/libBDVoiceRecognitionClient_MFE_V1.so
5
/libgnustl_shared.so

BIN
ipu-voice-lib/libs/com.baidu.tts_2.2.3.20160229_359d952_release.jar


BIN
ipu-voice-lib/libs/galaxy-v2.0.jar


BIN
ipu-voice-lib/libs/ipu-voice.jar


+ 7 - 0
ipu-voice-lib/res/drawable-hdpi/.gitignore

@ -0,0 +1,7 @@
1
/bdspeech_close_v2.png
2
/bdspeech_help_deep.png
3
/bdspeech_help_light.png
4
/bdspeech_help_pressed_deep.png
5
/bdspeech_help_pressed_light.png
6
/bdspeech_mask_deep.png
7
/bdspeech_mask_light.png

BIN
ipu-voice-lib/res/drawable-xhdpi/bd_asr_mic.png


BIN
ipu-voice-lib/res/drawable-xhdpi/bd_asr_wave.png


+ 24 - 0
ipu-voice-lib/res/drawable/.gitignore

@ -0,0 +1,24 @@
1
/bdspeech_btn_reddeep_normal.9.png
2
/bdspeech_btn_reddeep_pressed.9.png
3
/bdspeech_btn_redlight_normal.9.png
4
/bdspeech_btn_redlight_pressed.9.png
5
/bdspeech_digital_bg.9.png
6
/bdspeech_digital_deep_bg.9.png
7
/bdspeech_left_deep_normal.9.png
8
/bdspeech_left_deep_pressed.9.png
9
/bdspeech_left_normal.9.png
10
/bdspeech_left_pressed.9.png
11
/bdspeech_right_greendeep_normal.9.png
12
/bdspeech_right_greendeep_pressed.9.png
13
/bdspeech_right_greenlight_normal.9.png
14
/bdspeech_right_greenlight_pressed.9.png
15
/bdspeech_right_normal.9.png
16
/bdspeech_right_orangedeep_normal.9.png
17
/bdspeech_right_orangedeep_pressed.9.png
18
/bdspeech_right_orangelight_normal.9.png
19
/bdspeech_right_orangelight_pressed.9.png
20
/bdspeech_right_pressed.9.png
21
/bdspeech_right_reddeep_normal.9.png
22
/bdspeech_right_reddeep_pressed.9.png
23
/bdspeech_right_redlight_normal.9.png
24
/bdspeech_right_redlight_pressed.9.png

+ 12 - 0
ipu-voice-lib/res/drawable/bd_asr_popup_bg.xml

@ -0,0 +1,12 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3
    <item>
4
        <shape
5
                xmlns:android="http://schemas.android.com/apk/res/android"
6
                android:shape="rectangle"  >
7
            <solid android:color="#66000000"/>
8
            <corners android:radius="8.0dip"/>
9
        </shape>
10
11
    </item>
12
</selector>

BIN
ipu-voice-lib/res/drawable/bdspeech_btn_greendeep_normal.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_greendeep_pressed.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_greenlight_normal.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_greenlight_pressed.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_normal.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_orangedeep_normal.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_orangedeep_pressed.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_orangelight_normal.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_orangelight_pressed.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_pressed.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_recognizing.9.png


BIN
ipu-voice-lib/res/drawable/bdspeech_btn_recognizing_deep.9.png


+ 1 - 0
ipu-voice-lib/res/layout/.gitignore

@ -0,0 +1 @@
1
/bdspeech_digital_layout.xml

+ 46 - 0
ipu-voice-lib/res/layout/bd_asr_popup_speech.xml

@ -0,0 +1,46 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="match_parent">
5
    <RelativeLayout
6
            android:layout_centerInParent="true"
7
            android:layout_width="140dp"
8
            android:background="@drawable/bd_asr_popup_bg"
9
            android:layout_height="140dp"
10
            android:layout_gravity="center_horizontal">
11
        <ImageView
12
                android:layout_width="wrap_content"
13
                android:layout_height="wrap_content"
14
                android:src="@drawable/bd_asr_mic"
15
                android:id="@+id/imageView"
16
                android:layout_alignParentBottom="true"
17
                android:layout_marginBottom="50dp"
18
                android:layout_marginLeft="45dp"/>
19
20
        <RelativeLayout
21
                android:id="@+id/wave"
22
                android:layout_height="30dp"
23
                android:gravity="bottom"
24
                android:layout_marginLeft="90dp"
25
                android:layout_alignParentBottom="true"
26
                android:layout_marginBottom="50dp"
27
                android:layout_width="wrap_content">
28
            <ImageView
29
                    android:layout_width="wrap_content"
30
                    android:layout_height="wrap_content"
31
                    android:src="@drawable/bd_asr_wave"
32
                    android:scaleType="centerCrop"
33
                    android:id="@+id/imageView2"/>
34
        </RelativeLayout>
35
        <TextView
36
                android:id="@+id/speech_tips"
37
                android:layout_width="wrap_content"
38
                android:layout_height="wrap_content"
39
                android:textColor="#FFF"
40
                android:textAppearance="?android:attr/textAppearanceMedium"
41
                android:text="录音中"
42
                android:layout_alignParentBottom="true"
43
                android:layout_centerHorizontal="true" android:layout_marginBottom="8dp"/>
44
    </RelativeLayout>
45
46
</RelativeLayout>

+ 5 - 0
ipu-voice-lib/res/raw/.gitignore

@ -0,0 +1,5 @@
1
/bdspeech_recognition_cancel.mp3
2
/bdspeech_recognition_error.mp3
3
/bdspeech_recognition_start.mp3
4
/bdspeech_recognition_success.mp3
5
/bdspeech_speech_end.mp3

+ 2 - 0
ipu-voice-lib/res/values/.gitignore

@ -0,0 +1,2 @@
1
/strings.xml
2
/styles.xml