背景 本文旨在记录解决问题的办法及思路。 需求是识别视频中的话语转为文字,此服务是调用的百度的websocket服务,其要求是: 发送一个text类型的帧,用于登录。 后续发送binary类型的音频数据。 开发语言:Golang websocket库:github.com/gorilla/webso ...
分类:
Web程序 时间:
2021-01-01 12:59:25
阅读次数:
0
MongoDB(四):MongoDB连接和创建数据库 本篇文章中将讲解如何使用MongoDB操作文档。 文档的数据结构和JSON基本一致,所有存储在集合中的数据都是BSON格式。BSON是一种类似json格式的一种二进制形式的存储格式,简称Binary JSON。 一、插入文档 MongoDB使用i ...
分类:
数据库 时间:
2021-01-01 11:40:13
阅读次数:
0
递归实现 template<typename T> int binary_search(T arr[], int len, int left, int right, int find) { // 必要参数检查 if (NULL == arr || nullptr == arr || 0 > left ...
分类:
编程语言 时间:
2020-12-29 11:31:49
阅读次数:
0
在用vue-router 做单页应用的时候重复点击一个跳转的路由会出现报错 这个报错是重复路由引起的只需在注册路由组建后使用下方重写路由就可以 解决办法: const originalReplace = Router.prototype.replace; Router.prototype.repla ...
分类:
其他好文 时间:
2020-12-28 11:42:02
阅读次数:
0
随着单块磁盘在数据安全、性能、容量上呈现出的局限,磁盘阵列(Redundant Arrays of Inexpensive/Independent Disks,RAID)出现了,RAID把多块独立的磁盘按不同的方式组合起来,形成一个磁盘组,以获得比单块磁盘更高的数据安全、性能、容量。 一. 常见的R ...
分类:
系统相关 时间:
2020-12-28 11:07:12
阅读次数:
0
从上到下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印。 例如: 给定二叉树: [3,9,20,null,null,15,7], 返回: [3,9,20,15,7] 提示: 节点总数 ? 1000 BFS /** * Definition for a binary tree node. ...
分类:
其他好文 时间:
2020-12-24 11:52:04
阅读次数:
0
PPM文件介绍 PPM(Portable PixMap)是portable像素图片,是有netpbm项目定义的一系列的portable图片格式中的一个。这些图片格式都相对比较容易处理,跟平台无关,所以称之为portable,简单理解,就是比较直接的图片格式,比如PPM,其实就是把每一个点的RGB分别 ...
分类:
其他好文 时间:
2020-12-24 11:47:03
阅读次数:
0
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ ...
分类:
其他好文 时间:
2020-12-23 11:52:45
阅读次数:
0
浏览器报错内容: vue-router.esm.js?8c4f:2008 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/order". 解决方法一: // ...
分类:
其他好文 时间:
2020-12-22 11:59:20
阅读次数:
0
Smallest Subtree with all the Deepest Nodes (M) 题目 Given the root of a binary tree, the depth of each node is the shortest distance to the root. Retur ...
分类:
其他好文 时间:
2020-12-17 12:55:47
阅读次数:
3