pwn 0.4.593 → 0.4.594
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/pwn/plugins/baresip.rb +2 -1
- data/lib/pwn/reports/phone.rb +4 -1
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cfc053d353412455c93c770778efc32bfa380ae6195b6348df0d56df7aa4cff5
|
|
4
|
+
data.tar.gz: 8e27c50be3eff1361910a0c6ae0adf0450e38ecb5d6f5e0a8d43337693be8c96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a34bf8a6c626ffe1b1e58d4218537c5edd5dd6411d56a96b34603665efb9c4d37e4bc186bfd3f869692f66d130308c10008ab04bebf1f3febcf0ba8cfc3eaf4
|
|
7
|
+
data.tar.gz: 3bcb3696aa634689cba1fa6b9aabb6f210d41c4184daa866be286d2c176fdf4cc7717510038079109b014929d159f1d5c224e02b9a66e020cc69c605d8f2af17
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.3@pwn
|
|
|
37
37
|
$ rvm list gemsets
|
|
38
38
|
$ gem install --verbose pwn
|
|
39
39
|
$ pwn
|
|
40
|
-
pwn[v0.4.
|
|
40
|
+
pwn[v0.4.594]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.1.3@pwn
|
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
|
53
53
|
$ gem install --verbose pwn
|
|
54
54
|
$ pwn
|
|
55
|
-
pwn[v0.4.
|
|
55
|
+
pwn[v0.4.594]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
data/lib/pwn/plugins/baresip.rb
CHANGED
|
@@ -573,13 +573,14 @@ module PWN
|
|
|
573
573
|
call_resp_hash[:speech_to_text] = 'N/A'
|
|
574
574
|
if speech_to_text
|
|
575
575
|
absolute_speech_to_text = "#{absolute_recording}.txt"
|
|
576
|
+
relative_speech_to_text = "#{relative_recording}.txt"
|
|
576
577
|
PWN::Plugins::OpenAI.speech_to_text(
|
|
577
578
|
audio_file_path: absolute_recording,
|
|
578
579
|
output_dir: target_num_root
|
|
579
580
|
)
|
|
580
581
|
print "Generating Speech-to-Text for #{absolute_recording}..."
|
|
581
582
|
puts 'complete.'
|
|
582
|
-
call_resp_hash[:speech_to_text] =
|
|
583
|
+
call_resp_hash[:speech_to_text] = relative_speech_to_text
|
|
583
584
|
end
|
|
584
585
|
puts end_of_color
|
|
585
586
|
end
|
data/lib/pwn/reports/phone.rb
CHANGED
|
@@ -222,7 +222,10 @@ module PWN
|
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
"data": "speech_to_text",
|
|
225
|
-
"render":
|
|
225
|
+
"render": function (data, type, row, meta) {
|
|
226
|
+
var speech_to_text = htmlEntityEncode(data);
|
|
227
|
+
return '<a href="' + speech_to_text +'" target="_blank">' + speech_to_text + '</a>';
|
|
228
|
+
}
|
|
226
229
|
},
|
|
227
230
|
{
|
|
228
231
|
"data": "spectrogram",
|
data/lib/pwn/version.rb
CHANGED