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

Commit

Permalink
Update sample code for version 1.7.0 release (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jychoudh authored Nov 14, 2019
1 parent c4b2927 commit 6a10a95
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ private void stopClicked(MenuItem item)
{
try
{
transcriber.stopTranscribingAsync().get();
final Future<Void> task = transcriber.endConversationAsync();
final Future<Void> task = transcriber.stopTranscribingAsync();
setOnTaskCompletedListener(task, result -> {
Log.i(logTag, "Recognition stopped.");
meetingStarted = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
PARTICIPANTSLIST=
# This file should contain voice signatures of participants in conversation.
#
# Format of the file is:
# PARTICIPANTSLIST = <user1@voice_signature1><user2@voice_signature2><user3@voice_signature3>...
#
# You can create voice signatures of users by following instructions provided on
# https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-use-conversation-transcription-service#create-voice-signatures-for-participants
#
# A voice signature has following format:
# { "Version": <Numeric value>, "Tag": "string", "Data": "string" }
#
# So, your participants.properties file would look like following:
# PARTICIPANTSLIST = <user1@\
# {\
# "Version": numeric_value,\
# "Tag": "string",\
# "Data": "string"\
# }>\
# <user2@\
# {\
# "Version": numeric_value,\
# "Tag": "string",\
# "Data": "string"\
# }>\
# <user3@\
# {\
# "Version": numeric_value,\
# "Tag": "string",\
# "Data": "string"\
# }>

PARTICIPANTSLIST =
34 changes: 32 additions & 2 deletions Samples/Windows_Linux/SampleDemo/participants.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
PARTICIPANTSLIST=

# This file should contain voice signatures of participants in conversation.
#
# Format of the file is:
# PARTICIPANTSLIST = <user1@voice_signature1><user2@voice_signature2><user3@voice_signature3>...
#
# You can create voice signatures of users by following instructions provided on
# https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-use-conversation-transcription-service#create-voice-signatures-for-participants
#
# A voice signature has following format:
# { "Version": <Numeric value>, "Tag": "string", "Data": "string" }
#
# So, your participants.properties file would look like following:
# PARTICIPANTSLIST = <user1@\
# {\
# "Version": numeric_value,\
# "Tag": "string",\
# "Data": "string"\
# }>\
# <user2@\
# {\
# "Version": numeric_value,\
# "Tag": "string",\
# "Data": "string"\
# }>\
# <user3@\
# {\
# "Version": numeric_value,\
# "Tag": "string",\
# "Data": "string"\
# }>

PARTICIPANTSLIST =
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public Cts() {
// Jar file
String participantsProp = jarLocation.getAbsolutePath() + File.separator + "participants.properties";
// log.text file will save in the same path as this application runnable Jar file
String logPath = jarLocation.getAbsolutePath() + File.separator + "log.text";
String logPath = jarLocation.getAbsolutePath() + File.separator + "log.txt";

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Expand Down Expand Up @@ -378,8 +378,7 @@ private void setRecognizingText() {

private void stopClicked() {
try {
transcriber.stopTranscribingAsync().get();
final Future<Void> task = transcriber.endConversationAsync();
final Future<Void> task = transcriber.stopTranscribingAsync();
setOnTaskCompletedListener(task, result -> {
System.out.println("Recognition stopped.");
meetingStarted = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public FunctionsList() {
// runnable Jar file
KeywordModel = JarLocation.getAbsolutePath() + File.separator + "kws.table";
// log.text file will save in the same path as this application runnable Jar file
LogPath = JarLocation.getAbsolutePath() + File.separator + "log.text";
LogPath = JarLocation.getAbsolutePath() + File.separator + "log.txt";
// Note: point this to a wav file in case you don't want to
// use the microphone. It will be used automatically, if
// the file exists on disk.
Expand Down

0 comments on commit 6a10a95

Please sign in to comment.