voice_text_api 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88b7d1c6fe2918713532506ea0153b1541ace307
4
- data.tar.gz: 72f3b40b2f76ab6718dece8bebd10cf008a19d73
3
+ metadata.gz: 2d759193020ab3e74c2e8f7daeaf823c1cdc3b20
4
+ data.tar.gz: ccea6021ad9bd415146da8eed15b7595c3b7af1d
5
5
  SHA512:
6
- metadata.gz: 7128f6b5f893c22049252248d638707db7e52117a4d3a246f3cf15c4f5402cec5c58444de23f5e8d4442834480885bdc757c6312fe3e45c51d3aa023405ffd5b
7
- data.tar.gz: 0321fe8aceb8b5c1e0d098391d2f7d68990802faeda2a4f03fc547cdf9a75f55e8549e7aabd753c62ee0123c5d529409a07d0635ae8a569150c93922909afe32
6
+ metadata.gz: 839345584673a5485bf8fedc2d85d057b40d24a25d29d6da43910776d760f876f25ae43a3ce018fde947aba9dcf0828ba4ba4373c77ed3bcbf0cb8216458ae1f
7
+ data.tar.gz: bdd4e0a968619c10602f0f0801074c62cdc9dca831d0d2e3d93444a9d5c816407abd3cbc5344abd4d3878c6b565225ab55f3e7d6dd2b45b5927208a5ecbfbe72
@@ -1,3 +1,3 @@
1
1
  class VoiceTextAPI
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -44,12 +44,12 @@ class VoiceTextAPI
44
44
  private
45
45
  def validate_parameters(speaker, emotion, emotion_level, pitch, speed, volume)
46
46
  raise ArgumentError.new("wrong speaker: #{speaker}" ) unless SPEAKERS.index(speaker.to_s)
47
- if speaker != :show && emotion != nil
48
- raise ArgumentError.new("wrong emotion: #{emotion}" ) unless EMOTIONS.index(emotion.to_s)
47
+ if speaker != :show && emotion != nil
48
+ raise ArgumentError.new("wrong emotion: #{emotion}" ) unless EMOTIONS.index(emotion.to_s)
49
49
  end
50
50
  raise ArgumentError.new("wrong emotion_level: #{emotion_level}" ) unless (1..2).include?(emotion_level)
51
51
  raise ArgumentError.new("wrong pitch: #{pitch}" ) unless (50..200).include?(pitch)
52
- raise ArgumentError.new("wrong speed: #{speed}" ) unless (50..200).include?(speed)
52
+ raise ArgumentError.new("wrong speed: #{speed}" ) unless (50..400).include?(speed)
53
53
  raise ArgumentError.new("wrong volume: #{volume}" ) unless (50..200).include?(volume)
54
54
  end
55
55
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voice_text_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler