voice_id 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11c03b1a961eb1aaaafe11ffd366751403113fdf
4
- data.tar.gz: d1ca9d340e7090ff4e0f0be1aac2e3881221c259
3
+ metadata.gz: 6b2506dbf9abf4f9942ccc564de541272eded213
4
+ data.tar.gz: 9fa942d76abc598237cea5c59e00f4ca8d5be848
5
5
  SHA512:
6
- metadata.gz: 0ce1e0dcb77ab21180333b0b3886e9836700ee7a5f662c67029e8727fa5a7649fbb1c5a64c0d85da201a05f94236588e2505926e2ac5895ecd92d58b5d2df397
7
- data.tar.gz: 46c79da7a9f60e835ce840180d536b00e71e0cee3ccebec763cd82e88a0172ccd3e8e77c1852ae3bc429721fce448c645436b889f2180a03f84f1e56a4e44c8c
6
+ metadata.gz: ddb51abf74f98ea6b4cf9ce71769a52016a9a90116b4436c86d76eca39c218e2cde936b3a3cfb5339c4c53e19afb0d6885d19280946ae63b3835c4dd9a67deaa
7
+ data.tar.gz: 3a0b3ccfb9786a3940ba07fa456884a87e604f5373a7a46b07cb22f730a2864ec79da4784f8fe2493b89f91c7dabdd0400ebe5b4614fd175b9c6dfe953264c95
data/lib/voice_id/base.rb CHANGED
@@ -3,12 +3,13 @@ module VoiceId
3
3
  include RequestHelpers
4
4
  include Utils
5
5
 
6
- attr_accessor :api_base_url, :api_key, :api_version, :headers, :use_ssl
6
+ attr_accessor :api_base_url, :api_key, :api_version, :headers, :location, :use_ssl
7
7
  def initialize(api_key)
8
8
  @api_version = "v1.0"
9
+ @location = "westus"
9
10
  @api_key = api_key
10
11
  @use_ssl = true
11
- @api_base_url = "https://api.projectoxford.ai/spid/#{@api_version}"
12
+ @api_base_url = "https://#{@location}.api.cognitive.microsoft.com/spid/#{@api_version}"
12
13
  @headers = { "Ocp-Apim-Subscription-Key" => api_key }
13
14
  end
14
15
 
@@ -60,4 +61,4 @@ module VoiceId
60
61
  _response.code == 200 ? true : parse_error_response(_response)
61
62
  end
62
63
  end
63
- end
64
+ end
data/voice_id.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "voice_id"
3
- s.version = "0.1.1"
4
- s.date = "2016-09-16"
3
+ s.version = "0.1.2"
4
+ s.date = "2017-02-13"
5
5
  s.summary = "Ruby Wrapper for Microsoft Cognitive Services Speaker Recognition API"
6
6
  s.description = "Exposes easy-to-use methods to work with Microsoft's Speach Recognition API and identify people by their voice. Useful for identifying your users by speech."
7
7
  s.authors = ["Ali Yazdani"]
@@ -14,4 +14,4 @@ Gem::Specification.new do |s|
14
14
  s.add_runtime_dependency "http", "~>2.0"
15
15
  s.add_development_dependency "rspec", "~> 3.4"
16
16
  s.add_development_dependency "mimic", "~> 0.4"
17
- end
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voice_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Yazdani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-16 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http