我最近买了一台新的 Macbook Pro,正在尝试设置 Android Studio。我已经安装了 Java 8、Dart、Flutter 和 Android Studio,当我尝试运行创建新项目时提供的基本代码时,我在终端中重复了以下内容:
F/bt_stack(20411): [FATAL:client.cc(3938)] Assert failed: std::move(hal_2_1_verifier).Run(). Initialize, LE Audio Client requires Bluetooth Audio HAL V2.1 at least. Either disable LE Audio Profile, or update your HAL
F/bt_stack(20411): #00 0x00000070b5806113 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bbb113
F/bt_stack(20411): #01 0x00000070b50889fb /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x000000000043d9fb
F/bt_stack(20411): #02 0x00000070b5137307 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x00000000004ec307
F/bt_stack(20411): #03 0x00000070b580ec37 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc3c37
F/bt_stack(20411): #04 0x00000070b580df3f /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc2f3f
F/bt_stack(20411): #05 0x00000070b580e303 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc3303
F/bt_stack(20411): #06 0x00000070b581134f /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bc634f
F/bt_stack(20411): #07 0x00000070b5838783 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000bed783
F/bt_stack(20411): #08 0x00000070b52bd483 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000672483
F/bt_stack(20411): #09 0x00000070b52bce97 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x0000000000671e97
F/bt_stack(20411): #10 0x00000070b52bd9b7 /apex/com.android.btservices/lib64/libbluetooth_jni.so+0x00000000006729b7
F/bt_stack(20411): …Run Code Online (Sandbox Code Playgroud) 我遇到了这个问题中遇到的问题:无效的选项对象。开发服务器已使用与 API 架构不匹配的选项对象进行初始化
解决方案之一是将反应脚本降级到 4.0.3,我不知道该怎么做。有人可以帮助我吗?
所以这个程序的目标基本上是在终端(通过argv[])中获取一个 26 个字母的“键”,并使用它的索引作为替代指南。因此,您在终端中输入了 2 个输入,一个在 the 中argv[],一个只是普通get_string()输入。该argv[]输入将是这样的:./s YTNSHKVEFXRBAUQZCLWDMIPGJO这里s是文件名。然后get_string()输入如下所示:plaintext: HELLO。(输入是HELLO)。然后程序将循环遍历纯文本输入中的所有字母,并根据键的索引替换其字母索引argv[]。例如,H有一个按字母顺序排列的索引7(其中a= 0 和z= 25),因此我们查看键中的第 7 个索引YTNSHKV(E)FXRBAUQZCLWDMIPGJO,在本例中为E. 它对输入中的每个字母执行此操作,我们将得到输出ciphertext: EHBBQ。这是它在终端中的样子:
./s YTNSHKVEFXRBAUQZCLWDMIPGJO
plaintext: HELLO
ciphertext: EHBBQ
Run Code Online (Sandbox Code Playgroud)
但是我的输出是EHBB,因为当我使用toupper().
而且,大小写取决于明文输入,如果明文输入是hello, world,argv[]键是YTNSHKVEFXRBAUQZCLWDMIPGJO,则输出是jrssb, ybwsp,如果输入HellO, world具有相同的键,则输出是JrssB, ybwsp。
我基本上已经解决了这个问题,我的程序根据通过命令行输入的密钥将给出的明文替换为正确的密文。现在,假设明文输入是HELLO …
我正在尝试在我的 next.js 网站中实现语音识别。我下载并尝试使用此链接中的相同代码,但出现此错误:
ReferenceError: regeneratorRuntime is not defined
at C:\Users\simer\Downloads\Talkhappi\client\node_modules\react-speech-recognition\lib\RecognitionManager.js:247:61
at C:\Users\simer\Downloads\Talkhappi\client\node_modules\react-speech-recognition\lib\RecognitionManager.js:332:6
at Object.<anonymous> (C:\Users\simer\Downloads\Talkhappi\client\node_modules\react-speech-recognition\lib\RecognitionManager.js:452:2)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (C:\Users\simer\Downloads\Talkhappi\client\node_modules\react-speech-recognition\lib\SpeechRecognition.js:16:50)
Run Code Online (Sandbox Code Playgroud)
我不确定为什么会发生这种情况,因为我按照上面链接的 npm 下载网站的说明进行操作。这是我的代码:
import SpeechRecognition, { useSpeechRecognition } from 'react-speech-recognition'
const Product = () => {
const {
transcript,
listening,
resetTranscript,
browserSupportsSpeechRecognition
} = useSpeechRecognition();
// Handle browser support error
if (!browserSupportsSpeechRecognition) {
return <span>Browser doesn't support speech recognition.</span>;
}
return ( …Run Code Online (Sandbox Code Playgroud)