Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #25 from Azure-Samples/Jingli/CTS
Browse files Browse the repository at this point in the history
modified the package's name
  • Loading branch information
JingliLin2018 authored Jun 27, 2019
2 parents 345cba6 + 4630b9a commit fd28246
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import android.content.Context;
import android.support.annotation.NonNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp">
package="com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import java.util.HashMap;
import java.util.Map;


public class LanguageCode {
private static HashMap<String, String> mapRecolanguageCode = new HashMap<String, String>(){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;


import android.content.Intent;
Expand Down Expand Up @@ -40,7 +40,7 @@
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

import static com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp.LanguageCode.getCode;
import static com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp.LanguageCode.getCode;
import static com.microsoft.cognitiveservices.speech.ResultReason.RecognizedKeyword;
import static com.microsoft.cognitiveservices.speech.ResultReason.RecognizingSpeech;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

class SpeakerData {
private String speaker;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import java.math.BigInteger;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import android.annotation.SuppressLint;
import android.app.Activity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import android.graphics.drawable.GradientDrawable;
import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import android.content.Intent;
import android.graphics.Color;
Expand All @@ -12,7 +12,6 @@
import android.util.Pair;
import android.view.Menu;
import android.view.MenuItem;
import android.view.WindowManager;
import android.widget.ListView;
import android.widget.TextView;

Expand All @@ -28,7 +27,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.net.URI;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
Expand Down Expand Up @@ -198,8 +196,7 @@ protected void onCreate(Bundle savedInstanceState)
}
}

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
}
}

private void eventHandler(ConversationTranscriptionEventArgs e)
{
Expand All @@ -219,7 +216,7 @@ private void eventHandler(ConversationTranscriptionEventArgs e)
{
if (transcriptions.containsKey(key))
{
if (transcriptions.get(key).getResult().getReason() == ResultReason.RecognizedSpeech)
if (transcriptions.get(key).getResult().getReason() == ResultReason.RecognizingSpeech)
{
Log.e(logTag, "Two utterances occur at the same time. Offset: " + offset + "; text: " + text);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import android.content.Intent;
import android.os.Bundle;
Expand All @@ -11,8 +11,8 @@
import android.widget.ListView;
import java.util.ArrayList;

import static com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp.MainActivity.SELECT_RECOGNIZE_LANGUAGE_REQUEST;
import static com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp.MainActivity.SELECT_TRANSLATE_LANGUAGE_REQUEST;
import static com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp.MainActivity.SELECT_RECOGNIZE_LANGUAGE_REQUEST;
import static com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp.MainActivity.SELECT_TRANSLATE_LANGUAGE_REQUEST;

public class listLanguage extends AppCompatActivity {
private ListView listViewlanguage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.microsoft.coginitiveservices.speech.samples.sdsdkstarterapp;
package com.microsoft.cognitiveservices.speech.samples.sdsdkstarterapp;

import org.junit.Test;

Expand Down

0 comments on commit fd28246

Please sign in to comment.