其他分享
首页 > 其他分享> > 【语音识别】获得MOOC视频的文本(字幕)

【语音识别】获得MOOC视频的文本(字幕)

作者:互联网

获得MOOC教学视频文本

获得音频

首先从以下地址下载获得视频:http://mooc1vod.stu.126.net/nos/mp4/2016/11/24/1005374032_1241ef3e8a474c9898e1e62f0268ca6c_hd.mp4?ak=7909bff134372bffca53cdc2c17adc27a4c38c6336120510aea1ae1790819de8c3092915cb74e414787263398b5d5a484f5c959cdb6ce7e3c6a3acf758b3c64d3059f726dc7bb86b92adbc3d5b34b132acf7000706a439679744c1c7146151614426afeac364f76a817da3b2623cd41e

这是一个牛顿运动定理简要回顾的视频:
在这里插入图片描述
利用格式工场提出其中的音轨:
在这里插入图片描述

语音识别

腾讯AI开放平台就注册不了:

在这里插入图片描述

在讯飞开放平台注册账号,并新建一个应用:

在这里插入图片描述
可以领取一个5小时免费语音转写的业务:

在这里插入图片描述
以下是官网给的一个demo:

# -*- coding: utf-8 -*-
# 
#   author: yanmeng2
# 
# 非实时转写调用demo

import base64
import hashlib
import hmac
import json
import os
import time

import requests

lfasr_host = 'http://raasr.xfyun.cn/api'

# 请求的接口名
api_prepare = '/prepare'
api_upload = '/upload'
api_merge = '/merge'
api_get_progress = '/getProgress'
api_get_result = '/getResult'
# 文件分片大小10M
file_piece_sice = 10485760

# ——————————————————转写可配置参数————————————————
# 参数可在官网界面(https://doc.xfyun.cn/rest_api/%E8%AF%AD%E9%9F%B3%E8%BD%AC%E5%86%99.html)查看,根据需求可自行在gene_params方法里添加修改
# 转写类型
lfasr_type = 0
# 是否开启分词
has_participle = 'false'
has_seperate = 'true'
# 多候选词个数
max_alternatives = 0
# 子用户标识
suid = ''


class SliceIdGenerator:
    """slice id生成器"""

    def __init__(self):
        self.__ch = 'aaaaaaaaa`'

    def getNextSliceId(self):
        ch = self.__ch
        j = len(ch) - 1
        while j >= 0:
            cj = ch[j]
            if cj != 'z':
                ch = ch[:j] + chr(ord(cj) + 1) + ch[j + 1:]
                break
            else:
                ch = ch[:j] + 'a' + ch[j + 1:]
                j = j - 1
        self.__ch = ch
        return self.__ch


class RequestApi(object):
    def __init__(self, appid, secret_key, upload_file_path):
        self.appid = appid
        self.secret_key = secret_key
        self.upload_file_path = upload_file_path

    # 根据不同的apiname生成不同的参数,本示例中未使用全部参数您可在官网(https://doc.xfyun.cn/rest_api/%E8%AF%AD%E9%9F%B3%E8%BD%AC%E5%86%99.html)查看后选择适合业务场景的进行更换
    def gene_params(self, apiname, taskid=None, slice_id=None):
        appid = self.appid
        secret_key = self.secret_key
        upload_file_path = self.upload_file_path
        ts = str(int(time.time()))
        m2 = hashlib.md5()
        m2.update((appid + ts).encode('utf-8'))
        md5 = m2.hexdigest()
        md5 = bytes(md5, encoding='utf-8')
        # 以secret_key为key, 上面的md5为msg, 使用hashlib.sha1加密结果为signa
        signa = hmac.new(secret_key.encode('utf-8'), md5, hashlib.sha1).digest()
        signa = base64.b64encode(signa)
        signa = str(signa, 'utf-8')
        file_len = os.path.getsize(upload_file_path)
        file_name = os.path.basename(upload_file_path)
        param_dict = {}

        if apiname == api_prepare:
            # slice_num是指分片数量,如果您使用的音频都是较短音频也可以不分片,直接将slice_num指定为1即可
            slice_num = int(file_len / file_piece_sice) + (0 if (file_len % file_piece_sice == 0) else 1)
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['file_len'] = str(file_len)
            param_dict['file_name'] = file_name
            param_dict['slice_num'] = str(slice_num)
        elif apiname == api_upload:
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['task_id'] = taskid
            param_dict['slice_id'] = slice_id
        elif apiname == api_merge:
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['task_id'] = taskid
            param_dict['file_name'] = file_name
        elif apiname == api_get_progress or apiname == api_get_result:
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['task_id'] = taskid
        return param_dict

    # 请求和结果解析,结果中各个字段的含义可参考:https://doc.xfyun.cn/rest_api/%E8%AF%AD%E9%9F%B3%E8%BD%AC%E5%86%99.html
    def gene_request(self, apiname, data, files=None, headers=None):
        response = requests.post(lfasr_host + apiname, data=data, files=files, headers=headers)
        result = json.loads(response.text)
        if result["ok"] == 0:
            print("{} success:".format(apiname) + str(result))
            return result
        else:
            print("{} error:".format(apiname) + str(result))
            exit(0)
            return result

    # 预处理
    def prepare_request(self):
        return self.gene_request(apiname=api_prepare,
                                 data=self.gene_params(api_prepare))

    # 上传
    def upload_request(self, taskid, upload_file_path):
        file_object = open(upload_file_path, 'rb')
        try:
            index = 1
            sig = SliceIdGenerator()
            while True:
                content = file_object.read(file_piece_sice)
                if not content or len(content) == 0:
                    break
                files = {
                    "filename": self.gene_params(api_upload).get("slice_id"),
                    "content": content
                }
                response = self.gene_request(api_upload,
                                             data=self.gene_params(api_upload, taskid=taskid,
                                                                   slice_id=sig.getNextSliceId()),
                                             files=files)
                if response.get('ok') != 0:
                    # 上传分片失败
                    print('upload slice fail, response: ' + str(response))
                    return False
                print('upload slice ' + str(index) + ' success')
                index += 1
        finally:
            'file index:' + str(file_object.tell())
            file_object.close()
        return True

    # 合并
    def merge_request(self, taskid):
        return self.gene_request(api_merge, data=self.gene_params(api_merge, taskid=taskid))

    # 获取进度
    def get_progress_request(self, taskid):
        return self.gene_request(api_get_progress, data=self.gene_params(api_get_progress, taskid=taskid))

    # 获取结果
    def get_result_request(self, taskid):
        return self.gene_request(api_get_result, data=self.gene_params(api_get_result, taskid=taskid))

    def all_api_request(self):
        # 1. 预处理
        pre_result = self.prepare_request()
        taskid = pre_result["data"]
        # 2 . 分片上传
        self.upload_request(taskid=taskid, upload_file_path=self.upload_file_path)
        # 3 . 文件合并
        self.merge_request(taskid=taskid)
        # 4 . 获取任务进度
        while True:
            # 每隔20秒获取一次任务进度
            progress = self.get_progress_request(taskid)
            progress_dic = progress
            if progress_dic['err_no'] != 0 and progress_dic['err_no'] != 26605:
                print('task error: ' + progress_dic['failed'])
                return
            else:
                data = progress_dic['data']
                task_status = json.loads(data)
                if task_status['status'] == 9:
                    print('task ' + taskid + ' finished')
                    break
                print('The task ' + taskid + ' is in processing, task status: ' + str(data))

            # 每次获取进度间隔20S
            time.sleep(20)
        # 5 . 获取结果
        self.get_result_request(taskid=taskid)


# 注意:如果出现requests模块报错:"NoneType" object has no attribute 'read', 请尝试将requests模块更新到2.20.0或以上版本(本demo测试版本为2.20.0)
# 输入讯飞开放平台的appid,secret_key和待转写的文件路径
if __name__ == '__main__':
    api = RequestApi(appid="你的appid", secret_key="你的secret_key", upload_file_path=r"D:/University_Study/Code/牛顿运动定理简要回顾.mp3")
    api.all_api_request()

结果:

/prepare success:{'data': '9482d9d7f8bf45c3a14e1fb7fb132666', 'err_no': 0, 'failed': None, 'ok': 0}
/upload success:{'data': None, 'err_no': 0, 'failed': None, 'ok': 0}
upload slice 1 success
/merge success:{'data': None, 'err_no': 0, 'failed': None, 'ok': 0}
/getProgress success:{'data': '{"status":2,"desc":"音频合并完成"}', 'err_no': 0, 'failed': None, 'ok': 0}
The task 9482d9d7f8bf45c3a14e1fb7fb132666 is in processing, task status: {"status":2,"desc":"音频合并完成"}
/getProgress success:{'data': '{"status":3,"desc":"音频转写中"}', 'err_no': 0, 'failed': None, 'ok': 0}
The task 9482d9d7f8bf45c3a14e1fb7fb132666 is in processing, task status: {"status":3,"desc":"音频转写中"}
/getProgress success:{'data': '{"status":9,"desc":"转写结果上传完成"}', 'err_no': 0, 'failed': None, 'ok': 0}
task 9482d9d7f8bf45c3a14e1fb7fb132666 finished
/getResult success:{'data': '[{"bg":"1020","ed":"1940","onebest":"嗯","speaker":"0"},{"bg":"7270","ed":"8250","onebest":"大家好,","speaker":"0"},{"bg":"8330","ed":"12600","onebest":"这周我们进行牛顿运动定律方面的相关练习,","speaker":"0"},{"bg":"13310","ed":"16050","onebest":"牛顿运动定律是整个力学的基础,","speaker":"0"},{"bg":"16500","ed":"19180","onebest":"这一部分中所用到的研究方法,","speaker":"0"},{"bg":"19180","ed":"21840","onebest":"对于我们学习力学是非常重要的。","speaker":"0"},{"bg":"22110","ed":"25990","onebest":"首先我们对牛顿运动定律做一个简单的回顾,","speaker":"0"},{"bg":"26310","ed":"27640","onebest":"牛顿第一定律,","speaker":"0"},{"bg":"28320","ed":"29530","onebest":"任何物体","speaker":"0"},{"bg":"29530","ed":"31400","onebest":"如果没有力作用在上面,","speaker":"0"},{"bg":"31400","ed":"33550","onebest":"都将保持它原来的速度,","speaker":"0"},{"bg":"33700","ed":"35000","onebest":"原来进不去的","speaker":"0"},{"bg":"35000","ed":"35990","onebest":"依旧禁止。","speaker":"0"},{"bg":"35990","ed":"37360","onebest":"原来运动的","speaker":"0"},{"bg":"37360","ed":"39600","onebest":"将做匀速直线运动。","speaker":"0"},{"bg":"39880","ed":"42860","onebest":"也就是说牛顿第一定律告诉我们,","speaker":"0"},{"bg":"42860","ed":"46490","onebest":"物体的运动状态不需要外力来维持,","speaker":"0"},{"bg":"47080","ed":"53220","onebest":"物体天然就具有维持自己运动状态的这样一种能力或者是属性,","speaker":"0"},{"bg":"53430","ed":"59720","onebest":"这种性质就叫做惯性,因此牛顿第一定律也被称为惯性定律。","speaker":"0"},{"bg":"60560","ed":"62960","onebest":"此外根据牛顿第一定律,","speaker":"0"},{"bg":"62960","ed":"65370","onebest":"我们还可以定义一种参照系,","speaker":"0"},{"bg":"65370","ed":"67030","onebest":"叫做惯性参照系。","speaker":"0"},{"bg":"67200","ed":"71540","onebest":"所谓惯性参照系就是牛顿第一定律成立的参照系,","speaker":"0"},{"bg":"72260","ed":"73820","onebest":"在一个参照系中,","speaker":"0"},{"bg":"73850","ed":"78070","onebest":"牛顿第一定律是否成立,要通过实验的检验。","speaker":"0"},{"bg":"78590","ed":"82430","onebest":"好,那接下来呢我们看牛顿第二定律,","speaker":"0"},{"bg":"82990","ed":"84620","onebest":"牛顿第二定律呢","speaker":"0"},{"bg":"85030","ed":"90880","onebest":"告诉我们,物体一旦受到了外力,它的运动状态就会发生变化,","speaker":"0"},{"bg":"90880","ed":"94970","onebest":"所以外力是改变物体运动状态的原因,","speaker":"0"},{"bg":"94970","ed":"99140","onebest":"并且告诉我们这个物体的运动状态如何变化。","speaker":"0"},{"bg":"100230","ed":"101690","onebest":"它的表述是","speaker":"0"},{"bg":"101950","ed":"103540","onebest":"质点的加速度","speaker":"0"},{"bg":"103570","ed":"106470","onebest":"与它所受的合力的方向相同,","speaker":"0"},{"bg":"106770","ed":"108380","onebest":"加速度的大小","speaker":"0"},{"bg":"108380","ed":"110210","onebest":"与它的质量成反比,","speaker":"0"},{"bg":"110230","ed":"113610","onebest":"与它所受到的合力的大小成正比。","speaker":"0"},{"bg":"113890","ed":"115810","onebest":"通常我们也写成","speaker":"0"},{"bg":"115810","ed":"117870","onebest":" f等于ma,","speaker":"0"},{"bg":"118750","ed":"123860","onebest":"其中f是这个物体受到的合力,m是它的质量,","speaker":"0"},{"bg":"124260","ed":"126160","onebest":"是这个物体的加速度。","speaker":"0"},{"bg":"126260","ed":"131520","onebest":"在这个表达式中所出现的质量常常被称为惯性质量,","speaker":"0"},{"bg":"131980","ed":"137130","onebest":"而在万有引力定律中出现的质量,我们称之为引力质量。","speaker":"0"},{"bg":"138610","ed":"142220","onebest":"牛顿第二定律还有一种表述形式,它就是","speaker":"0"},{"bg":"142220","ed":"145210","onebest":"物体的动量对时间的变化率","speaker":"0"},{"bg":"145330","ed":"148240","onebest":"与所受到的外力成正比,","speaker":"0"},{"bg":"148310","ed":"151150","onebest":"并且发生在外力的方向上。","speaker":"0"},{"bg":"151600","ed":"153110","onebest":"数学表达式","speaker":"0"},{"bg":"153110","ed":"155810","onebest":"是f等于dpdt","speaker":"0"},{"bg":"155810","ed":"157090","onebest":"其中p","speaker":"0"},{"bg":"157090","ed":"158780","onebest":"是物体的动量,","speaker":"0"},{"bg":"158980","ed":"161900","onebest":"f是物体所受到的合力,","speaker":"0"},{"bg":"162490","ed":"163280","onebest":"啊","speaker":"0"},{"bg":"164230","ed":"165540","onebest":"牛顿第一定律","speaker":"0"},{"bg":"165540","ed":"166930","onebest":"和第二定律","speaker":"0"},{"bg":"166930","ed":"168760","onebest":"都只涉及一个物体。","speaker":"0"},{"bg":"168810","ed":"171460","onebest":"接下来我们来看牛顿第三定律,","speaker":"0"},{"bg":"171910","ed":"173720","onebest":"在牛顿第三定律中,","speaker":"0"},{"bg":"173720","ed":"177990","onebest":"我们知道物体之间的相互作用应该具有什么样的性质?","speaker":"0"},{"bg":"178500","ed":"181600","onebest":"假设有两个物体,m一和m二,","speaker":"0"},{"bg":"181910","ed":"186990","onebest":"物体一受到的二对它的作用力,我们记作f12","speaker":"0"},{"bg":"187930","ed":"188900","onebest":"同向,","speaker":"0"},{"bg":"188900","ed":"193550","onebest":"物体二受到了一对它的作用力,我们记作f21。","speaker":"0"},{"bg":"193850","ed":"196870","onebest":"牛顿第三定律告诉我们,f12","speaker":"0"},{"bg":"196940","ed":"199970","onebest":"和f21它是成对出现的,","speaker":"0"},{"bg":"199970","ed":"203740","onebest":"两者大小相等,方向相反,","speaker":"0"},{"bg":"203960","ed":"205930","onebest":"作用在一条直线上,","speaker":"0"},{"bg":"206250","ed":"212080","onebest":"那因此这一对力呢也被通常的称为作用力与反作用力。","speaker":"0"},{"bg":"213540","ed":"214970","onebest":"牛顿三定律","speaker":"0"},{"bg":"214970","ed":"220890","onebest":"它是有适用条件的,适用条件是牛顿运动定律只适用于","speaker":"0"},{"bg":"220890","ed":"222320","onebest":"惯性参照系。","speaker":"0"},{"bg":"222970","ed":"227210","onebest":"那这样我们对牛顿运动定律做了一个简短的回顾。","speaker":"0"},{"bg":"228460","ed":"234240","onebest":"接下来我们来看令牛顿运动定律解决具体问题的步骤,","speaker":"0"},{"bg":"234240","ed":"237840","onebest":"这个步骤呢对于初学者是非常有帮助的。","speaker":"0"},{"bg":"237840","ed":"238880","onebest":"我们来看一下,","speaker":"0"},{"bg":"238880","ed":"242650","onebest":"它的解题步骤是首先你要选择研究对象,","speaker":"0"},{"bg":"243250","ed":"244480","onebest":"隔离物体","speaker":"0"},{"bg":"244650","ed":"252490","onebest":"之后呢对这个物体进行受力分析,看看它都受到什么样的力,并且把这些力呢用图","speaker":"0"},{"bg":"252490","ed":"254420","onebest":"清晰的表达出来。","speaker":"0"},{"bg":"255190","ed":"262220","onebest":"接下来你要分析一下这个物体的运动,举例说它的速度,它的加速度是什么方向的?","speaker":"0"},{"bg":"262530","ed":"268740","onebest":"它受到什么样的约束等等,它的运动具有什么样的性质,它的轨道是什么样的?","speaker":"0"},{"bg":"268740","ed":"273680","onebest":"总而言之,呢你就对于他的运动的一些信息呢进行分析。","speaker":"0"},{"bg":"274870","ed":"276340","onebest":"接下来第4步,","speaker":"0"},{"bg":"276340","ed":"278480","onebest":"你就要选择一个坐标系,","speaker":"0"},{"bg":"278480","ed":"281060","onebest":"列方程求解未知量。","speaker":"0"},{"bg":"281410","ed":"282350","onebest":"最后","speaker":"0"},{"bg":"282350","ed":"283140","onebest":"我们","speaker":"0"},{"bg":"283140","ed":"286940","onebest":"要对所得的结果进行检验和讨论,","speaker":"0"},{"bg":"286940","ed":"293940","onebest":"这就是我们解题的步骤,对于初学者大家不妨按照这样的一个步骤来试一试,","speaker":"0"},{"bg":"293940","ed":"296290","onebest":"看看对你是否有所帮助。","speaker":"0"},{"bg":"296980","ed":"300190","onebest":"接下来我们就来看具体的题目。","speaker":"0"}]', 'err_no': 0, 'failed': None, 'ok': 0}

Process finished with exit code 0

分析一下结果:

bg 句子相对于本音频的起始时间,单位为ms
ed 句子相对于本音频的终止时间,单位为ms
onebest 句子内容
speaker 说话人编号,从1开始,未开启说话人分离时speaker都为0

看一下原来的Demo里面的代码,我们需要的就是这个函数返回的字典形式的result:

    def gene_request(self, apiname, data, files=None, headers=None):
        response = requests.post(lfasr_host + apiname, data=data, files=files, headers=headers)
        result = json.loads(response.text)
        if result["ok"] == 0:
            print("{} success:".format(apiname) + str(result))
            return result
        else:
            print("{} error:".format(apiname) + str(result))
            exit(0)
            return result

由于免费调用的时间仅有5小时,所以需要省着一点,先暂时把那个结果保存下来,再新建一个.py文件来改一下格式:

dic = {'data': '[{"bg":"1020","ed":"1940","onebest":"嗯","speaker":"0"},{"bg":"7270","ed":"8250","onebest":"大家好,","speaker":"0"},{"bg":"8330","ed":"12600","onebest":"这周我们进行牛顿运动定律方面的相关练习,","speaker":"0"},{"bg":"13310","ed":"16050","onebest":"牛顿运动定律是整个力学的基础,","speaker":"0"},{"bg":"16500","ed":"19180","onebest":"这一部分中所用到的研究方法,","speaker":"0"},{"bg":"19180","ed":"21840","onebest":"对于我们学习力学是非常重要的。","speaker":"0"},{"bg":"22110","ed":"25990","onebest":"首先我们对牛顿运动定律做一个简单的回顾,","speaker":"0"},{"bg":"26310","ed":"27640","onebest":"牛顿第一定律,","speaker":"0"},{"bg":"28320","ed":"29530","onebest":"任何物体","speaker":"0"},{"bg":"29530","ed":"31400","onebest":"如果没有力作用在上面,","speaker":"0"},{"bg":"31400","ed":"33550","onebest":"都将保持它原来的速度,","speaker":"0"},{"bg":"33700","ed":"35000","onebest":"原来进不去的","speaker":"0"},{"bg":"35000","ed":"35990","onebest":"依旧禁止。","speaker":"0"},{"bg":"35990","ed":"37360","onebest":"原来运动的","speaker":"0"},{"bg":"37360","ed":"39600","onebest":"将做匀速直线运动。","speaker":"0"},{"bg":"39880","ed":"42860","onebest":"也就是说牛顿第一定律告诉我们,","speaker":"0"},{"bg":"42860","ed":"46490","onebest":"物体的运动状态不需要外力来维持,","speaker":"0"},{"bg":"47080","ed":"53220","onebest":"物体天然就具有维持自己运动状态的这样一种能力或者是属性,","speaker":"0"},{"bg":"53430","ed":"59720","onebest":"这种性质就叫做惯性,因此牛顿第一定律也被称为惯性定律。","speaker":"0"},{"bg":"60560","ed":"62960","onebest":"此外根据牛顿第一定律,","speaker":"0"},{"bg":"62960","ed":"65370","onebest":"我们还可以定义一种参照系,","speaker":"0"},{"bg":"65370","ed":"67030","onebest":"叫做惯性参照系。","speaker":"0"},{"bg":"67200","ed":"71540","onebest":"所谓惯性参照系就是牛顿第一定律成立的参照系,","speaker":"0"},{"bg":"72260","ed":"73820","onebest":"在一个参照系中,","speaker":"0"},{"bg":"73850","ed":"78070","onebest":"牛顿第一定律是否成立,要通过实验的检验。","speaker":"0"},{"bg":"78590","ed":"82430","onebest":"好,那接下来呢我们看牛顿第二定律,","speaker":"0"},{"bg":"82990","ed":"84620","onebest":"牛顿第二定律呢","speaker":"0"},{"bg":"85030","ed":"90880","onebest":"告诉我们,物体一旦受到了外力,它的运动状态就会发生变化,","speaker":"0"},{"bg":"90880","ed":"94970","onebest":"所以外力是改变物体运动状态的原因,","speaker":"0"},{"bg":"94970","ed":"99140","onebest":"并且告诉我们这个物体的运动状态如何变化。","speaker":"0"},{"bg":"100230","ed":"101690","onebest":"它的表述是","speaker":"0"},{"bg":"101950","ed":"103540","onebest":"质点的加速度","speaker":"0"},{"bg":"103570","ed":"106470","onebest":"与它所受的合力的方向相同,","speaker":"0"},{"bg":"106770","ed":"108380","onebest":"加速度的大小","speaker":"0"},{"bg":"108380","ed":"110210","onebest":"与它的质量成反比,","speaker":"0"},{"bg":"110230","ed":"113610","onebest":"与它所受到的合力的大小成正比。","speaker":"0"},{"bg":"113890","ed":"115810","onebest":"通常我们也写成","speaker":"0"},{"bg":"115810","ed":"117870","onebest":" f等于ma,","speaker":"0"},{"bg":"118750","ed":"123860","onebest":"其中f是这个物体受到的合力,m是它的质量,","speaker":"0"},{"bg":"124260","ed":"126160","onebest":"是这个物体的加速度。","speaker":"0"},{"bg":"126260","ed":"131520","onebest":"在这个表达式中所出现的质量常常被称为惯性质量,","speaker":"0"},{"bg":"131980","ed":"137130","onebest":"而在万有引力定律中出现的质量,我们称之为引力质量。","speaker":"0"},{"bg":"138610","ed":"142220","onebest":"牛顿第二定律还有一种表述形式,它就是","speaker":"0"},{"bg":"142220","ed":"145210","onebest":"物体的动量对时间的变化率","speaker":"0"},{"bg":"145330","ed":"148240","onebest":"与所受到的外力成正比,","speaker":"0"},{"bg":"148310","ed":"151150","onebest":"并且发生在外力的方向上。","speaker":"0"},{"bg":"151600","ed":"153110","onebest":"数学表达式","speaker":"0"},{"bg":"153110","ed":"155810","onebest":"是f等于dpdt","speaker":"0"},{"bg":"155810","ed":"157090","onebest":"其中p","speaker":"0"},{"bg":"157090","ed":"158780","onebest":"是物体的动量,","speaker":"0"},{"bg":"158980","ed":"161900","onebest":"f是物体所受到的合力,","speaker":"0"},{"bg":"162490","ed":"163280","onebest":"啊","speaker":"0"},{"bg":"164230","ed":"165540","onebest":"牛顿第一定律","speaker":"0"},{"bg":"165540","ed":"166930","onebest":"和第二定律","speaker":"0"},{"bg":"166930","ed":"168760","onebest":"都只涉及一个物体。","speaker":"0"},{"bg":"168810","ed":"171460","onebest":"接下来我们来看牛顿第三定律,","speaker":"0"},{"bg":"171910","ed":"173720","onebest":"在牛顿第三定律中,","speaker":"0"},{"bg":"173720","ed":"177990","onebest":"我们知道物体之间的相互作用应该具有什么样的性质?","speaker":"0"},{"bg":"178500","ed":"181600","onebest":"假设有两个物体,m一和m二,","speaker":"0"},{"bg":"181910","ed":"186990","onebest":"物体一受到的二对它的作用力,我们记作f12","speaker":"0"},{"bg":"187930","ed":"188900","onebest":"同向,","speaker":"0"},{"bg":"188900","ed":"193550","onebest":"物体二受到了一对它的作用力,我们记作f21。","speaker":"0"},{"bg":"193850","ed":"196870","onebest":"牛顿第三定律告诉我们,f12","speaker":"0"},{"bg":"196940","ed":"199970","onebest":"和f21它是成对出现的,","speaker":"0"},{"bg":"199970","ed":"203740","onebest":"两者大小相等,方向相反,","speaker":"0"},{"bg":"203960","ed":"205930","onebest":"作用在一条直线上,","speaker":"0"},{"bg":"206250","ed":"212080","onebest":"那因此这一对力呢也被通常的称为作用力与反作用力。","speaker":"0"},{"bg":"213540","ed":"214970","onebest":"牛顿三定律","speaker":"0"},{"bg":"214970","ed":"220890","onebest":"它是有适用条件的,适用条件是牛顿运动定律只适用于","speaker":"0"},{"bg":"220890","ed":"222320","onebest":"惯性参照系。","speaker":"0"},{"bg":"222970","ed":"227210","onebest":"那这样我们对牛顿运动定律做了一个简短的回顾。","speaker":"0"},{"bg":"228460","ed":"234240","onebest":"接下来我们来看令牛顿运动定律解决具体问题的步骤,","speaker":"0"},{"bg":"234240","ed":"237840","onebest":"这个步骤呢对于初学者是非常有帮助的。","speaker":"0"},{"bg":"237840","ed":"238880","onebest":"我们来看一下,","speaker":"0"},{"bg":"238880","ed":"242650","onebest":"它的解题步骤是首先你要选择研究对象,","speaker":"0"},{"bg":"243250","ed":"244480","onebest":"隔离物体","speaker":"0"},{"bg":"244650","ed":"252490","onebest":"之后呢对这个物体进行受力分析,看看它都受到什么样的力,并且把这些力呢用图","speaker":"0"},{"bg":"252490","ed":"254420","onebest":"清晰的表达出来。","speaker":"0"},{"bg":"255190","ed":"262220","onebest":"接下来你要分析一下这个物体的运动,举例说它的速度,它的加速度是什么方向的?","speaker":"0"},{"bg":"262530","ed":"268740","onebest":"它受到什么样的约束等等,它的运动具有什么样的性质,它的轨道是什么样的?","speaker":"0"},{"bg":"268740","ed":"273680","onebest":"总而言之,呢你就对于他的运动的一些信息呢进行分析。","speaker":"0"},{"bg":"274870","ed":"276340","onebest":"接下来第4步,","speaker":"0"},{"bg":"276340","ed":"278480","onebest":"你就要选择一个坐标系,","speaker":"0"},{"bg":"278480","ed":"281060","onebest":"列方程求解未知量。","speaker":"0"},{"bg":"281410","ed":"282350","onebest":"最后","speaker":"0"},{"bg":"282350","ed":"283140","onebest":"我们","speaker":"0"},{"bg":"283140","ed":"286940","onebest":"要对所得的结果进行检验和讨论,","speaker":"0"},{"bg":"286940","ed":"293940","onebest":"这就是我们解题的步骤,对于初学者大家不妨按照这样的一个步骤来试一试,","speaker":"0"},{"bg":"293940","ed":"296290","onebest":"看看对你是否有所帮助。","speaker":"0"},{"bg":"296980","ed":"300190","onebest":"接下来我们就来看具体的题目。","speaker":"0"}]', 'err_no': 0, 'failed': None, 'ok': 0}
list = dic['data']
print(list[1])

打印出来的结果是:

{

而不是希望的:

{"bg":"1020","ed":"1940","onebest":"嗯","speaker":"0"}

问题分析:

dic1 = {"a":"1"}
dic2 = {"b":"2"}
dic = [dic1, dic2]
dic3 = {'data':dic}
print(str(dic))
print(dic3['data'][0])
print(dic3['data'][0]["a"])
dic4 = {'data':'[{"a":"1"},{"b":"2"}]'}
print(dic4['data'][1])

结果:

[{'a': '1'}, {'b': '2'}]
{'a': '1'}
1
{

再看看Demo返回的结果形如:

"data":"[{\"bg\":\"0\",\"ed\":\"4950\",\"onebest\":\"科大讯飞是中国的智能语音技术提供商。\",\"speaker\":\"0\"}]"

感觉加转义字符\就是为了方便打印的,不像是可以利用索引查询的,这里决定直接利用正则化Re库

改一下原来的Demo部分代码,看看返回的result格式:

    # 请求和结果解析,结果中各个字段的含义可参考:https://doc.xfyun.cn/rest_api/%E8%AF%AD%E9%9F%B3%E8%BD%AC%E5%86%99.html
    def gene_request(self, apiname, data, files=None, headers=None):
        response = requests.post(lfasr_host + apiname, data=data, files=files, headers=headers)
        result = json.loads(response.text)
        if result["ok"] == 0:
            print("{} success:".format(apiname) + str(result))
            if apiname == api_get_result:
                parse_func1(str(result['data']))
                parse_func2(result['data'])
            return result
        else:
            print("{} error:".format(apiname) + str(result))
            exit(0)
            return result

def parse_func1(list):
    reg = r'{.*?}'
    match = re.findall(reg, list)
    for item in match:
        tmpl = '开始时间:{}ms     结束时间:{}ms     内容:{}'
        re_begin = r'"bg":"\d*"'
        re_end = r'"ed":"\d*"'
        re_content = r'"onebest":".*?"'
        begin = int(re.search(re_begin, item).group(0).replace('"bg":', '').replace('"', ''))
        end = int(re.search(re_end, item).group(0).replace('"ed":', '').replace('"', ''))
        content = re.search(re_content, item).group(0).replace('"onebest":', '').replace('"', '')
        sentence = tmpl.format(begin, end, content)
        print(sentence)


def parse_func2(dict):
    print(dict)
    print(dict[1])

结果:

开始时间:1020ms     结束时间:1940ms     内容:嗯
开始时间:7270ms     结束时间:8250ms     内容:大家好,
开始时间:8330ms     结束时间:12600ms     内容:这周我们进行牛顿运动定律方面的相关练习,
开始时间:13310ms     结束时间:16050ms     内容:牛顿运动定律是整个力学的基础,
开始时间:16500ms     结束时间:19180ms     内容:这一部分中所用到的研究方法,
开始时间:19180ms     结束时间:21840ms     内容:对于我们学习力学是非常重要的。
开始时间:22110ms     结束时间:25990ms     内容:首先我们对牛顿运动定律做一个简单的回顾,
开始时间:26310ms     结束时间:27640ms     内容:牛顿第一定律,
开始时间:28320ms     结束时间:29530ms     内容:任何物体
开始时间:29530ms     结束时间:31400ms     内容:如果没有力作用在上面,
开始时间:31400ms     结束时间:33550ms     内容:都将保持它原来的速度,
开始时间:33700ms     结束时间:35000ms     内容:原来进不去的
开始时间:35000ms     结束时间:35990ms     内容:依旧禁止。
开始时间:35990ms     结束时间:37360ms     内容:原来运动的
开始时间:37360ms     结束时间:39600ms     内容:将做匀速直线运动。
开始时间:39880ms     结束时间:42860ms     内容:也就是说牛顿第一定律告诉我们,
开始时间:42860ms     结束时间:46490ms     内容:物体的运动状态不需要外力来维持,
开始时间:47080ms     结束时间:53220ms     内容:物体天然就具有维持自己运动状态的这样一种能力或者是属性,
开始时间:53430ms     结束时间:59720ms     内容:这种性质就叫做惯性,因此牛顿第一定律也被称为惯性定律。
开始时间:60560ms     结束时间:62960ms     内容:此外根据牛顿第一定律,
开始时间:62960ms     结束时间:65370ms     内容:我们还可以定义一种参照系,
开始时间:65370ms     结束时间:67030ms     内容:叫做惯性参照系。
开始时间:67200ms     结束时间:71540ms     内容:所谓惯性参照系就是牛顿第一定律成立的参照系,
开始时间:72260ms     结束时间:73820ms     内容:在一个参照系中,
开始时间:73850ms     结束时间:78070ms     内容:牛顿第一定律是否成立,要通过实验的检验。
开始时间:78590ms     结束时间:82430ms     内容:好,那接下来呢我们看牛顿第二定律,
开始时间:82990ms     结束时间:84620ms     内容:牛顿第二定律呢
开始时间:85030ms     结束时间:90880ms     内容:告诉我们,物体一旦受到了外力,它的运动状态就会发生变化,
开始时间:90880ms     结束时间:94970ms     内容:所以外力是改变物体运动状态的原因,
开始时间:94970ms     结束时间:99140ms     内容:并且告诉我们这个物体的运动状态如何变化。
开始时间:100230ms     结束时间:101690ms     内容:它的表述是
开始时间:101950ms     结束时间:103540ms     内容:质点的加速度
开始时间:103570ms     结束时间:106470ms     内容:与它所受的合力的方向相同,
开始时间:106770ms     结束时间:108380ms     内容:加速度的大小
开始时间:108380ms     结束时间:110210ms     内容:与它的质量成反比,
开始时间:110230ms     结束时间:113610ms     内容:与它所受到的合力的大小成正比。
开始时间:113890ms     结束时间:115810ms     内容:通常我们也写成
开始时间:115810ms     结束时间:117870ms     内容: f等于ma,
开始时间:118750ms     结束时间:123860ms     内容:其中f是这个物体受到的合力,m是它的质量,
开始时间:124260ms     结束时间:126160ms     内容:是这个物体的加速度。
开始时间:126260ms     结束时间:131520ms     内容:在这个表达式中所出现的质量常常被称为惯性质量,
开始时间:131980ms     结束时间:137130ms     内容:而在万有引力定律中出现的质量,我们称之为引力质量。
开始时间:138610ms     结束时间:142220ms     内容:牛顿第二定律还有一种表述形式,它就是
开始时间:142220ms     结束时间:145210ms     内容:物体的动量对时间的变化率
开始时间:145330ms     结束时间:148240ms     内容:与所受到的外力成正比,
开始时间:148310ms     结束时间:151150ms     内容:并且发生在外力的方向上。
开始时间:151600ms     结束时间:153110ms     内容:数学表达式
开始时间:153110ms     结束时间:155810ms     内容:是f等于dpdt
开始时间:155810ms     结束时间:157090ms     内容:其中p
开始时间:157090ms     结束时间:158780ms     内容:是物体的动量,
开始时间:158980ms     结束时间:161900ms     内容:f是物体所受到的合力,
开始时间:162490ms     结束时间:163280ms     内容:啊
开始时间:164230ms     结束时间:165540ms     内容:牛顿第一定律
开始时间:165540ms     结束时间:166930ms     内容:和第二定律
开始时间:166930ms     结束时间:168760ms     内容:都只涉及一个物体。
开始时间:168810ms     结束时间:171460ms     内容:接下来我们来看牛顿第三定律,
开始时间:171910ms     结束时间:173720ms     内容:在牛顿第三定律中,
开始时间:173720ms     结束时间:177990ms     内容:我们知道物体之间的相互作用应该具有什么样的性质?
开始时间:178500ms     结束时间:181600ms     内容:假设有两个物体,m一和m二,
开始时间:181910ms     结束时间:186990ms     内容:物体一受到的二对它的作用力,我们记作f12
开始时间:187930ms     结束时间:188900ms     内容:同向,
开始时间:188900ms     结束时间:193550ms     内容:物体二受到了一对它的作用力,我们记作f21。
开始时间:193850ms     结束时间:196870ms     内容:牛顿第三定律告诉我们,f12
开始时间:196940ms     结束时间:199970ms     内容:和f21它是成对出现的,
开始时间:199970ms     结束时间:203740ms     内容:两者大小相等,方向相反,
开始时间:203960ms     结束时间:205930ms     内容:作用在一条直线上,
开始时间:206250ms     结束时间:212080ms     内容:那因此这一对力呢也被通常的称为作用力与反作用力。
开始时间:213540ms     结束时间:214970ms     内容:牛顿三定律
开始时间:214970ms     结束时间:220890ms     内容:它是有适用条件的,适用条件是牛顿运动定律只适用于
开始时间:220890ms     结束时间:222320ms     内容:惯性参照系。
开始时间:222970ms     结束时间:227210ms     内容:那这样我们对牛顿运动定律做了一个简短的回顾。
开始时间:228460ms     结束时间:234240ms     内容:接下来我们来看令牛顿运动定律解决具体问题的步骤,
开始时间:234240ms     结束时间:237840ms     内容:这个步骤呢对于初学者是非常有帮助的。
开始时间:237840ms     结束时间:238880ms     内容:我们来看一下,
开始时间:238880ms     结束时间:242650ms     内容:它的解题步骤是首先你要选择研究对象,
开始时间:243250ms     结束时间:244480ms     内容:隔离物体
开始时间:244650ms     结束时间:252490ms     内容:之后呢对这个物体进行受力分析,看看它都受到什么样的力,并且把这些力呢用图
开始时间:252490ms     结束时间:254420ms     内容:清晰的表达出来。
开始时间:255190ms     结束时间:262220ms     内容:接下来你要分析一下这个物体的运动,举例说它的速度,它的加速度是什么方向的?
开始时间:262530ms     结束时间:268740ms     内容:它受到什么样的约束等等,它的运动具有什么样的性质,它的轨道是什么样的?
开始时间:268740ms     结束时间:273680ms     内容:总而言之,呢你就对于他的运动的一些信息呢进行分析。
开始时间:274870ms     结束时间:276340ms     内容:接下来第4步,
开始时间:276340ms     结束时间:278480ms     内容:你就要选择一个坐标系,
开始时间:278480ms     结束时间:281060ms     内容:列方程求解未知量。
开始时间:281410ms     结束时间:282350ms     内容:最后
开始时间:282350ms     结束时间:283140ms     内容:我们
开始时间:283140ms     结束时间:286940ms     内容:要对所得的结果进行检验和讨论,
开始时间:286940ms     结束时间:293940ms     内容:这就是我们解题的步骤,对于初学者大家不妨按照这样的一个步骤来试一试,
开始时间:293940ms     结束时间:296290ms     内容:看看对你是否有所帮助。
开始时间:296980ms     结束时间:300190ms     内容:接下来我们就来看具体的题目。

和:

{

所以可以利用Re库对讯飞API返回的result结果进行解析操作,完整代码如下:

# -*- coding: utf-8 -*-
# 
#   author: yanmeng2
# 
# 非实时转写调用demo

import re		# 注意加上这个库
import base64
import hashlib
import hmac
import json
import os
import time

import requests

lfasr_host = 'http://raasr.xfyun.cn/api'

# 请求的接口名
api_prepare = '/prepare'
api_upload = '/upload'
api_merge = '/merge'
api_get_progress = '/getProgress'
api_get_result = '/getResult'
# 文件分片大小10M
file_piece_sice = 10485760

# ——————————————————转写可配置参数————————————————
# 参数可在官网界面(https://doc.xfyun.cn/rest_api/%E8%AF%AD%E9%9F%B3%E8%BD%AC%E5%86%99.html)查看,根据需求可自行在gene_params方法里添加修改
# 转写类型
lfasr_type = 0
# 是否开启分词
has_participle = 'false'
has_seperate = 'true'
# 多候选词个数
max_alternatives = 0
# 子用户标识
suid = ''


class SliceIdGenerator:
    """slice id生成器"""

    def __init__(self):
        self.__ch = 'aaaaaaaaa`'

    def getNextSliceId(self):
        ch = self.__ch
        j = len(ch) - 1
        while j >= 0:
            cj = ch[j]
            if cj != 'z':
                ch = ch[:j] + chr(ord(cj) + 1) + ch[j + 1:]
                break
            else:
                ch = ch[:j] + 'a' + ch[j + 1:]
                j = j - 1
        self.__ch = ch
        return self.__ch


class RequestApi(object):
    def __init__(self, appid, secret_key, upload_file_path):
        self.appid = appid
        self.secret_key = secret_key
        self.upload_file_path = upload_file_path

    # 根据不同的apiname生成不同的参数,本示例中未使用全部参数您可在官网(https://doc.xfyun.cn/rest_api/%E8%AF%AD%E9%9F%B3%E8%BD%AC%E5%86%99.html)查看后选择适合业务场景的进行更换
    def gene_params(self, apiname, taskid=None, slice_id=None):
        appid = self.appid
        secret_key = self.secret_key
        upload_file_path = self.upload_file_path
        ts = str(int(time.time()))
        m2 = hashlib.md5()
        m2.update((appid + ts).encode('utf-8'))
        md5 = m2.hexdigest()
        md5 = bytes(md5, encoding='utf-8')
        # 以secret_key为key, 上面的md5为msg, 使用hashlib.sha1加密结果为signa
        signa = hmac.new(secret_key.encode('utf-8'), md5, hashlib.sha1).digest()
        signa = base64.b64encode(signa)
        signa = str(signa, 'utf-8')
        file_len = os.path.getsize(upload_file_path)
        file_name = os.path.basename(upload_file_path)
        param_dict = {}

        if apiname == api_prepare:
            # slice_num是指分片数量,如果您使用的音频都是较短音频也可以不分片,直接将slice_num指定为1即可
            slice_num = int(file_len / file_piece_sice) + (0 if (file_len % file_piece_sice == 0) else 1)
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['file_len'] = str(file_len)
            param_dict['file_name'] = file_name
            param_dict['slice_num'] = str(slice_num)
        elif apiname == api_upload:
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['task_id'] = taskid
            param_dict['slice_id'] = slice_id
        elif apiname == api_merge:
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['task_id'] = taskid
            param_dict['file_name'] = file_name
        elif apiname == api_get_progress or apiname == api_get_result:
            param_dict['app_id'] = appid
            param_dict['signa'] = signa
            param_dict['ts'] = ts
            param_dict['task_id'] = taskid
        return param_dict

    # 请求和结果解析,结果中各个字段的含义可参考:https://doc.xfyun.cn/rest_api/%E8%AF%AD%E9%9F%B3%E8%BD%AC%E5%86%99.html
    def gene_request(self, apiname, data, files=None, headers=None):
        response = requests.post(lfasr_host + apiname, data=data, files=files, headers=headers)
        result = json.loads(response.text)
        if result["ok"] == 0:
            print("{} success:".format(apiname) + str(result))
            if apiname == api_get_result:
                parse_func1(str(result['data']))
                parse_func2(result['data'])
            return result
        else:
            print("{} error:".format(apiname) + str(result))
            exit(0)
            return result

    # 预处理
    def prepare_request(self):
        return self.gene_request(apiname=api_prepare,
                                 data=self.gene_params(api_prepare))

    # 上传
    def upload_request(self, taskid, upload_file_path):
        file_object = open(upload_file_path, 'rb')
        try:
            index = 1
            sig = SliceIdGenerator()
            while True:
                content = file_object.read(file_piece_sice)
                if not content or len(content) == 0:
                    break
                files = {
                    "filename": self.gene_params(api_upload).get("slice_id"),
                    "content": content
                }
                response = self.gene_request(api_upload,
                                             data=self.gene_params(api_upload, taskid=taskid,
                                                                   slice_id=sig.getNextSliceId()),
                                             files=files)
                if response.get('ok') != 0:
                    # 上传分片失败
                    print('upload slice fail, response: ' + str(response))
                    return False
                print('upload slice ' + str(index) + ' success')
                index += 1
        finally:
            'file index:' + str(file_object.tell())
            file_object.close()
        return True

    # 合并
    def merge_request(self, taskid):
        return self.gene_request(api_merge, data=self.gene_params(api_merge, taskid=taskid))

    # 获取进度
    def get_progress_request(self, taskid):
        return self.gene_request(api_get_progress, data=self.gene_params(api_get_progress, taskid=taskid))

    # 获取结果
    def get_result_request(self, taskid):
        return self.gene_request(api_get_result, data=self.gene_params(api_get_result, taskid=taskid))

    def all_api_request(self):
        # 1. 预处理
        pre_result = self.prepare_request()
        taskid = pre_result["data"]
        # 2 . 分片上传
        self.upload_request(taskid=taskid, upload_file_path=self.upload_file_path)
        # 3 . 文件合并
        self.merge_request(taskid=taskid)
        # 4 . 获取任务进度
        while True:
            # 每隔20秒获取一次任务进度
            progress = self.get_progress_request(taskid)
            progress_dic = progress
            if progress_dic['err_no'] != 0 and progress_dic['err_no'] != 26605:
                print('task error: ' + progress_dic['failed'])
                return
            else:
                data = progress_dic['data']
                task_status = json.loads(data)
                if task_status['status'] == 9:
                    print('task ' + taskid + ' finished')
                    break
                print('The task ' + taskid + ' is in processing, task status: ' + str(data))

            # 每次获取进度间隔20S
            time.sleep(20)
        # 5 . 获取结果
        self.get_result_request(taskid=taskid)


def parse_func1(list):
    reg = r'{.*?}'
    match = re.findall(reg, list)
    for item in match:
        tmpl = '开始时间:{}ms     结束时间:{}ms     内容:{}'
        re_begin = r'"bg":"\d*"'
        re_end = r'"ed":"\d*"'
        re_content = r'"onebest":".*?"'
        begin = int(re.search(re_begin, item).group(0).replace('"bg":', '').replace('"', ''))
        end = int(re.search(re_end, item).group(0).replace('"ed":', '').replace('"', ''))
        content = re.search(re_content, item).group(0).replace('"onebest":', '').replace('"', '')
        sentence = tmpl.format(begin, end, content)
        print(sentence)


def parse_func2(dict):
    print(dict)
    print(dict[1])

# 注意:如果出现requests模块报错:"NoneType" object has no attribute 'read', 请尝试将requests模块更新到2.20.0或以上版本(本demo测试版本为2.20.0)
# 输入讯飞开放平台的appid,secret_key和待转写的文件路径
if __name__ == '__main__':
    api = RequestApi(appid="yours", secret_key="yours", upload_file_path=r"D:/University_Study/Code/牛顿运动定理简要回顾.mp3")
    api.all_api_request()

结果:

/prepare success:{'data': 'eb14b19946ac405ca3eae6f7693aae7d', 'err_no': 0, 'failed': None, 'ok': 0}
/upload success:{'data': None, 'err_no': 0, 'failed': None, 'ok': 0}
upload slice 1 success
/merge success:{'data': None, 'err_no': 0, 'failed': None, 'ok': 0}
/getProgress success:{'data': '{"status":2,"desc":"音频合并完成"}', 'err_no': 0, 'failed': None, 'ok': 0}
The task eb14b19946ac405ca3eae6f7693aae7d is in processing, task status: {"status":2,"desc":"音频合并完成"}
/getProgress success:{'data': '{"status":9,"desc":"转写结果上传完成"}', 'err_no': 0, 'failed': None, 'ok': 0}
task eb14b19946ac405ca3eae6f7693aae7d finished
/getResult success:{'data': '[{"bg":"1020","ed":"1940","onebest":"嗯","speaker":"0"},{"bg":"7270","ed":"8250","onebest":"大家好,","speaker":"0"},{"bg":"8330","ed":"12600","onebest":"这周我们进行牛顿运动定律方面的相关练习,","speaker":"0"},{"bg":"13310","ed":"16050","onebest":"牛顿运动定律是整个力学的基础,","speaker":"0"},{"bg":"16500","ed":"19180","onebest":"这一部分中所用到的研究方法,","speaker":"0"},{"bg":"19180","ed":"21840","onebest":"对于我们学习力学是非常重要的。","speaker":"0"},{"bg":"22110","ed":"25990","onebest":"首先我们对牛顿运动定律做一个简单的回顾,","speaker":"0"},{"bg":"26310","ed":"27640","onebest":"牛顿第一定律,","speaker":"0"},{"bg":"28320","ed":"29530","onebest":"任何物体","speaker":"0"},{"bg":"29530","ed":"31400","onebest":"如果没有力作用在上面,","speaker":"0"},{"bg":"31400","ed":"33550","onebest":"都将保持它原来的速度,","speaker":"0"},{"bg":"33700","ed":"35000","onebest":"原来进不去的","speaker":"0"},{"bg":"35000","ed":"35990","onebest":"依旧禁止。","speaker":"0"},{"bg":"35990","ed":"37360","onebest":"原来运动的","speaker":"0"},{"bg":"37360","ed":"39600","onebest":"将做匀速直线运动。","speaker":"0"},{"bg":"39880","ed":"42860","onebest":"也就是说牛顿第一定律告诉我们,","speaker":"0"},{"bg":"42860","ed":"46490","onebest":"物体的运动状态不需要外力来维持,","speaker":"0"},{"bg":"47080","ed":"53220","onebest":"物体天然就具有维持自己运动状态的这样一种能力或者是属性,","speaker":"0"},{"bg":"53430","ed":"59720","onebest":"这种性质就叫做惯性,因此牛顿第一定律也被称为惯性定律。","speaker":"0"},{"bg":"60560","ed":"62960","onebest":"此外根据牛顿第一定律,","speaker":"0"},{"bg":"62960","ed":"65370","onebest":"我们还可以定义一种参照系,","speaker":"0"},{"bg":"65370","ed":"67030","onebest":"叫做惯性参照系。","speaker":"0"},{"bg":"67200","ed":"71540","onebest":"所谓惯性参照系就是牛顿第一定律成立的参照系,","speaker":"0"},{"bg":"72260","ed":"73820","onebest":"在一个参照系中,","speaker":"0"},{"bg":"73850","ed":"78070","onebest":"牛顿第一定律是否成立,要通过实验的检验。","speaker":"0"},{"bg":"78590","ed":"82430","onebest":"好,那接下来呢我们看牛顿第二定律,","speaker":"0"},{"bg":"82990","ed":"84620","onebest":"牛顿第二定律呢","speaker":"0"},{"bg":"85030","ed":"90880","onebest":"告诉我们,物体一旦受到了外力,它的运动状态就会发生变化,","speaker":"0"},{"bg":"90880","ed":"94970","onebest":"所以外力是改变物体运动状态的原因,","speaker":"0"},{"bg":"94970","ed":"99140","onebest":"并且告诉我们这个物体的运动状态如何变化。","speaker":"0"},{"bg":"100230","ed":"101690","onebest":"它的表述是","speaker":"0"},{"bg":"101950","ed":"103540","onebest":"质点的加速度","speaker":"0"},{"bg":"103570","ed":"106470","onebest":"与它所受的合力的方向相同,","speaker":"0"},{"bg":"106770","ed":"108380","onebest":"加速度的大小","speaker":"0"},{"bg":"108380","ed":"110210","onebest":"与它的质量成反比,","speaker":"0"},{"bg":"110230","ed":"113610","onebest":"与它所受到的合力的大小成正比。","speaker":"0"},{"bg":"113890","ed":"115810","onebest":"通常我们也写成","speaker":"0"},{"bg":"115810","ed":"117870","onebest":" f等于ma,","speaker":"0"},{"bg":"118750","ed":"123860","onebest":"其中f是这个物体受到的合力,m是它的质量,","speaker":"0"},{"bg":"124260","ed":"126160","onebest":"是这个物体的加速度。","speaker":"0"},{"bg":"126260","ed":"131520","onebest":"在这个表达式中所出现的质量常常被称为惯性质量,","speaker":"0"},{"bg":"131980","ed":"137130","onebest":"而在万有引力定律中出现的质量,我们称之为引力质量。","speaker":"0"},{"bg":"138610","ed":"142220","onebest":"牛顿第二定律还有一种表述形式,它就是","speaker":"0"},{"bg":"142220","ed":"145210","onebest":"物体的动量对时间的变化率","speaker":"0"},{"bg":"145330","ed":"148240","onebest":"与所受到的外力成正比,","speaker":"0"},{"bg":"148310","ed":"151150","onebest":"并且发生在外力的方向上。","speaker":"0"},{"bg":"151600","ed":"153110","onebest":"数学表达式","speaker":"0"},{"bg":"153110","ed":"155810","onebest":"是f等于dpdt","speaker":"0"},{"bg":"155810","ed":"157090","onebest":"其中p","speaker":"0"},{"bg":"157090","ed":"158780","onebest":"是物体的动量,","speaker":"0"},{"bg":"158980","ed":"161900","onebest":"f是物体所受到的合力,","speaker":"0"},{"bg":"162490","ed":"163280","onebest":"啊","speaker":"0"},{"bg":"164230","ed":"165540","onebest":"牛顿第一定律","speaker":"0"},{"bg":"165540","ed":"166930","onebest":"和第二定律","speaker":"0"},{"bg":"166930","ed":"168760","onebest":"都只涉及一个物体。","speaker":"0"},{"bg":"168810","ed":"171460","onebest":"接下来我们来看牛顿第三定律,","speaker":"0"},{"bg":"171910","ed":"173720","onebest":"在牛顿第三定律中,","speaker":"0"},{"bg":"173720","ed":"177990","onebest":"我们知道物体之间的相互作用应该具有什么样的性质?","speaker":"0"},{"bg":"178500","ed":"181600","onebest":"假设有两个物体,m一和m二,","speaker":"0"},{"bg":"181910","ed":"186990","onebest":"物体一受到的二对它的作用力,我们记作f12","speaker":"0"},{"bg":"187930","ed":"188900","onebest":"同向,","speaker":"0"},{"bg":"188900","ed":"193550","onebest":"物体二受到了一对它的作用力,我们记作f21。","speaker":"0"},{"bg":"193850","ed":"196870","onebest":"牛顿第三定律告诉我们,f12","speaker":"0"},{"bg":"196940","ed":"199970","onebest":"和f21它是成对出现的,","speaker":"0"},{"bg":"199970","ed":"203740","onebest":"两者大小相等,方向相反,","speaker":"0"},{"bg":"203960","ed":"205930","onebest":"作用在一条直线上,","speaker":"0"},{"bg":"206250","ed":"212080","onebest":"那因此这一对力呢也被通常的称为作用力与反作用力。","speaker":"0"},{"bg":"213540","ed":"214970","onebest":"牛顿三定律","speaker":"0"},{"bg":"214970","ed":"220890","onebest":"它是有适用条件的,适用条件是牛顿运动定律只适用于","speaker":"0"},{"bg":"220890","ed":"222320","onebest":"惯性参照系。","speaker":"0"},{"bg":"222970","ed":"227210","onebest":"那这样我们对牛顿运动定律做了一个简短的回顾。","speaker":"0"},{"bg":"228460","ed":"234240","onebest":"接下来我们来看令牛顿运动定律解决具体问题的步骤,","speaker":"0"},{"bg":"234240","ed":"237840","onebest":"这个步骤呢对于初学者是非常有帮助的。","speaker":"0"},{"bg":"237840","ed":"238880","onebest":"我们来看一下,","speaker":"0"},{"bg":"238880","ed":"242650","onebest":"它的解题步骤是首先你要选择研究对象,","speaker":"0"},{"bg":"243250","ed":"244480","onebest":"隔离物体","speaker":"0"},{"bg":"244650","ed":"252490","onebest":"之后呢对这个物体进行受力分析,看看它都受到什么样的力,并且把这些力呢用图","speaker":"0"},{"bg":"252490","ed":"254420","onebest":"清晰的表达出来。","speaker":"0"},{"bg":"255190","ed":"262220","onebest":"接下来你要分析一下这个物体的运动,举例说它的速度,它的加速度是什么方向的?","speaker":"0"},{"bg":"262530","ed":"268740","onebest":"它受到什么样的约束等等,它的运动具有什么样的性质,它的轨道是什么样的?","speaker":"0"},{"bg":"268740","ed":"273680","onebest":"总而言之,呢你就对于他的运动的一些信息呢进行分析。","speaker":"0"},{"bg":"274870","ed":"276340","onebest":"接下来第4步,","speaker":"0"},{"bg":"276340","ed":"278480","onebest":"你就要选择一个坐标系,","speaker":"0"},{"bg":"278480","ed":"281060","onebest":"列方程求解未知量。","speaker":"0"},{"bg":"281410","ed":"282350","onebest":"最后","speaker":"0"},{"bg":"282350","ed":"283140","onebest":"我们","speaker":"0"},{"bg":"283140","ed":"286940","onebest":"要对所得的结果进行检验和讨论,","speaker":"0"},{"bg":"286940","ed":"293940","onebest":"这就是我们解题的步骤,对于初学者大家不妨按照这样的一个步骤来试一试,","speaker":"0"},{"bg":"293940","ed":"296290","onebest":"看看对你是否有所帮助。","speaker":"0"},{"bg":"296980","ed":"300190","onebest":"接下来我们就来看具体的题目。","speaker":"0"}]', 'err_no': 0, 'failed': None, 'ok': 0}
开始时间:1020ms     结束时间:1940ms     内容:嗯
开始时间:7270ms     结束时间:8250ms     内容:大家好,
开始时间:8330ms     结束时间:12600ms     内容:这周我们进行牛顿运动定律方面的相关练习,
开始时间:13310ms     结束时间:16050ms     内容:牛顿运动定律是整个力学的基础,
开始时间:16500ms     结束时间:19180ms     内容:这一部分中所用到的研究方法,
开始时间:19180ms     结束时间:21840ms     内容:对于我们学习力学是非常重要的。
开始时间:22110ms     结束时间:25990ms     内容:首先我们对牛顿运动定律做一个简单的回顾,
开始时间:26310ms     结束时间:27640ms     内容:牛顿第一定律,
开始时间:28320ms     结束时间:29530ms     内容:任何物体
开始时间:29530ms     结束时间:31400ms     内容:如果没有力作用在上面,
开始时间:31400ms     结束时间:33550ms     内容:都将保持它原来的速度,
开始时间:33700ms     结束时间:35000ms     内容:原来进不去的
开始时间:35000ms     结束时间:35990ms     内容:依旧禁止。
开始时间:35990ms     结束时间:37360ms     内容:原来运动的
开始时间:37360ms     结束时间:39600ms     内容:将做匀速直线运动。
开始时间:39880ms     结束时间:42860ms     内容:也就是说牛顿第一定律告诉我们,
开始时间:42860ms     结束时间:46490ms     内容:物体的运动状态不需要外力来维持,
开始时间:47080ms     结束时间:53220ms     内容:物体天然就具有维持自己运动状态的这样一种能力或者是属性,
开始时间:53430ms     结束时间:59720ms     内容:这种性质就叫做惯性,因此牛顿第一定律也被称为惯性定律。
开始时间:60560ms     结束时间:62960ms     内容:此外根据牛顿第一定律,
开始时间:62960ms     结束时间:65370ms     内容:我们还可以定义一种参照系,
开始时间:65370ms     结束时间:67030ms     内容:叫做惯性参照系。
开始时间:67200ms     结束时间:71540ms     内容:所谓惯性参照系就是牛顿第一定律成立的参照系,
开始时间:72260ms     结束时间:73820ms     内容:在一个参照系中,
开始时间:73850ms     结束时间:78070ms     内容:牛顿第一定律是否成立,要通过实验的检验。
开始时间:78590ms     结束时间:82430ms     内容:好,那接下来呢我们看牛顿第二定律,
开始时间:82990ms     结束时间:84620ms     内容:牛顿第二定律呢
开始时间:85030ms     结束时间:90880ms     内容:告诉我们,物体一旦受到了外力,它的运动状态就会发生变化,
开始时间:90880ms     结束时间:94970ms     内容:所以外力是改变物体运动状态的原因,
开始时间:94970ms     结束时间:99140ms     内容:并且告诉我们这个物体的运动状态如何变化。
开始时间:100230ms     结束时间:101690ms     内容:它的表述是
开始时间:101950ms     结束时间:103540ms     内容:质点的加速度
开始时间:103570ms     结束时间:106470ms     内容:与它所受的合力的方向相同,
开始时间:106770ms     结束时间:108380ms     内容:加速度的大小
开始时间:108380ms     结束时间:110210ms     内容:与它的质量成反比,
开始时间:110230ms     结束时间:113610ms     内容:与它所受到的合力的大小成正比。
开始时间:113890ms     结束时间:115810ms     内容:通常我们也写成
开始时间:115810ms     结束时间:117870ms     内容: f等于ma,
开始时间:118750ms     结束时间:123860ms     内容:其中f是这个物体受到的合力,m是它的质量,
开始时间:124260ms     结束时间:126160ms     内容:是这个物体的加速度。
开始时间:126260ms     结束时间:131520ms     内容:在这个表达式中所出现的质量常常被称为惯性质量,
开始时间:131980ms     结束时间:137130ms     内容:而在万有引力定律中出现的质量,我们称之为引力质量。
开始时间:138610ms     结束时间:142220ms     内容:牛顿第二定律还有一种表述形式,它就是
开始时间:142220ms     结束时间:145210ms     内容:物体的动量对时间的变化率
开始时间:145330ms     结束时间:148240ms     内容:与所受到的外力成正比,
开始时间:148310ms     结束时间:151150ms     内容:并且发生在外力的方向上。
开始时间:151600ms     结束时间:153110ms     内容:数学表达式
开始时间:153110ms     结束时间:155810ms     内容:是f等于dpdt
开始时间:155810ms     结束时间:157090ms     内容:其中p
开始时间:157090ms     结束时间:158780ms     内容:是物体的动量,
开始时间:158980ms     结束时间:161900ms     内容:f是物体所受到的合力,
开始时间:162490ms     结束时间:163280ms     内容:啊
开始时间:164230ms     结束时间:165540ms     内容:牛顿第一定律
开始时间:165540ms     结束时间:166930ms     内容:和第二定律
开始时间:166930ms     结束时间:168760ms     内容:都只涉及一个物体。
开始时间:168810ms     结束时间:171460ms     内容:接下来我们来看牛顿第三定律,
开始时间:171910ms     结束时间:173720ms     内容:在牛顿第三定律中,
开始时间:173720ms     结束时间:177990ms     内容:我们知道物体之间的相互作用应该具有什么样的性质?
开始时间:178500ms     结束时间:181600ms     内容:假设有两个物体,m一和m二,
开始时间:181910ms     结束时间:186990ms     内容:物体一受到的二对它的作用力,我们记作f12
开始时间:187930ms     结束时间:188900ms     内容:同向,
开始时间:188900ms     结束时间:193550ms     内容:物体二受到了一对它的作用力,我们记作f21。
开始时间:193850ms     结束时间:196870ms     内容:牛顿第三定律告诉我们,f12
开始时间:196940ms     结束时间:199970ms     内容:和f21它是成对出现的,
开始时间:199970ms     结束时间:203740ms     内容:两者大小相等,方向相反,
开始时间:203960ms     结束时间:205930ms     内容:作用在一条直线上,
开始时间:206250ms     结束时间:212080ms     内容:那因此这一对力呢也被通常的称为作用力与反作用力。
开始时间:213540ms     结束时间:214970ms     内容:牛顿三定律
开始时间:214970ms     结束时间:220890ms     内容:它是有适用条件的,适用条件是牛顿运动定律只适用于
开始时间:220890ms     结束时间:222320ms     内容:惯性参照系。
开始时间:222970ms     结束时间:227210ms     内容:那这样我们对牛顿运动定律做了一个简短的回顾。
开始时间:228460ms     结束时间:234240ms     内容:接下来我们来看令牛顿运动定律解决具体问题的步骤,
开始时间:234240ms     结束时间:237840ms     内容:这个步骤呢对于初学者是非常有帮助的。
开始时间:237840ms     结束时间:238880ms     内容:我们来看一下,
开始时间:238880ms     结束时间:242650ms     内容:它的解题步骤是首先你要选择研究对象,
开始时间:243250ms     结束时间:244480ms     内容:隔离物体
开始时间:244650ms     结束时间:252490ms     内容:之后呢对这个物体进行受力分析,看看它都受到什么样的力,并且把这些力呢用图
开始时间:252490ms     结束时间:254420ms     内容:清晰的表达出来。
开始时间:255190ms     结束时间:262220ms     内容:接下来你要分析一下这个物体的运动,举例说它的速度,它的加速度是什么方向的?
开始时间:262530ms     结束时间:268740ms     内容:它受到什么样的约束等等,它的运动具有什么样的性质,它的轨道是什么样的?
开始时间:268740ms     结束时间:273680ms     内容:总而言之,呢你就对于他的运动的一些信息呢进行分析。
开始时间:274870ms     结束时间:276340ms     内容:接下来第4步,
开始时间:276340ms     结束时间:278480ms     内容:你就要选择一个坐标系,
开始时间:278480ms     结束时间:281060ms     内容:列方程求解未知量。
开始时间:281410ms     结束时间:282350ms     内容:最后
开始时间:282350ms     结束时间:283140ms     内容:我们
开始时间:283140ms     结束时间:286940ms     内容:要对所得的结果进行检验和讨论,
开始时间:286940ms     结束时间:293940ms     内容:这就是我们解题的步骤,对于初学者大家不妨按照这样的一个步骤来试一试,
开始时间:293940ms     结束时间:296290ms     内容:看看对你是否有所帮助。
开始时间:296980ms     结束时间:300190ms     内容:接下来我们就来看具体的题目。
[{"bg":"1020","ed":"1940","onebest":"嗯","speaker":"0"},{"bg":"7270","ed":"8250","onebest":"大家好,","speaker":"0"},{"bg":"8330","ed":"12600","onebest":"这周我们进行牛顿运动定律方面的相关练习,","speaker":"0"},{"bg":"13310","ed":"16050","onebest":"牛顿运动定律是整个力学的基础,","speaker":"0"},{"bg":"16500","ed":"19180","onebest":"这一部分中所用到的研究方法,","speaker":"0"},{"bg":"19180","ed":"21840","onebest":"对于我们学习力学是非常重要的。","speaker":"0"},{"bg":"22110","ed":"25990","onebest":"首先我们对牛顿运动定律做一个简单的回顾,","speaker":"0"},{"bg":"26310","ed":"27640","onebest":"牛顿第一定律,","speaker":"0"},{"bg":"28320","ed":"29530","onebest":"任何物体","speaker":"0"},{"bg":"29530","ed":"31400","onebest":"如果没有力作用在上面,","speaker":"0"},{"bg":"31400","ed":"33550","onebest":"都将保持它原来的速度,","speaker":"0"},{"bg":"33700","ed":"35000","onebest":"原来进不去的","speaker":"0"},{"bg":"35000","ed":"35990","onebest":"依旧禁止。","speaker":"0"},{"bg":"35990","ed":"37360","onebest":"原来运动的","speaker":"0"},{"bg":"37360","ed":"39600","onebest":"将做匀速直线运动。","speaker":"0"},{"bg":"39880","ed":"42860","onebest":"也就是说牛顿第一定律告诉我们,","speaker":"0"},{"bg":"42860","ed":"46490","onebest":"物体的运动状态不需要外力来维持,","speaker":"0"},{"bg":"47080","ed":"53220","onebest":"物体天然就具有维持自己运动状态的这样一种能力或者是属性,","speaker":"0"},{"bg":"53430","ed":"59720","onebest":"这种性质就叫做惯性,因此牛顿第一定律也被称为惯性定律。","speaker":"0"},{"bg":"60560","ed":"62960","onebest":"此外根据牛顿第一定律,","speaker":"0"},{"bg":"62960","ed":"65370","onebest":"我们还可以定义一种参照系,","speaker":"0"},{"bg":"65370","ed":"67030","onebest":"叫做惯性参照系。","speaker":"0"},{"bg":"67200","ed":"71540","onebest":"所谓惯性参照系就是牛顿第一定律成立的参照系,","speaker":"0"},{"bg":"72260","ed":"73820","onebest":"在一个参照系中,","speaker":"0"},{"bg":"73850","ed":"78070","onebest":"牛顿第一定律是否成立,要通过实验的检验。","speaker":"0"},{"bg":"78590","ed":"82430","onebest":"好,那接下来呢我们看牛顿第二定律,","speaker":"0"},{"bg":"82990","ed":"84620","onebest":"牛顿第二定律呢","speaker":"0"},{"bg":"85030","ed":"90880","onebest":"告诉我们,物体一旦受到了外力,它的运动状态就会发生变化,","speaker":"0"},{"bg":"90880","ed":"94970","onebest":"所以外力是改变物体运动状态的原因,","speaker":"0"},{"bg":"94970","ed":"99140","onebest":"并且告诉我们这个物体的运动状态如何变化。","speaker":"0"},{"bg":"100230","ed":"101690","onebest":"它的表述是","speaker":"0"},{"bg":"101950","ed":"103540","onebest":"质点的加速度","speaker":"0"},{"bg":"103570","ed":"106470","onebest":"与它所受的合力的方向相同,","speaker":"0"},{"bg":"106770","ed":"108380","onebest":"加速度的大小","speaker":"0"},{"bg":"108380","ed":"110210","onebest":"与它的质量成反比,","speaker":"0"},{"bg":"110230","ed":"113610","onebest":"与它所受到的合力的大小成正比。","speaker":"0"},{"bg":"113890","ed":"115810","onebest":"通常我们也写成","speaker":"0"},{"bg":"115810","ed":"117870","onebest":" f等于ma,","speaker":"0"},{"bg":"118750","ed":"123860","onebest":"其中f是这个物体受到的合力,m是它的质量,","speaker":"0"},{"bg":"124260","ed":"126160","onebest":"是这个物体的加速度。","speaker":"0"},{"bg":"126260","ed":"131520","onebest":"在这个表达式中所出现的质量常常被称为惯性质量,","speaker":"0"},{"bg":"131980","ed":"137130","onebest":"而在万有引力定律中出现的质量,我们称之为引力质量。","speaker":"0"},{"bg":"138610","ed":"142220","onebest":"牛顿第二定律还有一种表述形式,它就是","speaker":"0"},{"bg":"142220","ed":"145210","onebest":"物体的动量对时间的变化率","speaker":"0"},{"bg":"145330","ed":"148240","onebest":"与所受到的外力成正比,","speaker":"0"},{"bg":"148310","ed":"151150","onebest":"并且发生在外力的方向上。","speaker":"0"},{"bg":"151600","ed":"153110","onebest":"数学表达式","speaker":"0"},{"bg":"153110","ed":"155810","onebest":"是f等于dpdt","speaker":"0"},{"bg":"155810","ed":"157090","onebest":"其中p","speaker":"0"},{"bg":"157090","ed":"158780","onebest":"是物体的动量,","speaker":"0"},{"bg":"158980","ed":"161900","onebest":"f是物体所受到的合力,","speaker":"0"},{"bg":"162490","ed":"163280","onebest":"啊","speaker":"0"},{"bg":"164230","ed":"165540","onebest":"牛顿第一定律","speaker":"0"},{"bg":"165540","ed":"166930","onebest":"和第二定律","speaker":"0"},{"bg":"166930","ed":"168760","onebest":"都只涉及一个物体。","speaker":"0"},{"bg":"168810","ed":"171460","onebest":"接下来我们来看牛顿第三定律,","speaker":"0"},{"bg":"171910","ed":"173720","onebest":"在牛顿第三定律中,","speaker":"0"},{"bg":"173720","ed":"177990","onebest":"我们知道物体之间的相互作用应该具有什么样的性质?","speaker":"0"},{"bg":"178500","ed":"181600","onebest":"假设有两个物体,m一和m二,","speaker":"0"},{"bg":"181910","ed":"186990","onebest":"物体一受到的二对它的作用力,我们记作f12","speaker":"0"},{"bg":"187930","ed":"188900","onebest":"同向,","speaker":"0"},{"bg":"188900","ed":"193550","onebest":"物体二受到了一对它的作用力,我们记作f21。","speaker":"0"},{"bg":"193850","ed":"196870","onebest":"牛顿第三定律告诉我们,f12","speaker":"0"},{"bg":"196940","ed":"199970","onebest":"和f21它是成对出现的,","speaker":"0"},{"bg":"199970","ed":"203740","onebest":"两者大小相等,方向相反,","speaker":"0"},{"bg":"203960","ed":"205930","onebest":"作用在一条直线上,","speaker":"0"},{"bg":"206250","ed":"212080","onebest":"那因此这一对力呢也被通常的称为作用力与反作用力。","speaker":"0"},{"bg":"213540","ed":"214970","onebest":"牛顿三定律","speaker":"0"},{"bg":"214970","ed":"220890","onebest":"它是有适用条件的,适用条件是牛顿运动定律只适用于","speaker":"0"},{"bg":"220890","ed":"222320","onebest":"惯性参照系。","speaker":"0"},{"bg":"222970","ed":"227210","onebest":"那这样我们对牛顿运动定律做了一个简短的回顾。","speaker":"0"},{"bg":"228460","ed":"234240","onebest":"接下来我们来看令牛顿运动定律解决具体问题的步骤,","speaker":"0"},{"bg":"234240","ed":"237840","onebest":"这个步骤呢对于初学者是非常有帮助的。","speaker":"0"},{"bg":"237840","ed":"238880","onebest":"我们来看一下,","speaker":"0"},{"bg":"238880","ed":"242650","onebest":"它的解题步骤是首先你要选择研究对象,","speaker":"0"},{"bg":"243250","ed":"244480","onebest":"隔离物体","speaker":"0"},{"bg":"244650","ed":"252490","onebest":"之后呢对这个物体进行受力分析,看看它都受到什么样的力,并且把这些力呢用图","speaker":"0"},{"bg":"252490","ed":"254420","onebest":"清晰的表达出来。","speaker":"0"},{"bg":"255190","ed":"262220","onebest":"接下来你要分析一下这个物体的运动,举例说它的速度,它的加速度是什么方向的?","speaker":"0"},{"bg":"262530","ed":"268740","onebest":"它受到什么样的约束等等,它的运动具有什么样的性质,它的轨道是什么样的?","speaker":"0"},{"bg":"268740","ed":"273680","onebest":"总而言之,呢你就对于他的运动的一些信息呢进行分析。","speaker":"0"},{"bg":"274870","ed":"276340","onebest":"接下来第4步,","speaker":"0"},{"bg":"276340","ed":"278480","onebest":"你就要选择一个坐标系,","speaker":"0"},{"bg":"278480","ed":"281060","onebest":"列方程求解未知量。","speaker":"0"},{"bg":"281410","ed":"282350","onebest":"最后","speaker":"0"},{"bg":"282350","ed":"283140","onebest":"我们","speaker":"0"},{"bg":"283140","ed":"286940","onebest":"要对所得的结果进行检验和讨论,","speaker":"0"},{"bg":"286940","ed":"293940","onebest":"这就是我们解题的步骤,对于初学者大家不妨按照这样的一个步骤来试一试,","speaker":"0"},{"bg":"293940","ed":"296290","onebest":"看看对你是否有所帮助。","speaker":"0"},{"bg":"296980","ed":"300190","onebest":"接下来我们就来看具体的题目。","speaker":"0"}]
{

小结

能够使用讯飞语音转写功能,将音频文件转化为文本,并能够通过Re库进行解析,方便进行后续的NLP操作,但仍有一些小错误,需要人工手动修改。

标签:MOOC,bg,ed,牛顿,onebest,字幕,speaker,时间,文本
来源: https://blog.csdn.net/qq_41897800/article/details/113191201