fluent-plugin-boundio 0.0.1 → 0.0.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.
- data/README.md +3 -1
- data/fluent-plugin-boundio.gemspec +2 -2
- data/lib/fluent/plugin/out_boundio.rb +6 -4
- metadata +7 -7
data/README.md
CHANGED
@@ -2,7 +2,7 @@ fluent-plugin-boundio
|
|
2
2
|
=====================
|
3
3
|
|
4
4
|
## Component
|
5
|
-
|
5
|
+
Fluentd Output plugin to make a call with boundio by KDDI. This Multilingual speech synthesis system uses VoiceText.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -31,6 +31,8 @@ gem install fluent-plugin-boundio
|
|
31
31
|
api_key YOUR_BOUNDIO_API_KEY
|
32
32
|
user_key YOUR_BOUNDIO_USER_KEY
|
33
33
|
default_number 09012345678
|
34
|
+
# http://boundio.jp/docs/%E3%83%87%E3%83%99%E3%83%AD%E3%83%83%E3%83%91%E3%83%BC%E3%83%84%E3%83%BC%E3%83%AB
|
35
|
+
developer_tool yes
|
34
36
|
</match>
|
35
37
|
`````
|
36
38
|
|
@@ -3,11 +3,11 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-boundio"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.2"
|
7
7
|
s.authors = ["Kentaro Yoshida"]
|
8
8
|
s.email = ["y.ken.studio@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/y-ken/fluent-plugin-boundio"
|
10
|
-
s.summary = %q{
|
10
|
+
s.summary = %q{Fluentd Output plugin to make a call with boundio by KDDI. This Multilingual speech synthesis system uses VoiceText.}
|
11
11
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -3,9 +3,10 @@ class Fluent::BoundioOutput < Fluent::Output
|
|
3
3
|
Fluent::Plugin.register_output('boundio', self)
|
4
4
|
|
5
5
|
config_param :user_serial_id, :string
|
6
|
+
config_param :user_key, :string, :default => nil # Optional at this time
|
6
7
|
config_param :api_key, :string
|
7
|
-
config_param :user_key, :string
|
8
8
|
config_param :default_number, :string
|
9
|
+
config_param :developer_tool, :string, :default => 'no'
|
9
10
|
|
10
11
|
def initialize
|
11
12
|
super
|
@@ -16,7 +17,7 @@ class Fluent::BoundioOutput < Fluent::Output
|
|
16
17
|
|
17
18
|
def configure(conf)
|
18
19
|
super
|
19
|
-
|
20
|
+
@developer_tool = Fluent::Config.bool_value(@developer_tool) || false
|
20
21
|
@voice_type = 1
|
21
22
|
end
|
22
23
|
|
@@ -35,8 +36,9 @@ class Fluent::BoundioOutput < Fluent::Output
|
|
35
36
|
https.use_ssl = true
|
36
37
|
cast = "file_d(#{message}, #{@voice_type})"
|
37
38
|
query = 'key=' + @api_key + '&tel_to=' + number + '&cast=' + cast
|
38
|
-
|
39
|
-
|
39
|
+
path = @developer_tool ? '/api/vd2/' : '/api/v2/'
|
40
|
+
response = https.post(path + @user_serial_id + '/call', URI.escape(query))
|
41
|
+
$log.info "boundio makeing a call: #{path} #{message} "
|
40
42
|
$log.info "boundio call result: #{response.body}"
|
41
43
|
rescue => e
|
42
44
|
$log.error("Boundio Error: #{e.message}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-boundio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
16
|
-
requirement: &
|
16
|
+
requirement: &11291020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *11291020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fluentd
|
27
|
-
requirement: &
|
27
|
+
requirement: &11290580 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *11290580
|
36
36
|
description:
|
37
37
|
email:
|
38
38
|
- y.ken.studio@gmail.com
|
@@ -72,7 +72,7 @@ rubyforge_project:
|
|
72
72
|
rubygems_version: 1.8.11
|
73
73
|
signing_key:
|
74
74
|
specification_version: 3
|
75
|
-
summary:
|
75
|
+
summary: Fluentd Output plugin to make a call with boundio by KDDI. This Multilingual
|
76
76
|
speech synthesis system uses VoiceText.
|
77
77
|
test_files:
|
78
78
|
- test/helper.rb
|