google_speech 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_speech/transcriber.rb +4 -2
- data/lib/google_speech/version.rb +1 -1
- data/spec/transcriber_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d75282abd8051652fe4ca75b4a8548eef3a9e94a
|
4
|
+
data.tar.gz: 8055728db0dcab07abaec90fdcb27e09f4f34cb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d39ebd415c9648dd61b9a6c6212f2b6cc92027fece77038fdc1b0907b634e212ecbb46d07a74fcd5952e47e6c5c18e464bb5d191410d9cefe922538a779fba
|
7
|
+
data.tar.gz: 69ccedc953378a08a3cad93be6474ad7075633b70073ebcfed3cb4e0385f78a4e62419074a2f85b857a9912643ae89c354e4fce1728f647595acaa978d6345b0
|
@@ -9,8 +9,10 @@ module GoogleSpeech
|
|
9
9
|
attr_accessor :original_file, :options, :results
|
10
10
|
|
11
11
|
DEFAULT_OPTIONS = {
|
12
|
-
:key => 'AIzaSyCnl6MRydhw_5fLXIdASxkLJzcJh5iX0M4',
|
13
|
-
:client => SecureRandom.hex,
|
12
|
+
# :key => 'AIzaSyCnl6MRydhw_5fLXIdASxkLJzcJh5iX0M4',
|
13
|
+
# :client => SecureRandom.hex,
|
14
|
+
:key => 'AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw',
|
15
|
+
:client => 'chrome',
|
14
16
|
:audio_type => 'audio/l16',
|
15
17
|
:rate => 8000,
|
16
18
|
:language => 'en-us',
|
data/spec/transcriber_spec.rb
CHANGED
@@ -5,7 +5,7 @@ require 'spec_helper'
|
|
5
5
|
describe GoogleSpeech::Transcriber do
|
6
6
|
|
7
7
|
it 'transcribes a file' do
|
8
|
-
f = File.open(File.join(File.dirname(__FILE__), '
|
8
|
+
f = File.open(File.join(File.dirname(__FILE__), '../curiouscity.wav'))
|
9
9
|
|
10
10
|
transcriber = GoogleSpeech::Transcriber.new(f)
|
11
11
|
t = transcriber.transcribe
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_speech
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kuklewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|