我\xc2\xb4m 在 GitLab 中设置了我的 Maven 项目的 CI,我需要在将 jar 发布到 Maven 中心之前对其进行签名。(https://gitlab.com/awe-team/ade)
\n我使用 gnuPgp 生成密钥对,并将公钥添加到我的 GitLab 配置文件中。
\n我有 GitLab-ci 工作文件夹的私钥副本吗?
\n得到的错误是找不到密钥。
\n[DEBUG] Configuring mojo \'org.apache.maven.plugins:maven-gpg-plugin:1.5:sign\' \n with basic configurator -->\n [DEBUG] (f) ascDirectory = /builds/awe-team/ade/target/gpg\n [DEBUG] (f) defaultKeyring = true\n [DEBUG] (f) interactive = false\n [DEBUG] (f) passphrase = *******\n [DEBUG] (f) skip = false\n [DEBUG] (f) useAgent = true\n [DEBUG] (f) project = MavenProject: com.almis.ade:ade:2.0.5 @ /builds/awe- team/ade/pom.xml\n [DEBUG] -- end configuration --\n [DEBUG] …Run Code Online (Sandbox Code Playgroud) 所以我有一个 Electron 应用程序,它使用网络语音 API(SpeechRecognition)来获取用户的声音,但是它不起作用。代码:
if ("webkitSpeechRecognition" in window) {
let SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
let recognition = new SpeechRecognition();
recognition.onstart = () => {
console.log("We are listening. Try speaking into the microphone.");
};
recognition.onspeechend = () => {
recognition.stop();
};
recognition.onresult = (event) => {
let transcript = event.results[0][0].transcript;
console.log(transcript);
};
recognition.start();
} else {
alert("Browser not supported.")
}
Run Code Online (Sandbox Code Playgroud)
它在控制台中显示We are listening...,但无论你说什么,它都不会给出输出。另一方面,在 Google Chrome 中运行完全相同的东西是可行的,无论我说什么都会让控制台与该console.log(transcript);部分一起注销。我做了一些更多的研究,结果发现 Google 最近停止了对基于 shell 的 Chromium Windows 中的 Web Speech API …