noyes 1.0.0 → 1.0.1
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/COPYING +4 -18
- data/VERSION +1 -1
- data/lib/common/send_incrementally.rb +6 -7
- data/lib/ruby_impl/compression.rb +5 -0
- data/lib/ruby_impl/mfcc.rb +27 -0
- metadata +32 -10
- data/ship/noyes.jar +0 -0
data/COPYING
CHANGED
@@ -1,21 +1,7 @@
|
|
1
1
|
Copyright 2010 Talkhouse. All rights reserved.
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
Noyes is licensed under GPLv3. You can obtain a copy here:
|
4
|
+
http://www.gnu.org/licenses/gpl.html
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list
|
10
|
-
of conditions and the following disclaimer in the documentation and/or other materials
|
11
|
-
provided with the distribution.
|
12
|
-
|
13
|
-
THIS SOFTWARE IS PROVIDED BY TALKHOUSE ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
14
|
-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TALKHOUSE OR
|
16
|
-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
18
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
19
|
-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
20
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
21
|
-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
6
|
+
If for any reason this license is not adequate for your purposes please contact
|
7
|
+
talkhouse. We're very open minded.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -19,13 +19,12 @@ require 'common/file2pcm'
|
|
19
19
|
# Takes a file and two IO-like objects.
|
20
20
|
def send_incremental_features file, to_server, from_server, bits, freq
|
21
21
|
stats = {}
|
22
|
-
nfilt =
|
23
|
-
min_freq =
|
24
|
-
max_freq =
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
frame_size = 205 * freq_adjustment
|
22
|
+
nfilt = 40
|
23
|
+
min_freq = 133.33334
|
24
|
+
max_freq = 6855.4976
|
25
|
+
nfft = 512
|
26
|
+
shift = 160
|
27
|
+
frame_size = 410
|
29
28
|
preemphasizer = Preemphasizer.new 0.97
|
30
29
|
segmenter = Segmenter.new frame_size, shift
|
31
30
|
hamming_windower = HammingWindow.new frame_size
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Complete implementation of an mfcc filter.
|
2
|
+
class Mfcc
|
3
|
+
def inititialize nfilt = 40, min_freq = 133.33334, max_freq = 6855.4976,
|
4
|
+
nfft = 512, shift = 160, frame_size = 410
|
5
|
+
|
6
|
+
@preemphasizer = Preemphasizer.new 0.97
|
7
|
+
@segmenter = Segmenter.new frame_size, shift
|
8
|
+
@hamming_windower = HammingWindow.new frame_size
|
9
|
+
@power_spectrum_filter = PowerSpectrumFilter.new nfft
|
10
|
+
@mel_filter = MelFilter.new freq, nfft, nfilt, min_freq, max_freq
|
11
|
+
@compressor = LogCompressor.new
|
12
|
+
@discrete_cosine_transform = DCT.new 13, nfilt
|
13
|
+
@live_cmn = LiveCMN.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def << data
|
17
|
+
data >>= preemphasizer
|
18
|
+
data >>= segmenter
|
19
|
+
next unless data
|
20
|
+
data >>= hamming_windower
|
21
|
+
data >>= power_spectrum_filter
|
22
|
+
data >>= mel_filter
|
23
|
+
data >>= compressor
|
24
|
+
data >>= discrete_cosine_transform
|
25
|
+
live_cmn << data
|
26
|
+
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noyes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Joe Woelfel
|
@@ -9,19 +15,25 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-09-01 00:00:00 -04:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: trollop
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 23
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
- 0
|
23
34
|
version: 1.0.0
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
description: |-
|
26
38
|
A fast portable signal processing library sufficient for creating features for
|
27
39
|
speech recognition, etc.
|
@@ -106,13 +118,17 @@ files:
|
|
106
118
|
- lib/ruby_impl/live_cmn.rb
|
107
119
|
- lib/ruby_impl/log_compress.rb
|
108
120
|
- lib/ruby_impl/mel_filter.rb
|
121
|
+
- lib/ruby_impl/mfcc.rb
|
109
122
|
- lib/ruby_impl/power_spec.rb
|
110
123
|
- lib/ruby_impl/preemphasis.rb
|
111
124
|
- lib/ruby_impl/segment.rb
|
112
125
|
- lib/ruby_impl/speech_trimmer.rb
|
113
|
-
- ship/noyes.jar
|
114
126
|
- COPYING
|
115
127
|
- FAQ
|
128
|
+
- bin/mock_noyes_server
|
129
|
+
- bin/noyes_dump44k
|
130
|
+
- bin/noyes_dump8k
|
131
|
+
- bin/nrec
|
116
132
|
has_rdoc: true
|
117
133
|
homepage: http://github.com/talkhouse/noyes
|
118
134
|
licenses: []
|
@@ -124,21 +140,27 @@ require_paths:
|
|
124
140
|
- lib
|
125
141
|
- ship
|
126
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
127
144
|
requirements:
|
128
145
|
- - ">="
|
129
146
|
- !ruby/object:Gem::Version
|
147
|
+
hash: 3
|
148
|
+
segments:
|
149
|
+
- 0
|
130
150
|
version: "0"
|
131
|
-
version:
|
132
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
none: false
|
133
153
|
requirements:
|
134
154
|
- - ">="
|
135
155
|
- !ruby/object:Gem::Version
|
156
|
+
hash: 3
|
157
|
+
segments:
|
158
|
+
- 0
|
136
159
|
version: "0"
|
137
|
-
version:
|
138
160
|
requirements: []
|
139
161
|
|
140
162
|
rubyforge_project:
|
141
|
-
rubygems_version: 1.3.
|
163
|
+
rubygems_version: 1.3.7
|
142
164
|
signing_key:
|
143
165
|
specification_version: 3
|
144
166
|
summary: A signal processing library
|
data/ship/noyes.jar
DELETED
Binary file
|