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.
- checksums.yaml +4 -4
- data/Rakefile +4 -19
- data/ext/extconf.rb +9 -0
- data/ext/ggml.c +18380 -5241
- data/ext/ggml.h +2156 -502
- data/ext/ruby_whisper.cpp +2 -2
- data/ext/whisper.cpp +4184 -1774
- data/ext/whisper.h +348 -56
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3256e0c1878af91c88bf7ede04b6e422d877ea45ff84a2f6b9a253863f690b69
|
4
|
+
data.tar.gz: 662248bb96253e6baff760cc10842f9b31f7867f22ff2b584354aa321f9ffc36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45f6779035eaa2cdd58dd1c7800ec0643d577e2f16e1e2c0ab6714b7a9c30ff1acc686f13878044a9835945563d3b06d19059f3343f1359663b11075ec55b5a0
|
7
|
+
data.tar.gz: 89bfbf168334ec60357a37d53fbd887f39faa73e42c677734adfa8adca3a4f374b0de28ef9a63cec327474b78ad0bd321b1e6a5a6b21a6fbd9eb51d4a82b0270
|
data/Rakefile
CHANGED
@@ -1,26 +1,11 @@
|
|
1
|
-
require '
|
1
|
+
require 'rake/clean'
|
2
2
|
require 'rubygems/package'
|
3
3
|
|
4
|
-
|
5
|
-
|
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
|
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
|
|