设置石墨时,我不小心将保留时间设置为1800天而不是180天.
'10s:6h,10min:1800d'
Run Code Online (Sandbox Code Playgroud)
根据我的理解,现在更改保留不会清理旧数据.我不确定如何在不破坏我们拥有的所有数据并启动agin的情况下进行此操作.
我已配置Graphite来监控我的应用程序指标.我配置Zabbix来监控我的服务器CPU和其他指标.现在我想将一些关键的Graphite指标传递给Zabbix,为它们添加触发器.
所以我想做点什么
$ whisper get prefix1.prefix2.metricName
> 155
Run Code Online (Sandbox Code Playgroud)
可能吗?
PS我知道Graphite-API项目,我不想安装额外的应用程序.
我正在尝试设置信号协议。有人可以帮我解决这个问题。https://github.com/WhisperSystems/libsignal-protocol-javascript
他们提供了以下代码以在安装时使用(即用于安装)。我无法完成此代码。我现在想将密钥存储在浏览器本身中。
var KeyHelper = libsignal.KeyHelper;
var registrationId = KeyHelper.generateRegistrationId();
// Store registrationId somewhere durable and safe.
KeyHelper.generateIdentityKeyPair().then(function(identityKeyPair) {
// keyPair -> { pubKey: ArrayBuffer, privKey: ArrayBuffer }
// Store identityKeyPair somewhere durable and safe.
});
KeyHelper.generatePreKey(keyId).then(function(preKey) {
store.storePreKey(preKey.keyId, preKey.keyPair);
});
KeyHelper.generateSignedPreKey(identityKeyPair, keyId).then(function(signedPreKey) {
store.storeSignedPreKey(signedPreKey.keyId, signedPreKey.keyPair);
});
// Register preKeys and signedPreKey with the server
Run Code Online (Sandbox Code Playgroud) 我正在运行 Echo 服务器和 Beyondcode (Pusher)。状态通道运行良好,我为其构建的消息传递也有效。现在我正在尝试让耳语也适用于打字状态,但没有运气。
发送悄悄话:
let channel = Echo.join('chat')
setTimeout( () => {
channel.whisper('typing', {
user: Laravel.user.id,
typing: true
})
}, 300)
Run Code Online (Sandbox Code Playgroud)
听耳语:
Echo.join('chat')
.listenForWhisper('typing', (e) => {
console.log(e)
});
Run Code Online (Sandbox Code Playgroud)
在我的回显服务器日志中,当我输入消息时:
testapp: connection id 332742863.966987392 received message:
{
"event":"client-typing",
"data":{
"user":2,
"typing":true
},
"channel":"presence-chat"
}
Run Code Online (Sandbox Code Playgroud)
广播频道(routes/channels.php)
Broadcast::channel('chat', function ($user) {
return [
'id' => $user->id,
'name' => $user->name
];
});
Run Code Online (Sandbox Code Playgroud)
连接 ID 332742863.966987392 是第二个用户(不是我输入消息的那个用户)。
但浏览器控制台中什么也没有出现。
我正在探索 Whisper API 的功能,想知道它是否可以用于生成带有转录的 .SRT 文件。据我了解,使用 Whisper 包在本地运行模型时可以实现对 .SRT 的转录。不幸的是,我不具备在本地运行模型的计算资源,因此我倾向于直接使用 API。
有没有人有这方面的经验或者可以提供有关如何通过 API 处理它的指导?
import os
import openai
openai.api_key = API_KEY
audio_file = open("audio.mp3", "rb")
transcript = openai.Audio.transcribe("whisper-1", audio_file)
print(transcript.text)
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用whisper-merge来合并2个wsp
文件.它们具有相同的保留策略,一个只有比另一个更旧的数据.
当我跑步时,whisper-merge oldfile.wsp newfile.wsp
我得到这个错误
Traceback (most recent call last):
File "/usr/local/src/whisper-0.9.12/bin/whisper-merge.py", line 32, in <module>
whisper.merge(path_from, path_to)
File "/usr/local/lib/python2.7/dist-packages/whisper.py", line 821, in merge
(timeInfo, values) = fetch(path_from, fromTime, untilTime)
TypeError: 'NoneType' object is not iterable
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
这是2个文件的元数据输出:
我正在运行 echo 服务器和 redis。私人频道完美运行,我为它构建的消息传递也有效。现在我试图让耳语也适用于打字状态,但没有运气。耳语是否需要推动器才能工作?
我在 keyup (jquery) 上的尝试
Echo.private(chat- + userid)
.whisper('typing',{e: 'i am is typing...'});
console.log('key up'); // this one works so the keyup is triggered
Run Code Online (Sandbox Code Playgroud)
那么我当然是在听我正在耳语的频道:
Echo.private(chat- + userid).listenForWhisper('typing', (e) => {
console.log(e + ' this is typing');
});
Run Code Online (Sandbox Code Playgroud)
但我在任何地方都一无所获。(在回显服务器上调试,控制台上没有任何内容)任何有关如何使其工作的帮助将不胜感激。
whisper ×7
graphite ×3
echo ×2
laravel ×2
api ×1
console ×1
javascript ×1
openai-api ×1
python ×1