Skip to content

Commit

Permalink
Speech GA - library update (#1212)
Browse files Browse the repository at this point in the history
* Speech GA - library update
speech_transcribe_auto_punctuation
speech_transcribe_enhanced_model

* Speech GA - library update
adding missed resources

* Vision GA - library update
removing duplicates

* Vision GA - library update
removing duplicates

* fixes after review

* Additional samples in GA - model-selection

* Additional samples in GA - model-selection

* Additional samples in GA - model-selection
  • Loading branch information
nirupa-kumar authored and nnegrey committed Sep 24, 2018
1 parent cd4348d commit 1e3dec3
Show file tree
Hide file tree
Showing 10 changed files with 820 additions and 572 deletions.
139 changes: 139 additions & 0 deletions speech/beta/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<!--
Copyright 2018, Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.speech</groupId>
<artifactId>speech-google-cloud-samples</artifactId>
<packaging>jar</packaging>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not affect the execution of the samples in anyway.
-->
<parent>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.0.10</version>
</parent>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<!-- [START speech_quickstart_dependencies] -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-speech</artifactId>
<version>0.56.0-beta</version>
</dependency>
<!-- [END speech_quickstart_dependencies] -->

<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>0.42</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.example.language.QuickstartSample</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>Quickstart</id>
<activation>
<property>
<name>Quickstart</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.example.speech.QuickstartSample</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>Recognize</id>
<activation>
<property>
<name>Recognize</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.example.speech.Recognize</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Binary file added speech/beta/resources/Google_Gnome.wav
Binary file not shown.
Binary file added speech/beta/resources/audio.raw
Binary file not shown.
Binary file added speech/beta/resources/commercial_mono.wav
Binary file not shown.
Binary file added speech/beta/resources/commercial_stereo.wav
Binary file not shown.
Loading

0 comments on commit 1e3dec3

Please sign in to comment.