diff --git a/speech/cloud-client/pom.xml b/speech/cloud-client/pom.xml
index 9d097a566d1..b887baeae18 100644
--- a/speech/cloud-client/pom.xml
+++ b/speech/cloud-client/pom.xml
@@ -21,10 +21,9 @@
- doc-samples
- com.google.cloud
- 1.0.0
- ../..
+ com.google.cloud.samples
+ shared-configuration
+ 1.0.5
diff --git a/speech/cloud-client/src/main/java/com/example/speech/Recognize.java b/speech/cloud-client/src/main/java/com/example/speech/Recognize.java
index 88fd592d051..619c402c49e 100644
--- a/speech/cloud-client/src/main/java/com/example/speech/Recognize.java
+++ b/speech/cloud-client/src/main/java/com/example/speech/Recognize.java
@@ -229,8 +229,11 @@ public static void asyncRecognizeGcs(String gcsUri) throws Exception, IOExceptio
System.out.printf("Transcription: %s\n",alternative.getTranscript());
for (WordInfo wordInfo: alternative.getWordsList()) {
System.out.println(wordInfo.getWord());
- System.out.printf("\t%s ns - %s ns\n",
- wordInfo.getStartTime().getNanos(), wordInfo.getEndTime().getNanos());
+ System.out.printf("\t%s.%s sec - %s.%s sec\n",
+ wordInfo.getStartTime().getSeconds(),
+ wordInfo.getStartTime().getNanos() / 100000000,
+ wordInfo.getEndTime().getSeconds(),
+ wordInfo.getEndTime().getNanos() / 100000000);
}
}
}