voxbi 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/paires.wav +0 -0
- data/lib/special_chars.rb +1 -1
- data/lib/voxbi.rb +10 -1
- data/voxbi.gemspec +3 -2
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f013ef224b3f1fa1b6058eebc1dbac0053ebd63
|
4
|
+
data.tar.gz: ea71f4daedb99ef15554a9040ca1be0a4436b48f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b88c3be1422cec7f5ad0fa94614dea0ea0c78b7d191ebe19e368709aa4e18e4a668351b2da222732777b21b77a080ac9a936b442e9148cceb78739b683bce0f
|
7
|
+
data.tar.gz: 8b2da489898d2cc90c74a434c605bce134fa46a5ee1dbd1012eb14d1b8ce0279455a1c127c2b1b44b255f0047e864e5e871ff60c63c8daaf5ece9d4026e31715
|
data/data/paires.wav
CHANGED
Binary file
|
data/lib/special_chars.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
SPE = /([
|
1
|
+
SPE = /([•|—|–|\-|\’|,|?|!|^|\r|°|“|”|...|\u00a0|«|»|…|\\|\/|!|?|\"|\'|\[|\]|\(|\)|\]|<|>|=|+|%|$|&|#|;|*|:|}|{|`])/
|
data/lib/voxbi.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "json"
|
4
|
+
require "numbers_and_words"
|
4
5
|
|
5
6
|
module Voxbi
|
6
7
|
|
@@ -41,7 +42,15 @@ module Voxbi
|
|
41
42
|
end
|
42
43
|
|
43
44
|
def Voxbi.clean(texte)
|
44
|
-
|
45
|
+
new_text = texte.downcase.gsub(SPE, "").split
|
46
|
+
new_text.map! do |word|
|
47
|
+
if word.to_i != 0
|
48
|
+
I18n.with_locale(:fr) { word.to_i.to_words.gsub("-"," ").split}
|
49
|
+
else
|
50
|
+
word
|
51
|
+
end
|
52
|
+
end
|
53
|
+
return new_text.flatten
|
45
54
|
end
|
46
55
|
|
47
56
|
def Voxbi.apimatch(texte)
|
data/voxbi.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'voxbi'
|
3
|
-
s.version = '0.
|
4
|
-
s.date = '2013-09-
|
3
|
+
s.version = '0.3.0'
|
4
|
+
s.date = '2013-09-22'
|
5
5
|
s.summary = "VoxBi"
|
6
6
|
s.description = "Easy-to-use french voice synthesizer"
|
7
7
|
s.authors = ["Galaad Gauthier"]
|
@@ -13,4 +13,5 @@ Gem::Specification.new do |s|
|
|
13
13
|
'https://github.com/Galaad-Gauthier/VoxBi'
|
14
14
|
s.license = 'MIT'
|
15
15
|
s.add_dependency "json"
|
16
|
+
s.add_dependency "numbers_and_words"
|
16
17
|
end
|
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.
|
4
|
+
version: 0.3.0
|
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-
|
11
|
+
date: 2013-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: numbers_and_words
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: Easy-to-use french voice synthesizer
|
28
42
|
email: coontail7@gmail.com
|
29
43
|
executables:
|