[go: up one dir, main page]

CN111311889A - Arrival reminding method and device, storage medium and electronic equipment - Google Patents

Arrival reminding method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111311889A
CN111311889A CN202010125355.9A CN202010125355A CN111311889A CN 111311889 A CN111311889 A CN 111311889A CN 202010125355 A CN202010125355 A CN 202010125355A CN 111311889 A CN111311889 A CN 111311889A
Authority
CN
China
Prior art keywords
processor
station
public transportation
audio signal
arrival reminder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010125355.9A
Other languages
Chinese (zh)
Inventor
陈喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010125355.9A priority Critical patent/CN111311889A/en
Publication of CN111311889A publication Critical patent/CN111311889A/en
Priority to PCT/CN2021/074954 priority patent/WO2021169757A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/123Traffic control systems for road vehicles indicating the position of vehicles, e.g. scheduled vehicles; Managing passenger vehicles circulating according to a fixed timetable, e.g. buses, trains, trams

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the application discloses a method and a device for reminding of arriving at a station, a storage medium and electronic equipment, wherein a processor is used for receiving a request for reminding of arriving at the station, determining a target public transport station needing to be reminded of arriving at the station according to the request for reminding of arriving at the station, acquiring the number of target stations of public transport stations which the electronic equipment needs to pass through when arriving at the target public transport station, then controlling a microphone through a special voice recognition chip to collect external audio signals, recognizing the collected audio signals through the special voice recognition chip and a coprocessor, obtaining the number of stations which the electronic equipment has passed through the public transport station, and finally executing preset operation for reminding of arriving at the station through the processor when the number of the passed stations is consistent with the number of the target stations. Compared with the related art, the station arrival reminding can be realized without satellite positioning, so that the power consumption of the electronic equipment for realizing the station arrival reminding can be effectively reduced.

Description

到站提醒方法、装置、存储介质及电子设备Arrival reminder method, device, storage medium and electronic device

技术领域technical field

本申请涉及音频识别技术领域,具体涉及一种到站提醒方法、装置、存储介质及电子设备。The present application relates to the technical field of audio recognition, and in particular to an arrival reminder method, device, storage medium and electronic device.

背景技术Background technique

目前,如智能手机、平板电脑等电子设备已进入到人们的日常生活当中。人们可以在电子设备上安装各种各样的应用来拓展电子设备的功能,比如游戏、社交、购物等。当人们乘坐公共交通工具时,可能会因使用电子设备而发生坐过站的情况。为此,相关技术中利用卫星定位确定是否到站,并在到站时进行提醒。然而,电子设备需要通过处理器持续进行卫星定位以识别是否到站,而处理器的持续运行和卫星定位均需要较高的功耗,最终导致实现到站提醒的功耗较高。At present, electronic devices such as smart phones and tablet computers have entered people's daily life. People can install various applications on electronic devices to expand the functions of electronic devices, such as games, social networking, shopping and so on. When people use public transportation, they may experience passing stops due to the use of electronic devices. Therefore, in the related art, satellite positioning is used to determine whether to arrive at the station, and a reminder is given when the station arrives. However, the electronic device needs to continuously perform satellite positioning through the processor to identify whether to arrive at the station, and the continuous operation of the processor and the satellite positioning both require high power consumption, which ultimately leads to high power consumption for realizing the station arrival reminder.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种到站提醒方法、装置、存储介质及电子设备,能够降低电子设备实现到站提醒的功耗。The embodiments of the present application provide a method, apparatus, storage medium and electronic device for an arrival reminder, which can reduce the power consumption of the electronic device for realizing the arrival reminder.

第一方面,本申请实施例提供了一种到站提醒方法,应用于电子设备,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒方法包括:In a first aspect, an embodiment of the present application provides a method for reminding arrival at a station, which is applied to an electronic device, where the electronic device includes a microphone, a processor and a dedicated voice recognition chip, and the method for reminding at a station includes:

通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;Receive a station reminder request by the processor, and determine a target public transportation station that needs to perform an arrival reminder according to the arrival reminder request;

通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;Acquiring, by the processor, the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station;

通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;Control the microphone to collect external audio signals through the dedicated speech recognition chip;

通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Recognize the audio signal through the dedicated speech recognition chip and the processor, and obtain the number of stations that the electronic device has passed through public transportation stations;

当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。When the number of sites is consistent with the number of target sites, a preset arrival reminder operation is performed by the processor.

第二方面,本申请实施例提供了一种到站提醒装置,应用于电子设备,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒装置包括:In a second aspect, an embodiment of the present application provides an arrival reminder device, which is applied to an electronic device, where the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminder device includes:

请求接收模块,用于通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;a request receiving module, configured to receive an arrival reminder request through the processor, and determine a target public transportation station that needs to perform an arrival reminder according to the arrival reminder request;

数量确定模块,用于通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;a quantity determination module, configured to obtain, through the processor, the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station;

音频采集模块,用于通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;an audio collection module, configured to control the microphone to collect external audio signals through the dedicated speech recognition chip;

音频识别模块,用于通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;an audio recognition module for recognizing the audio signal through the dedicated speech recognition chip and the processor to obtain the number of stations where the electronic device has passed public transportation stations;

到站提醒模块,用于当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。An arrival reminder module, configured to execute a preset arrival reminder operation through the processor when the number of sites is consistent with the number of target sites.

第三方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,当所述计算机程序在包括麦克风、处理器和专用语音识别芯片的电子设备运行时,使得所述电子设备执行本申请实施例提供的到站提醒方法中的步骤。In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on an electronic device including a microphone, a processor and a dedicated speech recognition chip, the electronic device executes The steps in the arrival reminder method provided by the embodiment of the present application.

第四方面,本申请实施例还提供了一种电子设备,所述电子设备包括麦克风、处理器和功耗低于所述处理器的专用语音识别芯片,其中,In a fourth aspect, an embodiment of the present application further provides an electronic device, the electronic device includes a microphone, a processor, and a dedicated speech recognition chip with lower power consumption than the processor, wherein,

所述处理器用于接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;以及The processor is configured to receive an arrival reminder request, and determine, according to the arrival reminder request, a target public transportation station that needs to perform an arrival reminder; and

获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量:Obtain the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station:

所述专用语音识别芯片用于控制所述麦克风采集外部的音频信号;以及The dedicated speech recognition chip is used to control the microphone to collect external audio signals; and

协同所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Identifying the audio signal in cooperation with the processor, to obtain the number of stations where the electronic device has passed public transportation stations;

所述处理器还用于当所述站点数量与所述目标站点数量一致时,执行预设的到站提醒操作。The processor is further configured to perform a preset arrival reminder operation when the number of sites is consistent with the number of target sites.

本申请实施例中,通过处理器接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点,以及获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量,然后通过专用语音识别芯片控制麦克风采集外部的音频信号,并由专用语音识别芯片协同处理器识别采集到的音频信号,得到电子设备已经过公共交通站点的站点数量,最后当已经过的站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作。相较于相关技术,无需进行卫星定位即可实现到站提醒,从而能够有效降低电子设备实现到站提醒的功耗。In the embodiment of the present application, the processor receives the arrival reminder request, and determines the target public transportation station that needs to be reminded according to the arrival reminder request, and obtains the information of the public transportation station that the electronic device needs to pass through to reach the target public transportation station. The number of target stations, and then control the microphone to collect external audio signals through the special speech recognition chip, and the collected audio signals are recognized by the special speech recognition chip co-processor to obtain the number of stations where the electronic equipment has passed the public transportation station, and finally when the When the number of sites is the same as the number of target sites, a preset arrival reminder operation is performed by the processor. Compared with the related art, the arrival reminder can be realized without satellite positioning, which can effectively reduce the power consumption of the electronic device to realize the arrival reminder.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例提供的到站提醒方法的一流程示意图。FIG. 1 is a schematic flowchart of a method for reminding a station provided by an embodiment of the present application.

图2是本申请实施例中到站提醒界面的示例图。FIG. 2 is an example diagram of an arrival reminder interface in an embodiment of the present application.

图3是本申请实施例中地铁开关门时提示音的语谱图。FIG. 3 is a spectrogram of the prompt sound when the subway door opens and closes in the embodiment of the present application.

图4是本申请实施例中对音频信号进行无交叠分帧的示意图。FIG. 4 is a schematic diagram of non-overlapping framing of an audio signal in an embodiment of the present application.

图5是本申请实施例提供的到站提醒方法的另一流程示意图。FIG. 5 is another schematic flowchart of the arrival reminder method provided by the embodiment of the present application.

图6是本申请实施例提供的到站提醒装置的结构示意图。FIG. 6 is a schematic structural diagram of an arrival reminder device provided by an embodiment of the present application.

图7是本申请实施例提供的电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.

本申请实施例提供一种到站提醒方法、到站提醒装置、存储介质以及电子设备。其中,该到站提醒方法的执行主体可以是本申请实施例提供的到站提醒装置,或者集成了该到站提醒装置的电子设备,其中该到站提醒装置可以采用硬件或者软件的方式实现,电子设备可为计算设备诸如膝上型计算机、包含嵌入式计算机的计算机监视器、平板电脑、蜂窝电话、媒体播放器、或其它手持式或便携式电子设备、较小的设备(诸如腕表设备、挂式设备、耳机或听筒设备、被嵌入在眼镜中的设备或者佩戴在用户的头部上的其它设备,或其它可佩戴式或微型设备)、游戏设备、导航设备、嵌入式系统等。Embodiments of the present application provide an arrival reminder method, an arrival reminder device, a storage medium, and an electronic device. Wherein, the execution body of the arrival reminder method may be the arrival reminder device provided in the embodiment of the present application, or an electronic device integrated with the arrival reminder device, wherein the arrival reminder device may be implemented by means of hardware or software, The electronic device may be a computing device such as a laptop computer, a computer monitor including an embedded computer, a tablet computer, a cellular phone, a media player, or other hand-held or portable electronic devices, smaller devices such as wristwatch devices, hanging devices, headset or earpiece devices, devices embedded in glasses or other devices worn on the user's head, or other wearable or miniature devices), gaming devices, navigation devices, embedded systems, etc.

请参照图1,图1为本申请实施例提供的到站提醒方法的流程示意图。该到站提醒方法应用于本申请提供的电子设备,该电子设备包括处理器、专用语音识别芯片和麦克风,如图1所示,本申请实施例提供的到站提醒方法的流程可以如下:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for reminding arrival at a station provided by an embodiment of the present application. The arrival reminder method is applied to the electronic device provided by the application, and the electronic device includes a processor, a dedicated speech recognition chip and a microphone. As shown in FIG. 1 , the process of the arrival reminder method provided by the embodiment of the application may be as follows:

在101中,通过处理器接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点。In 101, the processor receives an arrival reminder request, and determines a target public transportation station that needs to perform arrival reminder according to the arrival reminder request.

应当说明的是,以下实施例中涉及的公共交通类型包括但不限于地铁、公交车等。It should be noted that the types of public transportation involved in the following embodiments include but are not limited to subways, buses, and the like.

本申请实施例中,处理器为适于通用处理任务的处理器,比如ARM架构的处理器。专用语音识别芯片是以语音识别为目的而设计的专用芯片,比如以语音识别为目的而设计的数字信号处理芯片,以语音识别为目的而设计的专用集成电路芯片等,其相较于通用的处理器,具有更低的功耗,适于语音识别任务的处理。其中,专用语音识别芯片、处理器以及麦克风任意二者之间通过通信总线(比如I2C总线)建立通信连接,实现数据的交互。其中,具体可由本领域普通技术人员根据实际需要选择处理器的型号以及专用语音识别芯片的型号。比如,可以选择的处理器型号包括但不限于骁龙855+、骁龙845、骁龙820、骁龙810以及骁龙710等。In this embodiment of the present application, the processor is a processor suitable for general processing tasks, such as a processor of an ARM architecture. Dedicated speech recognition chips are special-purpose chips designed for speech recognition, such as digital signal processing chips designed for speech recognition, application-specific integrated circuit chips designed for speech recognition, etc. The processor, with lower power consumption, is suitable for the processing of speech recognition tasks. Among them, any two of the dedicated speech recognition chip, the processor and the microphone establish a communication connection through a communication bus (such as an I2C bus) to realize data interaction. Specifically, the model of the processor and the model of the dedicated speech recognition chip can be selected by those of ordinary skill in the art according to actual needs. For example, the processor models that can be selected include but are not limited to Snapdragon 855+, Snapdragon 845, Snapdragon 820, Snapdragon 810, and Snapdragon 710.

此外,电子设备所包括的麦克风可以是内置的麦克风,也可以是外置的麦克风(可以是有线的麦克风,也可以是无线的麦克风)。In addition, the microphone included in the electronic device may be a built-in microphone or an external microphone (which may be a wired microphone or a wireless microphone).

在电子设备处于亮屏状态时,处理器接收用户输入的到站提醒请求。比如,处理器通过前台运行的公共交通应用所提供的到站提醒界面来接收用户输入的到站提醒请求。When the electronic device is in a bright screen state, the processor receives an arrival reminder request input by the user. For example, the processor receives the arrival reminder request input by the user through the arrival reminder interface provided by the public transportation application running in the foreground.

示例性的,请参照图2,图2所示的到站提醒界面中包括一条公共交通路线所经过的所有公共交通站点,即图示的公共交通站点1至公共交通站点9,处理器可以根据用户对任一公共交通站点关联的“闹钟”控件接收对应该公共交通站点的到站提醒请求,该到站提醒请求携带有对应公共交通站点的站点标识(比如,该站点的站点名称)。Exemplarily, please refer to FIG. 2 , the arrival reminder interface shown in FIG. 2 includes all the public transportation stations that a public transportation route passes through, that is, the public transportation station 1 to the public transportation station 9 shown in the figure. The "alarm clock" control associated with any public transportation station by the user receives an arrival reminder request corresponding to the public transportation station, and the arrival reminder request carries the station identifier (eg, the station name of the station) of the corresponding public transportation station.

在接收到输入的到站提醒请求之后,处理器解析出到站提醒请求所携带的站点标识,将该站点标识所对应的公共交通站点设置为需要进行到站提醒的目标公共交通站点。After receiving the input arrival reminder request, the processor parses out the site identifier carried in the arrival reminder request, and sets the public transportation station corresponding to the site identifier as the target public transportation station for which arrival reminder is required.

在102中,通过处理器获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量。In 102, the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station is acquired by the processor.

在确定需要进行到站提醒的目标公共交通站点之后,处理器进一步获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量。After determining the target public transportation station that needs to be reminded of arrival, the processor further acquires the target number of the public transportation stations that the electronic device needs to pass through to reach the target public transportation station.

其中,处理器首先获取当前与电子设备建立移动通信连接的当前基站的基站标识,并根据预设的基站标识和公共交通站点的对应关系,确定对应前述当前基站的公共交通站点,记为当前公共交通站点。The processor first obtains the base station identifier of the current base station that is currently connected with the electronic device for mobile communication, and determines the public transportation station corresponding to the current base station according to the preset correspondence between the base station identifier and the public transportation station, which is recorded as the current public transportation station. traffic stop.

应当说明的是,基站为电子设备提供网络接入服务,其位置通常是固定的,当电子设备与某一基站建立移动通信连接时,电子设备的位置即可确定。基于此,本申请实施例中预先将基站与距离其最近的公共交通站点关联,并进一步建立基站标识和公共交通站点的对应关系。其中,基站标识用于唯一表征基站,可由本领域普通技术人员根据实际需要选择作为基站标识的参数,比如,本申请实施例中,采用小区标识结合位置区码的方式作为基站标识。It should be noted that a base station provides a network access service for an electronic device, and its location is usually fixed. When the electronic device establishes a mobile communication connection with a certain base station, the location of the electronic device can be determined. Based on this, in the embodiment of the present application, the base station is pre-associated with the nearest public transportation station, and the corresponding relationship between the base station identifier and the public transportation station is further established. The base station identifier is used to uniquely characterize the base station, and can be selected as a parameter of the base station identifier by those of ordinary skill in the art according to actual needs.

在确定当前公共交通站点之后,处理器获取到预存的当前公共交通站点到目标公共交通站点的路线信息,并根据该路线信息、当前公共交通站点以及目标公共交通站点确定出电子设备由当前公共交通站点到达目标公共交通站点所需经过的公共交通站点的目标站点数量。After determining the current public transportation station, the processor obtains the pre-stored route information from the current public transportation station to the target public transportation station, and determines that the electronic device is connected by the current public transportation station according to the route information, the current public transportation station and the target public transportation station. The target number of public transport stops the station needs to pass through to reach the target public transport stop.

比如,对于图2所示的公共交通站点1到公共交通站点9的公共交通路线,假设目标公共交通站点为公共交通站点9,若确定的当前公共交通站点为公共交通站点3,则处理器可确定电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量为6。For example, for the public transportation route from public transportation station 1 to public transportation station 9 shown in FIG. 2, assuming that the target public transportation station is public transportation station 9, if the determined current public transportation station is public transportation station 3, the processor may It is determined that the target number of public transport stops that the electronic device needs to pass through to reach the target public transport stop is six.

在103中,通过专用语音识别芯片控制麦克风采集外部的音频信号。In 103, the microphone is controlled by a dedicated speech recognition chip to collect external audio signals.

处理器在确定电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量之后,指示专用语音识别芯片开始进行过站检测,也即检测是否经过公共交通站点。After determining the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station, the processor instructs the dedicated speech recognition chip to start passing station detection, that is, to detect whether to pass the public transport station.

相应的,专用语音识别芯片根据处理器的指示,控制麦克风采集外部的音频信号,用于过站检测。Correspondingly, according to the instructions of the processor, the dedicated speech recognition chip controls the microphone to collect the external audio signal for the detection of passing station.

在104中,通过专用语音识别芯片和处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量。In 104, the audio signal is recognized by the dedicated speech recognition chip and the processor, and the number of stops where the electronic device has passed the public transportation stops is obtained.

其中,专用语音识别芯片和处理器根据采集到的音频信号进行过站检测,也即是识别采集到的音频信号是否为经过公共交通站点的音频信号,若是则确定电子设备经过一个公共交通站点,由此,即可得到电子设备已经过公共交通站点的站点数量。Among them, the dedicated speech recognition chip and processor perform stop-pass detection according to the collected audio signal, that is, to identify whether the collected audio signal is an audio signal passing through a public transportation station, and if so, it is determined that the electronic device passes through a public transportation station. Thereby, the number of stops where the electronic device has passed the public transportation stops can be obtained.

示例性的,专用语音识别芯片先识别音频信号是否为经过公共交通站点的音频信号,当识别到音频信号为经过公共交通站点的音频信号时,将该音频信号提供给处理器,由处理器再次识别该音频信号是否为经过公共交通站点的音频信号,是则确定电子设备经过一个公共交通站点。Exemplarily, the dedicated speech recognition chip first identifies whether the audio signal is an audio signal passing through a public transportation station, and when it is recognized that the audio signal is an audio signal passing through a public transportation station, the audio signal is provided to the processor, and the processor is used again. It is identified whether the audio signal is an audio signal passing through a public transportation stop, and if so, it is determined that the electronic device passes through a public transportation stop.

比如,专用语音识别芯片可以音频信号中是否包括公共交通站点的音频特征,是则判定前述音频信号为经过公共交通站点的音频信号;而处理器可以直接将麦克风提供的音频信号与预先采集的经过公共交通站点的音频信号进行比对,当二者比对一致时,判定音频信号为经过公共交通站点的音频信号。For example, the dedicated speech recognition chip can determine whether the audio signal includes the audio features of the public transportation station, and if so, it can determine that the aforementioned audio signal is an audio signal passing through the public transportation station; and the processor can directly compare the audio signal provided by the microphone with the pre-collected audio signal. The audio signals of the public transportation station are compared, and when the two are consistent, it is determined that the audio signal is the audio signal passing through the public transportation station.

在105中,当前述站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作。In 105, when the aforementioned number of stations is consistent with the number of target stations, a preset arrival reminder operation is performed by the processor.

其中,处理器实时判定电子设备已经过公共交通站点的站点数量是否与目标站点数量一致,当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,说明电子设备此时已到达需要进行到站提醒的目标公共交通站点,此时处理器执行预设的到站提醒操作。对于到站提醒操作的类型,本申请实施例中不做具体限制,可由本领域普通技术人员根据实际需要进行设置,包括但不限于音频、视频、图像、文字等到站提醒方式。比如,处理器可以播放预设的到站提醒闹铃音,利用该到站提醒闹铃音提醒用户当前已到站。Among them, the processor determines in real time whether the number of stations where the electronic device has passed public transportation stations is consistent with the number of target stations. The target public transportation station of the arrival reminder, at this time, the processor executes the preset arrival reminder operation. The types of arrival reminder operations are not specifically limited in the embodiments of the present application, and can be set by those of ordinary skill in the art according to actual needs, including but not limited to arrival reminder methods such as audio, video, image, and text. For example, the processor may play a preset arrival reminder alarm tone, and use the arrival reminder alarm tone to remind the user that he has arrived at the station.

由上可知,本申请通过处理器接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点,以及获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量,然后通过专用语音识别芯片控制麦克风采集外部的音频信号,并由专用语音识别芯片协同处理器识别采集到的音频信号,得到电子设备已经过公共交通站点的站点数量,最后当已经过的站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作。相较于相关技术,无需进行卫星定位即可实现到站提醒,从而能够有效降低电子设备实现到站提醒的功耗。As can be seen from the above, the present application receives the arrival reminder request through the processor, and determines the target public transportation station that needs to be reminded according to the arrival reminder request, and obtains the information of the public transportation station that the electronic device needs to pass through to reach the target public transportation station. The number of target stations, and then control the microphone to collect external audio signals through the special speech recognition chip, and the collected audio signals are recognized by the special speech recognition chip co-processor to obtain the number of stations where the electronic equipment has passed the public transportation station, and finally when the When the number of sites is the same as the number of target sites, a preset arrival reminder operation is performed by the processor. Compared with the related art, the arrival reminder can be realized without satellite positioning, which can effectively reduce the power consumption of the electronic device to realize the arrival reminder.

在一实施例中,通过专用语音识别芯片和处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量,包括:In one embodiment, the audio signal is recognized by a dedicated speech recognition chip and a processor to obtain the number of stations where the electronic device has passed public transportation stations, including:

(1)通过专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分;(1) Identify whether the audio signal includes the frequency component corresponding to the public transportation station through a dedicated speech recognition chip;

(2)当识别到音频信号中包括前述频率成分时,通过处理器识别音频信号是否为对应公共交通站点的预设音频信号;(2) when recognizing that the audio signal includes the aforementioned frequency components, identify by the processor whether the audio signal is a preset audio signal corresponding to a public transportation station;

(3)根据处理器识别结果为是的识别次数,得到站点数量。(3) The number of sites is obtained according to the number of recognition times when the processor's recognition result is yes.

应当说明的是,对于不同类型的公共交通站点,存在特定的声音特征。It should be noted that there are specific sound signatures for different types of public transport stops.

比如,对于公交车站点,当公交车经过公交车站点时,存在公交车开/关门(即到站开门,离站关门)提示音的声音特征;而对于地铁站点,当地铁经过地铁站点时,则存在地铁开/关门(同样是到站开门,离站关门)提示音的声音特征。For example, for a bus station, when the bus passes through the bus station, there is a sound feature of the door opening/closing (ie, the door opens at the station, and the door closes when leaving the station); for a subway station, when the subway passes the subway station, Then there is the sound feature of the prompt tone of the subway door opening/closing (the same is to open the door at the station and close the door at the departure station).

示例性的,以地铁站点为例,请参照图3,图3为地铁开关门时提示音的语谱图,根据该语谱图可以看出,地铁开关门的提示音多个频率成分组成。相应的,可以预先建立地铁站点和相应频率成分的对应关系。同理可以建立公共交通站点和相应频率成分的对应关系。Illustratively, taking a subway station as an example, please refer to FIG. 3 . FIG. 3 is a spectrogram of the prompt sound when the subway door is opened. According to the spectrogram, it can be seen that the prompt sound of the subway door opening and closing is composed of multiple frequency components. Correspondingly, the correspondence between subway stations and corresponding frequency components can be established in advance. In the same way, the corresponding relationship between public transport stations and corresponding frequency components can be established.

由此,在对音频信号进行识别时,可由专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分。若是,则可以初步判定电子设备经过了一个公共交通站点,将音频信号提供给处理器,由处理器做进一步识别。其中,处理器识别音频信号是否为对应公共交通站点的预设音频信号,是则可以确定电子设备已经过一个公共交通站点。Therefore, when the audio signal is recognized, the dedicated speech recognition chip can recognize whether the audio signal includes the frequency component corresponding to the public transportation station. If so, it can be preliminarily determined that the electronic device has passed a public transportation station, and the audio signal is provided to the processor for further identification by the processor. Wherein, the processor identifies whether the audio signal is a preset audio signal corresponding to a public transportation station, and if so, it can be determined that the electronic device has passed a public transportation station.

因此,处理器根据其识别结果为是的识别次数,即可得到电子设备已经过公共交通站点的站点数量,其中,处理器可以直接将识别结果为是的识别次数作为电子设备已经过公共交通站点的站点数量。Therefore, the processor can obtain the number of stations where the electronic device has passed the public transportation station according to the number of times of recognition that the identification result is yes, wherein the processor can directly use the number of times the identification result is yes as the number of times the electronic device has passed the public transportation station number of sites.

比如,处理器对专用语音识别芯片在不同时刻提供的多个音频信号分别进行了识别,若其中识别结果为是的次数为N,则说明电子设备已经过公共交通站点的站点数量也为N。For example, the processor recognizes multiple audio signals provided by the dedicated speech recognition chip at different times. If the number of times the recognition result is yes is N, it means that the number of stations where the electronic device has passed public transportation stations is also N.

在一实施例中,通过专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分之前,还包括:In one embodiment, before identifying whether the audio signal includes the frequency component corresponding to the public transportation station by using a dedicated speech recognition chip, the method further includes:

通过专用语音识别芯片滤除音频信号中的人声频率成分。The human voice frequency components in the audio signal are filtered out through a dedicated speech recognition chip.

其中,在对音频信号进行识别之前,可以提取滤除音频信号中的人声频率成分,以减小人声频率成分对识别带来的干扰。Wherein, before the audio signal is identified, the human voice frequency components in the audio signal can be extracted and filtered, so as to reduce the interference caused by the human voice frequency components to the identification.

在一实施例中,通过专用语音识别芯片识别前述音频信号中是否包括对应公共交通站点的频率成分,包括:In one embodiment, identifying whether the aforementioned audio signal includes the frequency component corresponding to the public transportation station by using a dedicated speech recognition chip, including:

通过专用语音识别芯片识别前述频率成分在前述音频信号中的持续时长是否达到预设时长,是则确定前述音频信号中包括前述频率成分。Whether the duration of the aforementioned frequency component in the aforementioned audio signal reaches a preset duration is identified by a dedicated speech recognition chip, and if yes, it is determined that the aforementioned frequency component is included in the aforementioned audio signal.

本申请实施例中,专用语音识别芯片在识别麦克风提供的音频信号中是否包括对应公共交通站点的频率成分时,可以识别对应公共交通站点的频率成分在该音频信号中的持续时长是否达到预设时长,当识别到前述频率成分在该音频信号中持续时长达到预设时长时,确定该音频信号包括对应公共交通站点的频率成分。In the embodiment of the present application, when recognizing whether the audio signal provided by the microphone includes the frequency component corresponding to the public transportation station, the dedicated speech recognition chip can identify whether the duration of the frequency component corresponding to the public transportation station in the audio signal reaches a preset duration Duration, when it is recognized that the aforementioned frequency components persist in the audio signal for a predetermined duration, it is determined that the audio signal includes frequency components corresponding to the public transportation station.

应当说明的是,不同的类型的公共交通站点,其对应的频率成分也不同。It should be noted that different types of public transportation stations have different corresponding frequency components.

比如,以地铁站点为例,其对应7个不同的频率成分,这7个不同的频率成分分别对应相应的预设时长,且不同频率成分所对应的预设时长不同,专用语音识别芯片分别识别地铁站点对应的7个频率成分在麦克风提供的音频信号中的持续时长是否达到各自对应预设时长,若均达到,则可确定该音频信号包括地铁站点对应的频率成分,即可判定电子设备经过一个地铁站点。For example, taking a subway station as an example, it corresponds to 7 different frequency components, these 7 different frequency components correspond to corresponding preset durations, and the preset durations corresponding to different frequency components are different. Whether the durations of the seven frequency components corresponding to the subway station in the audio signal provided by the microphones have reached their respective preset durations, and if they are all reached, it can be determined that the audio signal includes the frequency components corresponding to the subway station, and it can be determined that the electronic device has passed a subway station.

在一实施例中,通过专用语音识别芯片识别前述频率成分在音频信号中的持续时长是否达到预设时长,包括:In one embodiment, identifying whether the duration of the aforementioned frequency components in the audio signal reaches a preset duration by using a dedicated speech recognition chip, including:

(1)通过专用语音识别芯片对前述音频信号进行无交叠分帧处理,得到多个音频帧;(1) The above-mentioned audio signal is subjected to non-overlapping framing processing by a dedicated speech recognition chip to obtain a plurality of audio frames;

(2)通过专用语音识别芯片对音频帧进行傅里叶变换,并根据傅里叶变换结果识别前述频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定前述频率成分在前述音频信号中的持续时长达到预设时长。(2) Fourier transform is performed on the audio frame by a special speech recognition chip, and according to the Fourier transform result, whether the amplitudes of the aforementioned frequency components in the continuous audio frames within the preset duration all reach the preset amplitude, yes Then, it is determined that the duration of the aforementioned frequency component in the aforementioned audio signal reaches a preset duration.

本申请实施例中,在识别前述频率成分在音频信号中的持续时长是否达到预设时长时,专用语音识别芯片首先对麦克风提供的音频信号进行无交叠分帧处理,得到多个音频帧。In the embodiment of the present application, when identifying whether the duration of the aforementioned frequency components in the audio signal reaches a preset duration, the dedicated speech recognition chip first performs non-overlapping frame division processing on the audio signal provided by the microphone to obtain multiple audio frames.

比如,请参照图4,专用语音识别芯片对于麦克风提供的音频信号x(n)进行无交叠分帧,每帧长度为N,共分帧得到m个音频帧,每个音频帧可以表示为xm(n)。其中,无交叠分帧可以通俗的理解为分帧得到两个相邻音频帧之间不存在交叠部分。For example, please refer to FIG. 4, the dedicated speech recognition chip performs non-overlapping frame division for the audio signal x(n) provided by the microphone, the length of each frame is N, and m audio frames are obtained by dividing the frame into frames, and each audio frame can be expressed as x m (n). Among them, non-overlapping framing can be generally understood as framing to obtain that there is no overlap between two adjacent audio frames.

在分帧得到多个音频帧之后,专用语音识别芯片进一步对分帧得到的每一音频帧进行傅里叶变换,并根据傅里叶变换结果识别对应公共交通站点的频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定频率成分在音频信号中的持续时长达到预设时长。其中,预设时长可由本领域普通技术人员根据实际需要进行设置,本申请实施例中不做具体限制。After obtaining multiple audio frames by framing, the dedicated speech recognition chip further performs Fourier transform on each audio frame obtained by framing, and identifies the frequency components of the corresponding public transportation stations within a preset time period according to the Fourier transform results. Whether the amplitudes in the consecutive audio frames of the frequency components all reach the preset amplitude, and if so, it is determined that the duration of the frequency component in the audio signal reaches the preset duration. The preset duration can be set by those of ordinary skill in the art according to actual needs, which is not specifically limited in this embodiment of the present application.

比如,对音频帧xm(n)进行快速傅里叶变换,得到对应的傅里叶变换结果Xm(n)=FFT[xm(n)],则傅里叶变换的频率分辨率为fs/N,其中fs为音频信号的采样频率,N为音频帧的长度。对于任一频率成分f,其在傅里叶变换结果Xm(n)中的位置为i=Nf/fs,可以表示为Xm(i)。然后,对于对应公共交通站点的频率成分f',在每一音频帧内,频率成分f'的幅值为

Figure BDA0002394236470000091
其中abs[]表示求取绝对值。对于频率成分f',若频率成分f'在预设时长t内的连续音频帧每帧的幅值
Figure BDA0002394236470000092
均达到预设幅值α时,则确定频率成分f'在音频信号中的持续时长达到预设时长t。For example, perform fast Fourier transform on the audio frame x m (n) to obtain the corresponding Fourier transform result X m (n)=FFT[x m (n)], then the frequency resolution of the Fourier transform is f s /N, where f s is the sampling frequency of the audio signal, and N is the length of the audio frame. For any frequency component f, its position in the Fourier transform result X m (n) is i=Nf/f s , which can be expressed as X m (i). Then, for the frequency component f' of the corresponding public transportation station, in each audio frame, the amplitude of the frequency component f' is
Figure BDA0002394236470000091
Where abs[] means to find the absolute value. For the frequency component f', if the frequency component f' is within the preset duration t, the amplitude of each frame of consecutive audio frames
Figure BDA0002394236470000092
When both reach the preset amplitude α, it is determined that the duration of the frequency component f' in the audio signal reaches the preset duration t.

在一实施例中,通过处理器识别音频信号是否为对应公共交通站点的预设音频信号,包括:In one embodiment, identifying by the processor whether the audio signal is a preset audio signal corresponding to a public transportation station includes:

(1)通过处理器调用预训练的对应预设音频信号的音频识别模型;(1) calling the pre-trained audio recognition model corresponding to the preset audio signal by the processor;

(2)根据音频识别模型识别音频信号是否为对应公共交通站点的预设音频信号。(2) Identifying whether the audio signal is a preset audio signal corresponding to a public transportation station according to the audio recognition model.

应当说明的是,本申请实施例中,预先训练有对应预设音频信号的音频识别模型,其被配置为对输入的待识别音频信号进行分类,得到待识别音频信号为预设音频信号的分类结果,或者得到待识别音频信号不为预设音频信号的分类结果。It should be noted that, in the embodiment of the present application, an audio recognition model corresponding to a preset audio signal is pre-trained, and it is configured to classify the input audio signal to be recognized to obtain a classification of the audio signal to be recognized as the preset audio signal. As a result, or a classification result that the audio signal to be identified is not the preset audio signal is obtained.

示例性的,可以预先采集对应公共交通站点的预设音频信号,并提取其语谱图作为训练样本,利用卷积神经网络根据训练样本进行训练,得到音频识别模型。Exemplarily, preset audio signals corresponding to public transport stations may be collected in advance, and the spectrograms thereof may be extracted as training samples, and a convolutional neural network may be used for training according to the training samples to obtain an audio recognition model.

相应的,在通过处理器识别音频信号是否为对应公共交通站点的预设音频信号时,处理器即可调用预训练的对应预设音频信号的音频识别模型,并将专用语音识别芯片提供的音频信号输入到音频识别模型中进行分类,得到该音频信号为前述预设音频信号的识别结果,或者得到该音频信号不为前述预设音频信号的识别结果。Correspondingly, when the processor identifies whether the audio signal is the preset audio signal corresponding to the public transportation station, the processor can call the pre-trained audio recognition model corresponding to the preset audio signal, and use the audio provided by the special speech recognition chip. The signal is input into the audio recognition model for classification, and the recognition result that the audio signal is the aforementioned preset audio signal is obtained, or the recognition result that the audio signal is not the aforementioned preset audio signal is obtained.

在一实施例中,通过处理器接收到站提醒请求,包括:In one embodiment, receiving a station reminder request by the processor includes:

(1)通过处理器侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面;(1) The trigger information generated by the public transportation application is detected by the processor, and the arrival reminder interface is provided according to the trigger information;

(2)通过到站提醒界面接收到站提醒请求。(2) The arrival reminder request is received through the arrival reminder interface.

应当说明的是,在前台运行公共交通应用时,处理器可以通过公共交通应用接收用于指示显示乘车码的显示请求,并根据该显示请求显示乘车码,使得用户能够快速的通过地铁闸机,或者进入公交车等。相应的,公共交通应用在显示的乘车码被扫描后,将产生触发信息,用于指示乘车码已被扫描。It should be noted that when the public transport application is running in the foreground, the processor may receive a display request for indicating the display of the bus code through the public transport application, and display the bus code according to the display request, so that the user can quickly pass through the subway gate. machine, or into a bus, etc. Correspondingly, after the displayed boarding code is scanned, the public transportation application will generate trigger information to indicate that the boarding code has been scanned.

相应的,处理器可以侦测公共交通应用产生的触发信息,若侦测到的该触发信息,则可确定电子设备以随用户进入地铁站点,或登上公交车,此时提供到站提醒界面,通过该到站提醒界面接收到站提醒请求。Correspondingly, the processor can detect the trigger information generated by the public transportation application. If the trigger information is detected, the electronic device can be determined to enter the subway station with the user or board the bus, and at this time, an arrival reminder interface is provided. , and receive the arrival reminder request through the arrival reminder interface.

在一实施例中,为了确保到站提醒的准确性,当站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作,包括:In one embodiment, in order to ensure the accuracy of the arrival reminder, when the number of sites is consistent with the number of target sites, the processor performs a preset arrival reminder operation, including:

(1)当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,通过处理器获取与电子设备建立移动通信连接的基站的基站标识;(1) When the number of sites that the electronic device has passed through the public transportation station is consistent with the number of target sites, obtain the base station identifier of the base station that establishes a mobile communication connection with the electronic device through the processor;

(2)根据预设的基站标识和公共交通站点的对应关系,通过处理器确定对应基站标识的公共交通站点;(2) According to the preset correspondence between the base station identifier and the public transportation station, determine the public transportation station corresponding to the base station identifier through the processor;

(3)当前述公共交通站点为目标公共交通站点时,通过处理器执行预设的到站提醒操作。(3) When the aforementioned public transportation station is the target public transportation station, a preset arrival reminder operation is performed by the processor.

本申请实施例中,处理器在识别到电子设备已经过公共交通站点的站点数量与目标站点数量一致时,并不立即执行预设的到站提醒操作,而是先对电子设备实际到达的公共交通站点进行识别,当电子设备实际到达的公共交通站点与目标公共交通站点一致时,才执行预设的到站提醒操作。In the embodiment of the present application, when the processor recognizes that the number of stations that the electronic device has passed through the public transportation station is the same as the number of target stations, it does not immediately execute the preset arrival reminder operation, but firstly informs the public transportation station that the electronic device actually arrives at. The traffic station is identified, and the preset arrival reminder operation is performed only when the public transport station actually reached by the electronic device is consistent with the target public transport station.

其中,当识别到电子设备已经过公共交通站点的站点数量与目标站点数量一致时,处理器首先获取到与电子设备建立移动通信连接的基站的基站标识,也即是获取到为电子设备提供网络接入服务的基站的基站标识。Wherein, when it is recognized that the number of stations where the electronic device has passed the public transportation station is consistent with the number of target stations, the processor first obtains the base station identifier of the base station that establishes a mobile communication connection with the electronic device, that is, obtains the network for the electronic device. The base station identifier of the base station accessing the service.

然后,处理器根据预设的基站标识和公共交通站点的对应关系,确定出对应获取到的基站标识的公共交通站点,作为电子设备实际到达的公共交通站点。Then, the processor determines, according to the preset correspondence between the base station identifier and the public transportation station, the public transportation station corresponding to the acquired base station identifier as the public transportation station actually reached by the electronic device.

在确定电子设备实际到达的公共交通站点时,处理器进一步识别电子设备实际达到的公共交通站点是否为目标公共交通站点,当电子设备实际到达的公共交通站点为目标公共交通站点时,处理器执行预设的到站提醒操作,具体可参照以上实施例中的相关描述,此处不再赘述。When determining the public transportation station actually reached by the electronic device, the processor further identifies whether the public transportation station actually reached by the electronic device is the target public transportation station, and when the public transportation station actually reached by the electronic device is the target public transportation station, the processor executes For the preset arrival reminder operation, reference may be made to the relevant descriptions in the above embodiments, which will not be repeated here.

图5为本申请实施例提供的到站提醒方法的另一流程示意图。该到站提醒方法应用于本申请提供的电子设备,该电子设备包括处理器、专用语音识别芯片和麦克风,如图5所示,本申请实施例提供的到站提醒方法的流程可以如下:FIG. 5 is another schematic flowchart of the arrival reminder method provided by the embodiment of the present application. The arrival reminder method is applied to the electronic device provided by the application, and the electronic device includes a processor, a dedicated speech recognition chip and a microphone. As shown in FIG. 5 , the process of the arrival reminder method provided by the embodiment of the application may be as follows:

在201中,处理器侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面。In 201, the processor detects trigger information generated by the public transportation application, and provides an arrival reminder interface according to the trigger information.

应当说明的是,在前台运行公共交通应用时,处理器可以通过公共交通应用接收用于指示显示乘车码的显示请求,并根据该显示请求显示乘车码,使得用户能够快速的通过地铁闸机,或者进入公交车等。相应的,公共交通应用在显示的乘车码被扫描后,将产生触发信息,用于指示乘车码已被扫描。It should be noted that when the public transport application is running in the foreground, the processor may receive a display request for indicating the display of the bus code through the public transport application, and display the bus code according to the display request, so that the user can quickly pass through the subway gate. machine, or into a bus, etc. Correspondingly, after the displayed boarding code is scanned, the public transportation application will generate trigger information to indicate that the boarding code has been scanned.

相应的,处理器可以侦测公共交通应用产生的触发信息,若侦测到的该触发信息,则可确定电子设备以随用户进入地铁站点,或登上公交车,此时提供到站提醒界面,以通过该到站提醒界面接收到站提醒请求。Correspondingly, the processor can detect the trigger information generated by the public transportation application. If the trigger information is detected, the electronic device can be determined to enter the subway station with the user or board the bus, and at this time, an arrival reminder interface is provided. , to receive the arrival reminder request through the arrival reminder interface.

在202中,处理器通过到站提醒界面接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点。In 202, the processor receives a stop reminder request through the arrival reminder interface, and determines a target public transportation station that needs to perform an arrival reminder according to the arrival reminder request.

示例性的,请参照图2,图2所示的到站提醒界面中包括一条公共交通路线所经过的所有公共交通站点,即图示的公共交通站点1至公共交通站点9,处理器可以根据用户对任一公共交通站点关联的“闹钟”控件接收对应该公共交通站点的到站提醒请求,该到站提醒请求携带有对应公共交通站点的站点标识(比如,该站点的站点名称)。Exemplarily, please refer to FIG. 2 , the arrival reminder interface shown in FIG. 2 includes all the public transportation stations that a public transportation route passes through, that is, the public transportation station 1 to the public transportation station 9 shown in the figure. The "alarm clock" control associated with any public transportation station by the user receives an arrival reminder request corresponding to the public transportation station, and the arrival reminder request carries the station identifier (eg, the station name of the station) of the corresponding public transportation station.

在接收到输入的到站提醒请求之后,处理器解析出到站提醒请求所携带的站点标识,将该站点标识所对应的公共交通站点设置为需要进行到站提醒的目标公共交通站点。After receiving the input arrival reminder request, the processor parses out the site identifier carried in the arrival reminder request, and sets the public transportation station corresponding to the site identifier as the target public transportation station for which arrival reminder is required.

在203中,处理器获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量。In 203, the processor acquires the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station.

在确定需要进行到站提醒的目标公共交通站点之后,处理器进一步获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量。After determining the target public transportation station that needs to be reminded of arrival, the processor further acquires the target number of the public transportation stations that the electronic device needs to pass through to reach the target public transportation station.

其中,处理器首先获取当前与电子设备建立移动通信连接的当前基站的基站标识,并根据预设的基站标识和公共交通站点的对应关系,确定对应前述当前基站的公共交通站点,记为当前公共交通站点。The processor first obtains the base station identifier of the current base station that is currently connected with the electronic device for mobile communication, and determines the public transportation station corresponding to the current base station according to the preset correspondence between the base station identifier and the public transportation station, which is recorded as the current public transportation station. traffic stop.

应当说明的是,基站为电子设备提供网络接入服务,其位置通常是固定的,当电子设备与某一基站建立移动通信连接时,电子设备的位置即可确定。基于此,本申请实施例中预先将基站与距离其最近的公共交通站点关联,并进一步建立基站标识和公共交通站点的对应关系。其中,基站标识用于唯一表征基站,可由本领域普通技术人员根据实际需要选择作为基站标识的参数,比如,本申请实施例中,采用小区标识结合位置区码的方式作为基站标识。It should be noted that a base station provides a network access service for an electronic device, and its location is usually fixed. When the electronic device establishes a mobile communication connection with a certain base station, the location of the electronic device can be determined. Based on this, in the embodiment of the present application, the base station is pre-associated with the nearest public transportation station, and the corresponding relationship between the base station identifier and the public transportation station is further established. The base station identifier is used to uniquely characterize the base station, and can be selected as a parameter of the base station identifier by those of ordinary skill in the art according to actual needs.

在确定当前公共交通站点之后,处理器获取到预存的当前公共交通站点到目标公共交通站点的路线信息,并根据该路线信息、当前公共交通站点以及目标公共交通站点确定出电子设备由当前公共交通站点到达目标公共交通站点所需经过的公共交通站点的目标站点数量。After determining the current public transportation station, the processor obtains the pre-stored route information from the current public transportation station to the target public transportation station, and determines that the electronic device is connected by the current public transportation station according to the route information, the current public transportation station and the target public transportation station. The target number of public transport stops the station needs to pass through to reach the target public transport stop.

比如,对于图2所示的公共交通站点1到公共交通站点9的公共交通路线,假设目标公共交通站点为公共交通站点9,若确定的当前公共交通站点为公共交通站点3,则处理器可确定电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量为6。For example, for the public transportation route from public transportation station 1 to public transportation station 9 shown in FIG. 2, assuming that the target public transportation station is public transportation station 9, if the determined current public transportation station is public transportation station 3, the processor may It is determined that the target number of public transport stops that the electronic device needs to pass through to reach the target public transport stop is six.

在204中,专用语音识别芯片控制麦克风采集外部的音频信号。In 204, the dedicated speech recognition chip controls the microphone to collect external audio signals.

处理器在确定电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量之后,指示专用语音识别芯片开始进行过站检测,也即检测是否经过公共交通站点。After determining the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station, the processor instructs the dedicated speech recognition chip to start passing station detection, that is, to detect whether to pass the public transport station.

相应的,专用语音识别芯片根据处理器的指示,控制麦克风采集外部的音频信号,用于过站检测。Correspondingly, according to the instructions of the processor, the dedicated speech recognition chip controls the microphone to collect the external audio signal for the detection of passing station.

在205中,专用语音识别芯片协同处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量。In 205, the dedicated speech recognition chip cooperates with the processor to recognize the audio signal, and obtains the number of stations where the electronic device has passed the public transportation station.

其中,专用语音识别芯片和处理器根据采集到的音频信号进行过站检测,也即是识别采集到的音频信号是否为经过公共交通站点的音频信号,若是则确定电子设备经过一个公共交通站点,由此,即可得到电子设备已经过公共交通站点的站点数量。Among them, the dedicated speech recognition chip and processor perform stop-pass detection according to the collected audio signal, that is, to identify whether the collected audio signal is an audio signal passing through a public transportation station, and if so, it is determined that the electronic device passes through a public transportation station. Thereby, the number of stops where the electronic device has passed the public transportation stops can be obtained.

示例性的,专用语音识别芯片先识别音频信号是否为经过公共交通站点的音频信号,当识别到音频信号为经过公共交通站点的音频信号时,将该音频信号提供给处理器,由处理器再次识别该音频信号是否为经过公共交通站点的音频信号,是则确定电子设备经过一个公共交通站点。Exemplarily, the dedicated speech recognition chip first identifies whether the audio signal is an audio signal passing through a public transportation station, and when it is recognized that the audio signal is an audio signal passing through a public transportation station, the audio signal is provided to the processor, and the processor is used again. It is identified whether the audio signal is an audio signal passing through a public transportation stop, and if so, it is determined that the electronic device passes through a public transportation stop.

比如,专用语音识别芯片可以音频信号中是否包括公共交通站点的音频特征,是则判定前述音频信号为经过公共交通站点的音频信号;而处理器可以直接将麦克风提供的音频信号与预先采集的经过公共交通站点的音频信号进行比对,当二者比对一致时,判定音频信号为经过公共交通站点的音频信号。For example, the dedicated speech recognition chip can determine whether the audio signal includes the audio features of the public transportation station, and if so, it can determine that the aforementioned audio signal is an audio signal passing through the public transportation station; and the processor can directly compare the audio signal provided by the microphone with the pre-collected audio signal. The audio signals of the public transportation station are compared, and when the two are consistent, it is determined that the audio signal is the audio signal passing through the public transportation station.

在206中,当站点数量与目标站点数量一致时,处理器获取与电子设备建立移动通信连接的基站的基站标识。In 206, when the number of sites is consistent with the number of target sites, the processor acquires the base station identifier of the base station that establishes the mobile communication connection with the electronic device.

其中,当识别到电子设备已经过公共交通站点的站点数量与目标站点数量一致时,处理器首先获取到与电子设备建立移动通信连接的基站的基站标识,也即是获取到为电子设备提供网络接入服务的基站的基站标识。Wherein, when it is recognized that the number of stations where the electronic device has passed the public transportation station is consistent with the number of target stations, the processor first obtains the base station identifier of the base station that establishes a mobile communication connection with the electronic device, that is, obtains the network for the electronic device. The base station identifier of the base station accessing the service.

在207中,处理器根据预设的基站标识和公共交通站点的对应关系,确定对应基站标识的公共交通站点。In 207, the processor determines a public transportation station corresponding to the base station identifier according to the preset correspondence between the base station identifier and the public transportation station.

然后,处理器根据预设的基站标识和公共交通站点的对应关系,确定出对应获取到的基站标识的公共交通站点,作为电子设备实际到达的公共交通站点。Then, the processor determines, according to the preset correspondence between the base station identifier and the public transportation station, the public transportation station corresponding to the acquired base station identifier as the public transportation station actually reached by the electronic device.

在208中,当公共交通站点为目标公共交通站点时,通过处理器执行预设的到站提醒操作。In 208, when the public transportation station is the target public transportation station, a preset arrival reminder operation is performed by the processor.

在确定电子设备实际到达的公共交通站点时,处理器进一步识别电子设备实际达到的公共交通站点是否为目标公共交通站点,当电子设备实际到达的公共交通站点为目标公共交通站点时,处理器执行预设的到站提醒操作。When determining the public transportation station actually reached by the electronic device, the processor further identifies whether the public transportation station actually reached by the electronic device is the target public transportation station, and when the public transportation station actually reached by the electronic device is the target public transportation station, the processor executes Preset arrival reminder operation.

其中,对于到站提醒操作的类型,本申请实施例中不做具体限制,可由本领域普通技术人员根据实际需要进行设置,包括但不限于音频、视频、图像、文字等到站提醒方式。比如,处理器可以播放预设的到站提醒闹铃音,利用该到站提醒闹铃音提醒用户当前已到站。The types of arrival reminder operations are not specifically limited in the embodiments of the present application, and can be set by those of ordinary skill in the art according to actual needs, including but not limited to audio, video, image, text and other arrival reminder methods. For example, the processor may play a preset arrival reminder alarm tone, and use the arrival reminder alarm tone to remind the user that he has arrived at the station.

请参照图6,图6为本申请实施例提供的到站提醒装置的结构示意图。该到站提醒装置可以应用于电子设备,该电子设备包括处理器、专用语音识别芯片和麦克风。到站提醒装置可以包括请求接收模块301、数量确定模块302、音频采集模块303、音频识别模块304以及到站提醒模块305,其中,Please refer to FIG. 6 , which is a schematic structural diagram of an arrival reminder device provided by an embodiment of the present application. The arrival reminder device can be applied to an electronic device, and the electronic device includes a processor, a dedicated voice recognition chip and a microphone. The arrival reminder device may include a request receiving module 301, a quantity determination module 302, an audio collection module 303, an audio recognition module 304, and an arrival reminder module 305, wherein,

请求接收模块301,用于通过处理器接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点;The request receiving module 301 is configured to receive the arrival reminder request through the processor, and determine the target public transportation station that needs to perform the arrival reminder according to the arrival reminder request;

数量确定模块302,用于通过处理器获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量;A quantity determination module 302, configured to obtain, through the processor, the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station;

音频采集模块303,用于通过专用语音识别芯片控制麦克风采集外部的音频信号;The audio collection module 303 is used to control the microphone to collect external audio signals through the dedicated speech recognition chip;

音频识别模块304,用于通过专用语音识别芯片和处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量;The audio recognition module 304 is used for recognizing the audio signal through the dedicated speech recognition chip and the processor to obtain the number of stations where the electronic device has passed the public transportation station;

到站提醒模块305,用于当前述站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作。The arrival reminder module 305 is configured to execute a preset arrival reminder operation through the processor when the aforementioned number of sites is consistent with the number of target sites.

在一实施例中,在通过专用语音识别芯片和处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量时,音频识别模块304用于:In one embodiment, when the audio signal is recognized by the dedicated speech recognition chip and the processor to obtain the number of stations the electronic device has passed through the public transportation station, the audio recognition module 304 is used for:

通过专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分;Identify whether the audio signal includes the frequency component of the corresponding public transportation station through a dedicated speech recognition chip;

当识别到音频信号中包括前述频率成分时,通过处理器识别音频信号是否为对应公共交通站点的预设音频信号;When it is recognized that the audio signal includes the aforementioned frequency components, identifying by the processor whether the audio signal is a preset audio signal corresponding to a public transportation station;

根据处理器识别结果为是的识别次数,得到前述站点数量。According to the number of times of recognition that the processor's recognition result is yes, the aforementioned number of sites is obtained.

在一实施例中,在通过专用语音识别芯片识别前述音频信号中是否包括对应公共交通站点的频率成分时,音频识别模块304用于:In one embodiment, when identifying whether the aforementioned audio signal includes a frequency component corresponding to a public transportation stop through a dedicated speech recognition chip, the audio recognition module 304 is used to:

通过专用语音识别芯片识别前述频率成分在前述音频信号中的持续时长是否达到预设时长,是则确定前述音频信号中包括前述频率成分。Whether the duration of the aforementioned frequency component in the aforementioned audio signal reaches a preset duration is identified by a dedicated speech recognition chip, and if yes, it is determined that the aforementioned frequency component is included in the aforementioned audio signal.

在一实施例中,在通过专用语音识别芯片识别前述频率成分在音频信号中的持续时长是否达到预设时长时,音频识别模块304用于:In one embodiment, when identifying whether the duration of the aforementioned frequency components in the audio signal reaches a preset duration through a dedicated speech recognition chip, the audio recognition module 304 is used to:

通过专用语音识别芯片对前述音频信号进行无交叠分帧处理,得到多个音频帧;Perform non-overlapping framing processing on the aforementioned audio signal through a dedicated speech recognition chip to obtain multiple audio frames;

通过专用语音识别芯片对音频帧进行傅里叶变换,并根据傅里叶变换结果识别前述频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定前述频率成分在前述音频信号中的持续时长达到预设时长。Fourier transform is performed on the audio frame by a special speech recognition chip, and according to the Fourier transform result, it is identified whether the amplitudes of the aforementioned frequency components in the continuous audio frames within the preset duration all reach the preset amplitudes, and if so, determine the aforementioned The duration of the frequency component in the aforementioned audio signal reaches a preset duration.

在一实施例中,在通过处理器识别音频信号是否为对应公共交通站点的预设音频信号时,音频识别模块304用于:In one embodiment, when the audio signal is identified by the processor as a preset audio signal corresponding to a public transportation station, the audio identification module 304 is used for:

通过处理器调用预训练的对应预设音频信号的音频识别模型;Call the pre-trained audio recognition model corresponding to the preset audio signal through the processor;

根据音频识别模型识别音频信号是否为对应公共交通站点的预设音频信号。Identifying whether the audio signal is a preset audio signal corresponding to the public transportation station according to the audio recognition model.

在一实施例中,在通过处理器接收到站提醒请求时,请求接收模块301用于:In one embodiment, when a station reminder request is received by the processor, the request receiving module 301 is configured to:

通过处理器侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面;The processor detects the trigger information generated by the public transportation application, and provides the arrival reminder interface according to the trigger information;

通过到站提醒界面接收到站提醒请求。The arrival reminder request is received through the arrival reminder interface.

在一实施例中,当站点数量与目标站点数量一致,通过处理器执行预设的到站提醒操作时,到站提醒模块305用于:In one embodiment, when the number of sites is consistent with the number of target sites, and the processor performs a preset arrival reminder operation, the arrival reminder module 305 is used to:

当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,通过处理器获取与电子设备建立移动通信连接的基站的基站标识;When the number of stations that the electronic device has passed through the public transportation station is consistent with the number of target stations, obtain, through the processor, the base station identifier of the base station that establishes the mobile communication connection with the electronic device;

根据预设的基站标识和公共交通站点的对应关系,通过处理器确定对应基站标识的公共交通站点;According to the preset correspondence between the base station identifier and the public transportation station, the processor determines the public transportation station corresponding to the base station identifier;

当前述公共交通站点为目标公共交通站点时,通过处理器执行预设的到站提醒操作。When the aforementioned public transport site is the target public transport site, a preset arrival reminder operation is performed by the processor.

应当说明的是,本申请实施例提供的到站提醒装置与上文实施例中的到站提醒方法属于同一构思,在到站提醒装置上可以运行到站提醒方法实施例中提供的任一方法,其具体实现过程详见以上实施例,此处不再赘述。It should be noted that the arrival reminder device provided in the embodiment of the present application and the arrival reminder method in the above embodiments belong to the same concept, and any method provided in the arrival reminder method embodiment can be executed on the arrival reminder device. , and the specific implementation process is detailed in the above embodiments, which will not be repeated here.

本申请实施例提供一种存储介质,其上存储有用于到站提醒的计算机程序,当其存储的用于到站提醒的计算机程序在本申请实施例提供的电子设备上执行时,使得电子设备执行如本申请实施例提供的到站提醒方法中的步骤。其中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)或者随机存取器(Random Access Memory,RAM)等。The embodiments of the present application provide a storage medium on which is stored a computer program for the arrival reminder, and when the stored computer program for the arrival reminder is executed on the electronic device provided by the embodiment of the application, the electronic device is Steps in the arrival reminder method provided by the embodiment of the present application are performed. The storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), or the like.

本申请实施例还提供一种电子设备,请参照图7,电子设备包括处理器401、专用语音识别芯片402、麦克风403和存储器404,且专用语音识别芯片402的功耗小于处理器401的功耗,其中,专用语音识别芯片402、处理器401通过通信总线(比如I2C总线)建立通信连接,实现数据的交互。The embodiment of the present application also provides an electronic device. Please refer to FIG. 7 . The electronic device includes a processor 401 , a dedicated speech recognition chip 402 , a microphone 403 and a memory 404 , and the power consumption of the dedicated speech recognition chip 402 is smaller than that of the processor 401 . consumption, wherein the dedicated speech recognition chip 402 and the processor 401 establish a communication connection through a communication bus (such as an I2C bus) to realize data interaction.

应当说明的是,本申请实施例中的处理器是通用处理器,可由本领域普通技术人员根据实际需要选择处理器的型号,比如,可以选择的处理器型号包括但不限于骁龙855+、骁龙845、骁龙820、骁龙810以及骁龙710等。It should be noted that the processor in the embodiment of the present application is a general-purpose processor, and the model of the processor can be selected by those of ordinary skill in the art according to actual needs. For example, the processor model that can be selected includes but is not limited to the Snapdragon 855+, Snapdragon 845, Snapdragon 820, Snapdragon 810 and Snapdragon 710, etc.

专用语音识别芯片402是以语音识别为目的而设计的专用芯片,比如以语音识别为目的而设计的数字信号处理芯片,以语音识别为目的而设计的专用集成电路芯片等,其相较于通用的处理器,具有更低的功耗,适于语音识别任务的处理。The special-purpose speech recognition chip 402 is a special-purpose chip designed for speech recognition, such as a digital signal processing chip designed for speech recognition, an application-specific integrated circuit chip designed for speech recognition, etc. The processor with lower power consumption is suitable for the processing of speech recognition tasks.

存储器404中存储有用于到站提醒的计算机程序,其可以为高速随机存取存储器,还可以为非易失性存储器,比如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件等。相应地,存储器404还可以包括存储器控制器,以提供处理器401和专用语音识别芯片402对存储器404的访问,从而实现如下功能:The memory 404 stores a computer program for the arrival reminder, which can be a high-speed random access memory or a non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage devices, etc. . Correspondingly, the memory 404 may also include a memory controller to provide access to the memory 404 by the processor 401 and the dedicated speech recognition chip 402, so as to realize the following functions:

处理器401用于接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点;以及The processor 401 is configured to receive the arrival reminder request, and determine, according to the arrival reminder request, the target public transportation station that needs to perform the arrival reminder; and

获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量;Obtain the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station;

专用语音识别芯片402用于控制麦克风采集外部的音频信号;以及A dedicated speech recognition chip 402 is used to control the microphone to collect external audio signals; and

协同处理器401识别音频信号,得到电子设备已经过公共交通站点的站点数量;The co-processor 401 identifies the audio signal and obtains the number of stops where the electronic device has passed the public transportation stop;

处理器401还用于当前述站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作。The processor 401 is further configured to perform a preset arrival reminder operation through the processor when the aforementioned number of stations is consistent with the number of target stations.

在一实施例中,在协同处理器401识别音频信号,得到电子设备已经过公共交通站点的站点数量时,专用语音识别芯片402用于:In one embodiment, when the co-processor 401 identifies the audio signal and obtains the number of stops the electronic device has passed through the public transportation stops, the dedicated speech recognition chip 402 is used for:

识别音频信号中是否包括对应公共交通站点的频率成分;Identify whether the audio signal includes frequency components corresponding to public transport stops;

当专用语音识别芯片402识别到音频信号中包括前述频率成分时,处理器401识别音频信号是否为对应公共交通站点的预设音频信号;以及When the dedicated speech recognition chip 402 recognizes that the audio signal includes the aforementioned frequency components, the processor 401 recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station; and

根据识别结果为是的识别次数,得到前述站点数量。According to the number of identifications with the identification result being yes, the number of the aforementioned sites is obtained.

在一实施例中,在识别前述音频信号中是否包括对应公共交通站点的频率成分时,专用语音识别芯片402用于:In one embodiment, when recognizing whether the aforementioned audio signal includes frequency components corresponding to public transportation stops, the dedicated speech recognition chip 402 is used for:

识别前述频率成分在前述音频信号中的持续时长是否达到预设时长,是则确定前述音频信号中包括前述频率成分。Identify whether the duration of the aforementioned frequency component in the aforementioned audio signal reaches a preset duration, and if yes, determine that the aforementioned frequency component is included in the aforementioned audio signal.

在一实施例中,在识别前述频率成分在音频信号中的持续时长是否达到预设时长时,专用语音识别芯片402用于:In one embodiment, when identifying whether the duration of the aforementioned frequency components in the audio signal reaches a preset duration, the dedicated speech recognition chip 402 is used for:

对前述音频信号进行无交叠分帧处理,得到多个音频帧;Perform non-overlapping frame division processing on the aforementioned audio signal to obtain a plurality of audio frames;

对音频帧进行傅里叶变换,并根据傅里叶变换结果识别前述频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定前述频率成分在前述音频信号中的持续时长达到预设时长。Fourier transform is performed on the audio frame, and according to the Fourier transform result, it is identified whether the amplitudes of the aforementioned frequency components in the continuous audio frames within the preset duration all reach the preset amplitudes, and if so, it is determined that the aforementioned frequency components are in the aforementioned audio frequency components. The duration in the signal reaches the preset duration.

在一实施例中,在识别音频信号是否为对应公共交通站点的预设音频信号时,处理器401用于:In one embodiment, when identifying whether the audio signal is a preset audio signal corresponding to a public transportation station, the processor 401 is configured to:

调用预训练的对应预设音频信号的音频识别模型;Call the pre-trained audio recognition model corresponding to the preset audio signal;

根据音频识别模型识别音频信号是否为对应公共交通站点的预设音频信号。Identifying whether the audio signal is a preset audio signal corresponding to the public transportation station according to the audio recognition model.

在一实施例中,在接收到站提醒请求时,处理器401用于:In one embodiment, upon receiving the station reminder request, the processor 401 is configured to:

侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面;Detect trigger information generated by public transportation applications, and provide an arrival reminder interface according to the trigger information;

通过到站提醒界面接收到站提醒请求。The arrival reminder request is received through the arrival reminder interface.

在一实施例中,当站点数量与目标站点数量一致,执行预设的到站提醒操作时,处理器401用于:In one embodiment, when the number of sites is consistent with the number of target sites and a preset arrival reminder operation is performed, the processor 401 is configured to:

当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,获取与电子设备建立移动通信连接的基站的基站标识;When the number of stations where the electronic device has passed the public transportation station is the same as the number of target stations, obtain the base station identifier of the base station that establishes the mobile communication connection with the electronic device;

根据预设的基站标识和公共交通站点的对应关系,确定对应基站标识的公共交通站点;According to the preset correspondence between the base station identifier and the public transportation station, determine the public transportation station corresponding to the base station identifier;

当前述公共交通站点为目标公共交通站点时,执行预设的到站提醒操作。When the aforementioned public transportation station is the target public transportation station, a preset arrival reminder operation is performed.

应当说明的是,本申请实施例提供的电子设备与上文实施例中的到站提醒方法属于同一构思,在电子设备上可以运行到站提醒方法实施例中提供的任一方法,其具体实现过程详见特征提取方法实施例,此处不再赘述。It should be noted that the electronic device provided in the embodiments of the present application and the arrival reminder method in the above embodiments belong to the same concept, and any method provided in the arrival reminder method embodiment can be executed on the electronic device, and its specific implementation For details of the process, please refer to the embodiment of the feature extraction method, which will not be repeated here.

需要说明的是,对本申请实施例的到站提醒方法而言,本领域普通测试人员可以理解实现本申请实施例的到站提醒方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的处理器和专用语音识别芯片执行,在执行过程中可包括如到站提醒方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the arrival reminder method of the embodiment of the present application, ordinary testers in the art can understand that all or part of the process of realizing the arrival reminder method of the embodiment of the application can be controlled by a computer program. to complete, the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by a processor and a dedicated speech recognition chip in the electronic device, and the execution process can include Such as the flow of the embodiment of the arrival reminder method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.

以上对本申请实施例所提供的一种到站提醒方法、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A kind of arrival reminder method, storage medium and electronic device provided by the embodiments of the present application have been introduced in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only used for In order to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of this application.

Claims (10)

1.一种到站提醒方法,应用于电子设备,其特征在于,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒方法包括:1. an arrival reminder method, applied to electronic equipment, is characterized in that, described electronic equipment comprises microphone, processor and special-purpose speech recognition chip, and described arrival reminder method comprises: 通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;Receive a station reminder request by the processor, and determine a target public transportation station that needs to perform an arrival reminder according to the arrival reminder request; 通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;Acquiring, by the processor, the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station; 通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;Control the microphone to collect external audio signals through the dedicated speech recognition chip; 通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Recognize the audio signal through the dedicated speech recognition chip and the processor, and obtain the number of stations that the electronic device has passed through public transportation stations; 当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。When the number of sites is consistent with the number of target sites, a preset arrival reminder operation is performed by the processor. 2.根据权利要求1所述的到站提醒方法,其特征在于,所述通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量,包括:2 . The arrival reminder method according to claim 1 , wherein the audio signal is identified by the dedicated speech recognition chip and the processor to obtain a site where the electronic device has passed a public transportation site. 3 . quantity, including: 通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分;Identify whether the audio signal includes a frequency component corresponding to the public transportation station by using the dedicated speech recognition chip; 当识别到所述音频信号中包括所述频率成分时,通过所述处理器识别所述音频信号是否为对应所述公共交通站点的预设音频信号;When it is recognized that the audio signal includes the frequency component, identifying by the processor whether the audio signal is a preset audio signal corresponding to the public transportation station; 根据所述处理器识别结果为是的识别次数,得到所述站点数量。The number of stations is obtained according to the number of times of identification of which the processor identification result is yes. 3.根据权利要求2所述的到站提醒方法,其特征在于,所述通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分,包括:3. The arrival reminder method according to claim 2, characterized in that, whether the audio signal is identified by the dedicated voice recognition chip whether the frequency component corresponding to the public transport station is included, comprising: 通过所述专用语音识别芯片识别所述频率成分在所述音频信号中的持续时长是否达到预设时长,是则确定所述音频信号中包括所述频率成分。Whether the duration of the frequency component in the audio signal reaches a preset duration is identified by the dedicated speech recognition chip, and if yes, it is determined that the audio signal includes the frequency component. 4.根据权利要求要求3所述的到站提醒方法,其特征在于,所述通过所述专用语音识别芯片识别所述频率成分在所述音频信号中的持续时长是否达到预设时长,包括:4. arrival reminder method according to claim 3, is characterized in that, whether the duration of described frequency component in described audio signal identified by described special-purpose speech recognition chip reaches preset duration, comprising: 通过所述专用语音识别芯片对所述音频信号进行无交叠分帧处理,得到多个音频帧;Perform non-overlapping framing processing on the audio signal by the dedicated speech recognition chip to obtain a plurality of audio frames; 通过所述专用语音识别芯片对所述音频帧进行傅里叶变换,并根据傅里叶变换结果识别所述频率成分在所述预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定所述频率成分在所述音频信号中的持续时长达到所述预设时长。Fourier transform is performed on the audio frame by the dedicated speech recognition chip, and whether the amplitudes of the frequency components in the continuous audio frames within the preset duration all reach the preset value according to the Fourier transform result If the amplitude value is yes, it is determined that the duration of the frequency component in the audio signal reaches the preset duration. 5.根据权利要求2所述的到站提醒方法,其特征在于,所述通过所述处理器识别所述音频信号是否为对应所述公共交通站点的预设音频信号,包括:5. The arrival reminder method according to claim 2, wherein the identifying by the processor whether the audio signal is a preset audio signal corresponding to the public transportation station, comprising: 通过所述处理器调用预训练的对应所述预设音频信号的音频识别模型;Calling the pre-trained audio recognition model corresponding to the preset audio signal by the processor; 根据所述音频识别模型识别所述音频信号是否为对应所述公共交通站点的预设音频信号。Whether the audio signal is a preset audio signal corresponding to the public transportation station is identified according to the audio recognition model. 6.根据权利要求1-5任一项所述的到站提醒方法,其特征在于,所述通过所述处理器接收到站提醒请求,包括:6. The arrival reminder method according to any one of claims 1-5, wherein the receiving a station reminder request by the processor comprises: 通过处理器侦测公共交通应用产生的触发信息,并根据所述触发信息提供到站提醒界面;Detect trigger information generated by the public transportation application through the processor, and provide an arrival reminder interface according to the trigger information; 通过所述到站提醒界面接收所述到站提醒请求。The arrival reminder request is received through the arrival reminder interface. 7.根据权利要求1-5任一项所述的到站提醒方法,其特征在于,当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作,包括:7. The arrival reminder method according to any one of claims 1-5, wherein when the number of sites is consistent with the number of target sites, a preset arrival reminder operation is performed by the processor ,include: 当所述站点数量与所述目标站点数量一致时,通过所述处理器获取与所述电子设备建立移动通信连接的基站的基站标识;When the number of sites is consistent with the number of target sites, acquiring, by the processor, a base station identifier of a base station that establishes a mobile communication connection with the electronic device; 根据预设的基站标识和公共交通站点的对应关系,通过所述处理器确定对应所述基站标识的公共交通站点;According to the preset correspondence between the base station identifier and the public transportation station, the processor determines, by the processor, the public transportation station corresponding to the base station identifier; 当所述公共交通站点为所述目标公共交通站点时,通过所述处理器执行预设的到站提醒操作。When the public transportation station is the target public transportation station, a preset arrival reminder operation is performed by the processor. 8.一种到站提醒装置,应用于电子设备,其特征在于,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒装置包括:8. An arrival reminder device, applied to electronic equipment, wherein the electronic device comprises a microphone, a processor and a dedicated voice recognition chip, and the arrival reminder device comprises: 请求接收模块,用于通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;a request receiving module, configured to receive an arrival reminder request through the processor, and determine a target public transportation station that needs to perform an arrival reminder according to the arrival reminder request; 数量确定模块,用于通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;a quantity determination module, configured to obtain, through the processor, the target number of public transport stations that the electronic device needs to pass through to reach the target public transport station; 音频采集模块,用于通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;an audio collection module, configured to control the microphone to collect external audio signals through the dedicated speech recognition chip; 音频识别模块,用于通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;an audio recognition module for recognizing the audio signal through the dedicated speech recognition chip and the processor to obtain the number of stations where the electronic device has passed public transportation stations; 到站提醒模块,用于当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。An arrival reminder module, configured to perform a preset arrival reminder operation through the processor when the number of the sites is consistent with the number of the target sites. 9.一种电子设备,其特征在于,所述电子设备包括麦克风、处理器和专用语音识别芯片,其中,9. An electronic device, characterized in that the electronic device comprises a microphone, a processor and a dedicated speech recognition chip, wherein, 所述处理器用于接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;以及The processor is configured to receive an arrival reminder request, and determine, according to the arrival reminder request, a target public transportation station that needs to perform an arrival reminder; and 获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量:Obtain the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station: 所述专用语音识别芯片用于控制所述麦克风采集外部的音频信号;以及The dedicated speech recognition chip is used to control the microphone to collect external audio signals; and 协同所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Identifying the audio signal in cooperation with the processor, to obtain the number of stations where the electronic device has passed public transportation stations; 所述处理器还用于当所述站点数量与所述目标站点数量一致时,执行预设的到站提醒操作。The processor is further configured to execute a preset arrival reminder operation when the number of sites is consistent with the number of target sites. 10.一种存储介质,其特征在于,当所述存储介质中存储的计算机程序在包括麦克风、处理器和专用语音识别芯片的电子设备运行时,使得所述电子设备执行如权利要求1至7任一项所述的到站提醒方法中的步骤。10. A storage medium, characterized in that, when the computer program stored in the storage medium runs on an electronic device comprising a microphone, a processor and a dedicated speech recognition chip, the electronic device is made to perform the functions as claimed in claims 1 to 7. Any one of the steps in the arrival reminder method.
CN202010125355.9A 2020-02-27 2020-02-27 Arrival reminding method and device, storage medium and electronic equipment Pending CN111311889A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010125355.9A CN111311889A (en) 2020-02-27 2020-02-27 Arrival reminding method and device, storage medium and electronic equipment
PCT/CN2021/074954 WO2021169757A1 (en) 2020-02-27 2021-02-03 Method and apparatus for giving reminder of arrival at station, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010125355.9A CN111311889A (en) 2020-02-27 2020-02-27 Arrival reminding method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111311889A true CN111311889A (en) 2020-06-19

Family

ID=71149379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010125355.9A Pending CN111311889A (en) 2020-02-27 2020-02-27 Arrival reminding method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN111311889A (en)
WO (1) WO2021169757A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169757A1 (en) * 2020-02-27 2021-09-02 Oppo广东移动通信有限公司 Method and apparatus for giving reminder of arrival at station, storage medium and electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052234A (en) * 2022-06-07 2022-09-13 展讯通信(上海)有限公司 Earphone control method, system, device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080208594A1 (en) * 2007-02-27 2008-08-28 Cross Charles W Effecting Functions On A Multimodal Telephony Device
US8751241B2 (en) * 2003-12-17 2014-06-10 General Motors Llc Method and system for enabling a device function of a vehicle
CN103852766A (en) * 2012-11-30 2014-06-11 上海斐讯数据通信技术有限公司 Mobile terminal and realization method for prompting arrival of public transport vehicle
CN103886772A (en) * 2014-04-16 2014-06-25 上海博尔特数字科技有限公司 Method and system for displaying station reporting information in instant messaging
CN104464359A (en) * 2014-12-17 2015-03-25 天津易华录信息技术有限公司 Intelligent bus device
CN105577943A (en) * 2016-02-03 2016-05-11 上海卓易科技股份有限公司 A kind of prompt method, system and mobile terminal for bus station announcement
CN106558232A (en) * 2015-09-30 2017-04-05 中国电信股份有限公司 A kind of user's arrival reminding method, system and arrival reminding server
CN106710283A (en) * 2016-12-28 2017-05-24 上海与德信息技术有限公司 Mobile terminal based stop reporting reminding method and device
CN108734929A (en) * 2017-04-24 2018-11-02 上海交迅智能科技有限公司 Prompting based on Quick Response Code and vehicle tune center is arrived at a station system and method
CN110825446A (en) * 2019-10-28 2020-02-21 Oppo广东移动通信有限公司 Parameter configuration method, device, storage medium and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8125353B2 (en) * 2009-02-25 2012-02-28 Kimberly Weisser Vehicle arrival alerting method and system thereof
CN103152480B (en) * 2013-02-26 2015-06-03 广东欧珀移动通信有限公司 Method and device for arrival prompt by mobile terminal
CN110660201B (en) * 2019-09-23 2021-07-09 Oppo广东移动通信有限公司 Arrival reminder method, device, terminal and storage medium
CN110648553B (en) * 2019-09-26 2021-05-28 北京声智科技有限公司 Site reminding method, electronic equipment and computer readable storage medium
CN111311889A (en) * 2020-02-27 2020-06-19 Oppo广东移动通信有限公司 Arrival reminding method and device, storage medium and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8751241B2 (en) * 2003-12-17 2014-06-10 General Motors Llc Method and system for enabling a device function of a vehicle
US20080208594A1 (en) * 2007-02-27 2008-08-28 Cross Charles W Effecting Functions On A Multimodal Telephony Device
CN103852766A (en) * 2012-11-30 2014-06-11 上海斐讯数据通信技术有限公司 Mobile terminal and realization method for prompting arrival of public transport vehicle
CN103886772A (en) * 2014-04-16 2014-06-25 上海博尔特数字科技有限公司 Method and system for displaying station reporting information in instant messaging
CN104464359A (en) * 2014-12-17 2015-03-25 天津易华录信息技术有限公司 Intelligent bus device
CN106558232A (en) * 2015-09-30 2017-04-05 中国电信股份有限公司 A kind of user's arrival reminding method, system and arrival reminding server
CN105577943A (en) * 2016-02-03 2016-05-11 上海卓易科技股份有限公司 A kind of prompt method, system and mobile terminal for bus station announcement
CN106710283A (en) * 2016-12-28 2017-05-24 上海与德信息技术有限公司 Mobile terminal based stop reporting reminding method and device
CN108734929A (en) * 2017-04-24 2018-11-02 上海交迅智能科技有限公司 Prompting based on Quick Response Code and vehicle tune center is arrived at a station system and method
CN110825446A (en) * 2019-10-28 2020-02-21 Oppo广东移动通信有限公司 Parameter configuration method, device, storage medium and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169757A1 (en) * 2020-02-27 2021-09-02 Oppo广东移动通信有限公司 Method and apparatus for giving reminder of arrival at station, storage medium and electronic device

Also Published As

Publication number Publication date
WO2021169757A1 (en) 2021-09-02

Similar Documents

Publication Publication Date Title
US12482468B2 (en) Electronic device, speech recognition method therefor, and medium
US11848029B2 (en) Method and device for detecting audio signal, and storage medium
US20220292968A1 (en) Arrival alerting method, storage medium and electronic device
CN110995933A (en) Volume adjusting method and device of mobile terminal, mobile terminal and storage medium
CN108847221B (en) Speech recognition method, device, storage medium and electronic device
CN108198569A (en) A kind of audio-frequency processing method, device, equipment and readable storage medium storing program for executing
CN112116908B (en) Wake-up audio determining method, device, equipment and storage medium
CN110880328B (en) Arrival reminding method, device, terminal and storage medium
CN108665895A (en) Methods, devices and systems for handling information
US20220180859A1 (en) User speech profile management
WO2021190145A1 (en) Station identifying method and device, terminal and storage medium
CN108665889A (en) The Method of Speech Endpoint Detection, device, equipment and storage medium
CN110825446A (en) Parameter configuration method, device, storage medium and electronic device
CN110827849B (en) Human voice separation method, device, terminal and readable storage medium for database building
CN111009261B (en) Arrival reminding method, device, terminal and storage medium
CN109686359A (en) Speech output method, terminal and computer readable storage medium
CN111311889A (en) Arrival reminding method and device, storage medium and electronic equipment
CN111081275B (en) Terminal processing method and device based on sound analysis, storage medium and terminal
CN113160802A (en) Voice processing method, device, equipment and storage medium
US20050239511A1 (en) Speaker identification using a mobile communications device
CN104899611B (en) Determine the method and device of card position in image
CN109240486B (en) Pop-up message processing method, device, equipment and storage medium
EP3306967B1 (en) Information processing device, information processing method, and program
CN115035886B (en) Voiceprint recognition method and electronic device
CN115662393A (en) Training method, device and equipment of speech recognition model and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619