voxbi 0.2.3 → 0.2.4

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: c2c867eb29f361e869e15825cc3e6749de2ffc3e
4
- data.tar.gz: b3757442ed64298f197c842163534371378e88fd
3
+ metadata.gz: a926da0bfeb11a4b04105d1aeb37effba040d74f
4
+ data.tar.gz: 03d718f37de101ab0bc84504f8e63f08d5ee7fb9
5
5
  SHA512:
6
- metadata.gz: fa062d4b43a2da029c439e991de8b14e1feab5c2d7799d8d7f1fa7e72f89b5671553197c54fc8fd09672ebe49c6cbea1a02dffafac482cae8286042180961667
7
- data.tar.gz: 35b2d04044bab18ff19e3a3b3f03c1ce9cdfef62dd9e2794ea108d46e92ec0cf13004684803fbe5679d24dec87344747582462273d81d7d6e439f0ee7f73e1e5
6
+ metadata.gz: 2a837c1c9672ceacfac2498d7828ca946ab4b59d9590e2b8ff7f6a3bfe2536ed8f0a9683835379543613041f61e594e560318838c6834d2b7c2909ee61dbab50
7
+ data.tar.gz: 12400857f8925e0cfc7ca7465d56c4f7d98664e008455ada7eb31cb14c2c9fe4cbba1f3056288df6ab03aec24556085b5392d10d2ca2b0a79436bde6b3db9bfa
data/data/paires/_.ogg CHANGED
Binary file
data/data/paires.wav CHANGED
Binary file
data/lib/voxbi.rb CHANGED
@@ -5,7 +5,7 @@ require "json"
5
5
  module Voxbi
6
6
 
7
7
  ROOT = File.expand_path("../..", __FILE__)
8
- FILE_PATH = "#{ROOT}/data/paires.wav"
8
+ @output_path = "#{ROOT}/data/paires.wav"
9
9
  eval(File.read("#{ROOT}/lib/special_chars.rb"))
10
10
 
11
11
  def Voxbi.parseCSV(path)
@@ -28,6 +28,14 @@ module Voxbi
28
28
  @liaisons ||= parseCSV "liaisons"
29
29
  end
30
30
 
31
+ def Voxbi.set_output_path(p)
32
+ @output_path = p
33
+ end
34
+
35
+ def Voxbi.output_path
36
+ @output_path
37
+ end
38
+
31
39
  def Voxbi.apply_exceptions
32
40
  exceptions.each {|k,v| dict[k] = v}
33
41
  end
@@ -78,8 +86,8 @@ module Voxbi
78
86
  end
79
87
  end
80
88
  end
81
- `sox #{fichiers.join(" ")} #{FILE_PATH}`
82
- `aplay #{FILE_PATH}`
89
+ `sox #{fichiers.join(" ")} #{output_path}`
90
+ `aplay #{output_path}`
83
91
  end
84
92
 
85
93
 
data/voxbi.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'voxbi'
3
- s.version = '0.2.3'
4
- s.date = '2013-09-04'
3
+ s.version = '0.2.4'
4
+ s.date = '2013-09-06'
5
5
  s.summary = "VoxBi"
6
6
  s.description = "Easy-to-use french voice synthesizer"
7
7
  s.authors = ["Galaad Gauthier"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voxbi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Galaad Gauthier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-04 00:00:00.000000000 Z
11
+ date: 2013-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -288,7 +288,6 @@ files:
288
288
  - data/phono.json
289
289
  - data/exceptions.csv
290
290
  - data/liaisons.csv
291
- - phono.json
292
291
  - bin/voxbi
293
292
  - README.md
294
293
  homepage: https://github.com/Galaad-Gauthier/VoxBi