whispercpp 1.2.0.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (9) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -19
  3. data/ext/extconf.rb +9 -0
  4. data/ext/ggml.c +18380 -5241
  5. data/ext/ggml.h +2156 -502
  6. data/ext/ruby_whisper.cpp +2 -2
  7. data/ext/whisper.cpp +4184 -1774
  8. data/ext/whisper.h +348 -56
  9. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc32803382297d2edfd5a2517cb3734f394fc95f7ba5b9111af8c2206ead53ca
4
- data.tar.gz: e6e8afcad840c465faed0cba6485ef86204e12895461a683b6d3ebc73703bb29
3
+ metadata.gz: 3256e0c1878af91c88bf7ede04b6e422d877ea45ff84a2f6b9a253863f690b69
4
+ data.tar.gz: 662248bb96253e6baff760cc10842f9b31f7867f22ff2b584354aa321f9ffc36
5
5
  SHA512:
6
- metadata.gz: e3a3f74e16dc7fe4e34a64ee63742a9dd12bcdbe9dd3a5ded1b860babe654eeb04aba8a36cd889c1d8231e910739159a799c0e6928f82831a1e7d9b20105cd50
7
- data.tar.gz: 9909de651ac6b8c6e1190b90a65388f84e9a8a5dd72a335853eca850286c6f819871e63b05b23f9c080123f6aabcc4a2bad77affc26e5fc4fe1f174fee555040
6
+ metadata.gz: 45f6779035eaa2cdd58dd1c7800ec0643d577e2f16e1e2c0ab6714b7a9c30ff1acc686f13878044a9835945563d3b06d19059f3343f1359663b11075ec55b5a0
7
+ data.tar.gz: 89bfbf168334ec60357a37d53fbd887f39faa73e42c677734adfa8adca3a4f374b0de28ef9a63cec327474b78ad0bd321b1e6a5a6b21a6fbd9eb51d4a82b0270
data/Rakefile CHANGED
@@ -1,26 +1,11 @@
1
- require 'erb'
1
+ require 'rake/clean'
2
2
  require 'rubygems/package'
3
3
 
4
- BUILD_VERSION=1
5
- # Determine the current version of the software
6
- if File.read('../../CMakeLists.txt') =~ /project.*\s*VERSION\s*(\d.+)\)/
7
- CURRENT_VERSION = "#{$1}.#{BUILD_VERSION}"
8
- else
9
- CURRENT_VERSION = "0.0.0.#{BUILD_VERSION}"
10
- end
11
-
12
- desc 'Generate gem specification'
13
- task :gemspec do
14
- system("cp ../../LICENSE .")
15
- system("cp ../../README.md .")
16
- tspec = ERB.new(File.read(File.join(File.dirname(__FILE__),'lib','whispercpp.gemspec.erb')))
17
- File.open(File.join(File.dirname(__FILE__),'whispercpp.gemspec'),'wb') do|f|
18
- f << tspec.result
19
- end
20
- end
4
+ # default package task
5
+ task :default => [:package]
21
6
 
22
7
  desc 'Build gem'
23
- task :package => :gemspec do
8
+ task :package do
24
9
  spec_source = File.read File.join(File.dirname(__FILE__),'whispercpp.gemspec')
25
10
  spec = nil
26
11
  # see: http://gist.github.com/16215
data/ext/extconf.rb CHANGED
@@ -3,6 +3,15 @@ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','whisper.cpp')} .")
3
3
  system("cp #{File.join(File.dirname(__FILE__),'..','..','..','whisper.h')} .")
4
4
  system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml.h')} .")
5
5
  system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml.c')} .")
6
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-impl.h')} .")
7
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-alloc.h')} .")
8
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-alloc.c')} .")
9
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-backend-impl.h')} .")
10
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-backend.h')} .")
11
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-backend.c')} .")
12
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-common.h')} .")
13
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-quants.h')} .")
14
+ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-quants.c')} .")
6
15
  system("cp #{File.join(File.dirname(__FILE__),'..','..','..','examples','dr_wav.h')} .")
7
16
 
8
17