noyes 1.1.1 → 1.1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
data/bin/nrec CHANGED
@@ -10,7 +10,7 @@ options = Trollop::options do
10
10
  version "Noyes #{IO.read(VERSION_FILE).strip} (c) 2010 Talkhouse"
11
11
  banner 'Usage: nrec [options] file1 file2 ...'
12
12
  opt :implementation, "ruby, c, or java", :default => 'ruby'
13
- opt :address, "address", :default => '174.129.244.159'
13
+ opt :address, "address", :default => 'localhost'
14
14
  opt :file, "Output file (overrides default TCP/IP)", :type => :string
15
15
  opt :port, "port", :default => 2348
16
16
  opt :bits, "bit depth", :default => 16
@@ -133,8 +133,8 @@ ARGV.each do |file|
133
133
  puts "recognizing file #{file}" if options[:verbose]
134
134
  result = recognize file, options
135
135
  if options[:verbose]
136
- puts "\n#{result}"
136
+ puts "#{result.inspect}"
137
137
  else
138
- puts "\n#{result[:transcript]}"
138
+ puts "#{result[:transcript]}"
139
139
  end
140
140
  end
@@ -61,7 +61,10 @@ def send_incremental_features file, to_server, from_server, bits, freqinfo
61
61
  to_server.write TBYE
62
62
  to_server.flush
63
63
  latency_start = Time.new
64
- stats[:transcript] = from_server ? from_server.read : ""
64
+ if from_server
65
+ size = from_server.recv(4).unpack('N')[0]
66
+ stats[:transcript] = from_server.recv size
67
+ end
65
68
  stats[:latency] = Time.new - latency_start
66
69
  stats
67
70
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: noyes
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.1
5
+ version: 1.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Joe Woelfel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-13 00:00:00 -05:00
13
+ date: 2012-02-08 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency