[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2021169757A1 - Method and apparatus for giving reminder of arrival at station, storage medium and electronic device - Google Patents

Method and apparatus for giving reminder of arrival at station, storage medium and electronic device Download PDF

Info

Publication number
WO2021169757A1
WO2021169757A1 PCT/CN2021/074954 CN2021074954W WO2021169757A1 WO 2021169757 A1 WO2021169757 A1 WO 2021169757A1 CN 2021074954 W CN2021074954 W CN 2021074954W WO 2021169757 A1 WO2021169757 A1 WO 2021169757A1
Authority
WO
WIPO (PCT)
Prior art keywords
public transportation
processor
station
audio signal
electronic device
Prior art date
Application number
PCT/CN2021/074954
Other languages
French (fr)
Chinese (zh)
Inventor
陈喆
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021169757A1 publication Critical patent/WO2021169757A1/en

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

Definitions

  • This application relates to the technical field of audio recognition, and in particular to a method, device, storage medium, and electronic equipment for reminding station arrival.
  • electronic devices such as smart phones and tablet computers have entered people's daily lives. People can install various applications on electronic devices to expand the functions of electronic devices, such as games, social networking, shopping, etc. When people take public transportation, they may ride over stations due to the use of electronic devices. For this reason, satellite positioning is used in related technologies to determine whether to arrive at the station, and to remind when the station arrives.
  • the embodiments of the present application provide an arrival reminding method, device, storage medium, and electronic equipment, which can reduce the power consumption of the electronic equipment to realize arrival reminding.
  • an embodiment of the present application provides an arrival reminder method, which is applied to an electronic device, the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminder method includes:
  • the processor executes a preset arrival reminder operation.
  • an embodiment of the present application provides an arrival reminder device, which is applied to an electronic device, the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminder device includes:
  • the request receiving module is configured to receive the station reminder request through the processor, and determine the target public transportation station that needs to be reminded according to the station reminder request;
  • a quantity determining module configured to obtain, through the processor, the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station;
  • An audio collection module configured to control the microphone to collect external audio signals through the dedicated voice recognition chip
  • An audio recognition module configured to recognize the audio signal through the dedicated voice recognition chip and the processor, and obtain the number of stations where the electronic device has passed the public transportation station;
  • the arrival reminder module is configured to execute a preset arrival reminder operation through the processor when the number of stations is consistent with the number of target stations.
  • the embodiments of the present application provide a storage medium on which a computer program is stored.
  • the computer program runs on an electronic device including a microphone, a processor, and a dedicated voice recognition chip, the electronic device executes The steps in the arrival reminding method provided in the embodiment of this application.
  • an embodiment of the present application also provides an electronic device, the electronic device including a microphone, a processor, and a dedicated voice recognition chip with lower power consumption than the processor, wherein:
  • the processor is configured to receive the arrival reminder request, and determine the target public transportation station that needs arrival reminder according to the arrival reminder request;
  • the dedicated voice recognition chip is used to control the microphone to collect external audio signals
  • 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.
  • FIG. 1 is a schematic flow chart of the arrival reminding method provided by an embodiment of the present application.
  • Fig. 2 is an example diagram of an arrival reminder interface in an embodiment of the present application.
  • Fig. 3 is a spectrogram of the prompt sound when the subway door is opened and closed in the embodiment of the present application.
  • FIG. 4 is a schematic diagram of non-overlapping framing of an audio signal in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another flow chart of the arrival reminding method provided by an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of an arrival reminding device provided by an embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the embodiments of the present application provide an arrival reminding method, an arrival reminding device, a storage medium, and electronic equipment.
  • the execution subject of the arrival reminding method may be the arrival reminding device provided in the embodiment of the present application, or an electronic device integrated with the arrival reminding device, wherein the arrival reminding device can be implemented in hardware or software.
  • the electronic device can be a computing device such as a laptop computer, a computer monitor containing an embedded computer, a tablet computer, a cellular phone, a media player, or other handheld or portable electronic devices, smaller devices (such as wrist watch devices, Hanging devices, earphones or earpiece devices, devices embedded in glasses or other devices worn on the user’s head, or other wearable or micro devices), gaming devices, navigation devices, embedded systems, etc.
  • the present application provides an arrival reminder method, which is applied to an electronic device, the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminder method includes:
  • the processor executes a preset arrival reminder operation.
  • the recognition of the audio signal through the dedicated voice recognition chip and the processor to obtain the number of stations where the electronic device has passed public transportation stations includes:
  • the processor When it is recognized that the audio signal includes the frequency component, it is recognized 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 recognition times that the processor recognizes that the result is yes.
  • the identifying whether the audio signal includes a frequency component corresponding to the public transportation station through the dedicated voice recognition chip includes:
  • the dedicated voice recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes the frequency component.
  • the identifying whether the duration of the frequency component in the audio signal reaches a preset duration through the dedicated voice recognition chip includes:
  • the identifying by the processor whether the audio signal is a preset audio signal corresponding to the public transportation station includes:
  • the method before identifying whether the audio signal includes a frequency component corresponding to the public transportation station through the dedicated voice recognition chip, the method further includes:
  • the human voice frequency components in the audio signal are filtered out through the dedicated speech recognition chip.
  • the receiving a station reminder request through the processor includes:
  • the arrival reminder request is received through the arrival reminder interface.
  • executing a preset arrival reminder operation by the processor includes:
  • the processor 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;
  • the processor executes a preset arrival reminder operation.
  • the determining the target public transportation station that needs to be reminded according to the arrival reminder request includes:
  • the processor parses out the site identification carried in the arrival reminder request, and sets the public transportation site corresponding to the site identification as the target public transportation site.
  • FIG. 1 is a schematic flowchart of the arrival reminding method provided by an embodiment of the application.
  • the arrival reminding method is applied to the electronic device provided in this application, and the electronic device includes a processor, a dedicated voice recognition chip, and a microphone.
  • the flow of the arrival reminding method provided in this embodiment of the application may be as follows:
  • the processor receives the station reminder request, and determines the target public transportation station that needs to be reminded according to the station reminder request.
  • the processor is a processor suitable for general processing tasks, such as an ARM architecture processor.
  • Dedicated speech recognition chips are dedicated chips designed for speech recognition, such as digital signal processing chips designed for speech recognition, dedicated integrated circuit chips designed for speech recognition, etc., which are compared with general-purpose chips.
  • the processor has lower power consumption and is suitable for processing speech recognition tasks.
  • 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.
  • a communication bus such as an I2C bus
  • the processor models that can be selected include, but are not limited to, Qualcomm 855+, Qualcomm 845, Qualcomm 820, Qualcomm 810, and Qualcomm 710.
  • 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).
  • the processor receives the arrival reminder request input by the user.
  • 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.
  • the arrival reminder interface shown in Fig. 2 includes all public transportation stations passed by a public transportation route, that is, public transportation station 1 to public transportation station 9 shown in the figure, and the processor can be based on
  • the user receives an arrival reminder request corresponding to the public transportation site for the "alarm clock" control associated with any public transportation site, and the arrival reminder request carries the site identifier of the corresponding public transportation site (for example, the site name of the site).
  • the processor 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 that requires arrival reminder.
  • the processor obtains the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station.
  • the processor After determining the target public transportation station that needs to be reminded of arrival, the processor further obtains the number of target 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 establishing a mobile communication connection with the electronic device, and determines the public transportation station corresponding to the aforementioned current base station according to the preset correspondence between the base station identifier and the public transportation station, and records it as the current public transportation station. Traffic site.
  • a base station provides network access services for electronic devices, and its location is usually fixed.
  • the location of the electronic device can be determined.
  • the base station is previously 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 identify the base station, and can be selected as a parameter of the base station identifier by a person of ordinary skill in the art according to actual needs.
  • a cell identifier combined with a location area code is used as the base station identifier.
  • the processor 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 used 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 transportation stations that the station needs to pass through to reach the target public transportation station.
  • the processor may It is determined that the number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station is 6.
  • the microphone is controlled by a dedicated voice recognition chip to collect external audio signals.
  • the processor After determining the number of target stations of public transportation stations that the electronic device needs to pass through to reach the target public transportation station, the processor instructs the dedicated voice recognition chip to start passing station detection, that is, to detect whether it passes the public transportation station.
  • the dedicated voice recognition chip controls the microphone to collect external audio signals according to the instructions of the processor for passing station detection.
  • the audio signal is recognized through a dedicated voice recognition chip and a processor, and the number of stations where the electronic device has passed the public transportation station is obtained.
  • the dedicated voice recognition chip and processor perform passing detection based on 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 it is, it is determined that the electronic device passes through a public transportation station. Thus, the number of stations where the electronic equipment has passed the public transportation station can be obtained.
  • the dedicated voice recognition chip first recognizes whether the audio signal is an audio signal passing through a public transportation station, and when it recognizes 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 again Identify whether the audio signal is an audio signal passing through a public transportation station, and if yes, it is determined that the electronic device passes through a public transportation station.
  • a dedicated speech recognition chip can determine whether the audio signal includes the audio characteristics of a public transportation station, and if it is, it is determined that the aforementioned audio signal is an audio signal passing through a public transportation station; and the processor can directly combine the audio signal provided by the microphone with the pre-collected path The audio signal of the public transportation station is compared, and when the two comparisons are consistent, it is determined that the audio signal is the audio signal passing through the public transportation station.
  • the processor executes a preset arrival reminder operation.
  • the processor determines in real time whether the number of stations where the electronic equipment has passed the public transportation station is consistent with the number of the target station. When the number of stations where the electronic equipment has passed the public transportation station is consistent with the number of the target station, it means that the electronic equipment has arrived at this time and needs to be performed.
  • the processor executes the preset arrival reminder operation at this time.
  • the type of arrival reminding operation is not specifically limited in the embodiments of this application, and can be set by a person of ordinary skill in the art according to actual needs, including but not limited to audio, video, image, text and other arrival reminding methods.
  • the processor can play a preset arrival reminder alarm tone, and use the arrival reminder alarm tone to remind the user that the station has arrived currently.
  • this application receives the station reminder request through the processor, and according to the arrival reminder request, determines the target public transportation station that needs to be reminded, 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 sites and then use a dedicated voice recognition chip to control the microphone to collect external audio signals, and the dedicated voice recognition chip co-processor recognizes the collected audio signals to obtain the number of sites where the electronic equipment has passed the public transportation site, and finally when it has passed
  • the processor executes the preset arrival reminder operation.
  • 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.
  • the audio signal is recognized by a dedicated voice recognition chip and a processor to obtain the number of stations where the electronic device has passed the public transportation station, including:
  • the processor recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station;
  • Figure 3 is a spectrogram of the prompt sound when the subway door is opened and closed.
  • the prompt sound of the subway door opening and closing consists of multiple frequency components.
  • the correspondence between subway stations and corresponding frequency components can be established in advance.
  • the correspondence between public transportation stations and corresponding frequency components can be established.
  • the dedicated voice recognition chip can recognize whether the audio signal includes the frequency component corresponding to the public transportation station. If it is, 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. Wherein, the processor recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station, and if yes, it can be determined that the electronic device has passed a public transportation station.
  • the processor can obtain the number of stations where the electronic device has passed the public transportation station according to the number of identifications whose identification result is yes, where the processor can directly use the number of identifications whose identification result is yes as the number of identifications that the electronic device has passed the public transportation station.
  • the number of sites can be obtained by the processor.
  • the processor recognizes multiple audio signals provided by a dedicated voice 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 the public transportation station is also N.
  • the method before recognizing whether the audio signal includes the frequency component corresponding to the public transportation station through the dedicated voice recognition chip, the method further includes:
  • the human voice frequency components in the audio signal are filtered through a dedicated speech recognition chip.
  • the human voice frequency components in the audio signal can be extracted and filtered to reduce the interference caused by the human voice frequency components on the recognition.
  • identifying whether the aforementioned audio signal includes frequency components corresponding to public transportation stations through a dedicated voice recognition chip includes:
  • a dedicated voice recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes the frequency component.
  • the dedicated voice recognition chip when the dedicated voice recognition chip recognizes whether the audio signal provided by the microphone includes the frequency component corresponding to the public transportation station, it can recognize whether the frequency component of the corresponding public transportation station in the audio signal lasts for a preset duration Time length, when it is recognized that the aforementioned frequency component in the audio signal lasts for a preset time length, it is determined that the audio signal includes the frequency component corresponding to the public transportation station.
  • a subway station For example, taking a subway station as an example, it corresponds to 7 different frequency components, and these 7 different frequency components correspond to the corresponding preset durations, and the preset durations corresponding to different frequency components are different, and the dedicated voice recognition chip recognizes them separately Whether the duration of the 7 frequency components corresponding to the subway station in the audio signal provided by the microphone reaches their respective preset durations, if they are all reached, it can be determined that the audio signal includes the frequency components corresponding to the subway station, and then it can be determined that the electronic device passes by A subway station.
  • identifying whether the duration of the aforementioned frequency component in the audio signal reaches a preset duration through a dedicated voice recognition chip includes:
  • the dedicated voice recognition chip when identifying whether the duration of the aforementioned frequency components in the audio signal reaches a preset duration, the dedicated voice recognition chip first performs non-overlapping frame division processing on the audio signal provided by the microphone to obtain multiple audio frames.
  • the dedicated speech recognition chip performs non-overlapping framing for the audio signal x(n) provided by the microphone, and each frame is of length N.
  • a total of m audio frames are obtained by framing, and each audio frame can be expressed as x m (n).
  • non-overlapping framing can be generally understood as framing to obtain no overlap between two adjacent audio frames.
  • the dedicated speech recognition chip After multiple audio frames are obtained by framing, the dedicated speech recognition chip further performs Fourier transform on each audio frame obtained by framing, and recognizes that the frequency component of the corresponding public transportation station is within the preset time according to the result of Fourier transform Whether the amplitudes in the consecutive audio frames all reach the preset amplitude, 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 a person of ordinary skill in the art according to actual needs, and is not specifically limited in the embodiment of the present application.
  • the frequency component f' For the frequency component f', if the frequency component f'is within the preset duration t, the amplitude of each continuous audio frame 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.
  • identifying whether the audio signal is a preset audio signal corresponding to a public transportation station by the processor includes:
  • the audio recognition model corresponding to the preset audio signal is pre-trained, and it is configured to classify the input audio signal to be recognized to obtain the classification of the audio signal to be recognized as the preset audio signal As a result, or obtain the classification result that the audio signal to be identified is not a preset audio signal.
  • a preset audio signal corresponding to a public transportation station may be collected in advance, and its spectrogram may be extracted as a training sample, and a convolutional neural network may be used for training according to the training sample to obtain an audio recognition model.
  • the processor when the processor recognizes 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 dedicated voice 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.
  • the station reminding request received by the processor includes:
  • the processor detects the trigger information generated by the public transportation application, and provides an arrival reminder interface based on the trigger information;
  • the processor can receive a display request for indicating the display of the bus code through the public transportation application, and display the bus code according to the display request, so that the user can quickly pass through the subway gate Machine, or enter the bus, etc.
  • the public transportation application will generate trigger information to indicate that the travel code has been scanned.
  • the processor can detect the trigger information generated by the public transportation application. If the trigger information is detected, it can determine the electronic device to follow the user into the subway station or board the bus, and provide an arrival reminder interface at this time , Through the arrival reminder interface to receive the arrival reminder request.
  • the processor executes the preset arrival reminder operation, including:
  • the processor determines the public transportation station corresponding to the base station identifier
  • the processor executes the preset arrival reminder operation.
  • the processor when the processor recognizes that the number of stations of the public transportation station that the electronic device has passed is the same as the number of the target station, it does not immediately perform the preset arrival reminder operation, but first informs the public that the electronic device has actually arrived.
  • the traffic station is identified, and the preset arrival reminder operation is performed only when the public transportation station actually reached by the electronic device is consistent with the target public transportation station.
  • the processor when it is recognized that the number of sites where the electronic device has passed the public transportation site is consistent with the number of target sites, 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 that provides the electronic device.
  • the base station ID of the base station accessing the service.
  • the processor determines the public transportation station corresponding to the acquired base station identifier according to the preset correspondence between the base station identifier and the public transportation station, as the public transportation station actually reached by the electronic device.
  • 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. 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, please refer to the related description in the above embodiment for details, which will not be repeated here.
  • FIG. 5 is a schematic diagram of another flow of the arrival reminding method provided by an embodiment of the application.
  • the arrival reminding method is applied to the electronic device provided in this application, and the electronic device includes a processor, a dedicated voice recognition chip, and a microphone.
  • the flow of the arrival reminding method provided in this embodiment of the application may be as follows:
  • the processor detects the trigger information generated by the public transportation application, and provides an arrival reminder interface based on the trigger information.
  • the processor can receive a display request for indicating the display of the bus code through the public transportation application, and display the bus code according to the display request, so that the user can quickly pass through the subway gate Machine, or enter the bus, etc.
  • the public transportation application will generate trigger information to indicate that the travel code has been scanned.
  • the processor can detect the trigger information generated by the public transportation application. If the trigger information is detected, it can determine the electronic device to follow the user into the subway station or board the bus, and provide an arrival reminder interface at this time , To receive the arrival reminder request through the arrival reminder interface.
  • the processor receives the arrival reminder request through the arrival reminder interface, and according to the arrival reminder request, determines the target public transportation station that needs to be reminded.
  • the arrival reminder interface shown in Fig. 2 includes all public transportation stations passed by a public transportation route, that is, public transportation station 1 to public transportation station 9 shown in the figure, and the processor can be based on
  • the user receives an arrival reminder request corresponding to the public transportation site for the "alarm clock" control associated with any public transportation site, and the arrival reminder request carries the site identifier of the corresponding public transportation site (for example, the site name of the site).
  • the processor 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 that requires arrival reminder.
  • the processor obtains the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station.
  • the processor After determining the target public transportation station that needs to be reminded of arrival, the processor further obtains the number of target 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 establishing a mobile communication connection with the electronic device, and determines the public transportation station corresponding to the aforementioned current base station according to the preset correspondence between the base station identifier and the public transportation station, and records it as the current public transportation station. Traffic site.
  • a base station provides network access services for electronic devices, and its location is usually fixed.
  • the location of the electronic device can be determined.
  • the base station is previously 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 identify the base station, and can be selected as a parameter of the base station identifier by a person of ordinary skill in the art according to actual needs.
  • a cell identifier combined with a location area code is used as the base station identifier.
  • the processor 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 used 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 transportation stations that the station needs to pass through to reach the target public transportation station.
  • the processor may It is determined that the number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station is 6.
  • a dedicated voice recognition chip controls the microphone to collect external audio signals.
  • the processor After determining the number of target stations of public transportation stations that the electronic device needs to pass through to reach the target public transportation station, the processor instructs the dedicated voice recognition chip to start passing station detection, that is, to detect whether it passes the public transportation station.
  • the dedicated voice recognition chip controls the microphone to collect external audio signals according to the instructions of the processor for passing station detection.
  • the dedicated voice recognition chip co-processor recognizes the audio signal, and obtains the number of stations where the electronic device has passed the public transportation station.
  • the dedicated voice recognition chip and processor perform passing detection based on 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 it is, it is determined that the electronic device passes through a public transportation station. Thus, the number of stations where the electronic equipment has passed the public transportation station can be obtained.
  • the dedicated voice recognition chip first recognizes whether the audio signal is an audio signal passing through a public transportation station, and when it recognizes 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 again Identify whether the audio signal is an audio signal passing through a public transportation station, and if yes, it is determined that the electronic device passes through a public transportation station.
  • a dedicated speech recognition chip can determine whether the audio signal includes the audio characteristics of a public transportation station, and if it is, it is determined that the aforementioned audio signal is an audio signal passing through a public transportation station; and the processor can directly combine the audio signal provided by the microphone with the pre-collected path The audio signal of the public transportation station is compared, and when the two comparisons are consistent, it is determined that the audio signal is the audio signal passing through the public transportation station.
  • the processor obtains the base station identifier of the base station that establishes a mobile communication connection with the electronic device.
  • the processor when it is recognized that the number of sites where the electronic device has passed the public transportation site is consistent with the number of target sites, 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 that provides the electronic device.
  • the base station ID of the base station accessing the service.
  • the processor determines the public transportation station corresponding to the base station identifier 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 acquired base station identifier according to the preset correspondence between the base station identifier and the public transportation station, as the public transportation station actually reached by the electronic device.
  • the processor executes a preset arrival reminder operation.
  • 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. When the public transportation station actually reached by the electronic device is the target public transportation station, the processor executes The preset arrival reminder operation.
  • the type of arrival reminding operation is not specifically limited in the embodiments of this application, and can be set by a person of ordinary skill in the art according to actual needs, including but not limited to audio, video, image, text, etc. arrival reminding methods.
  • the processor can play a preset arrival reminder alarm tone, and use the arrival reminder alarm tone to remind the user that the station has arrived currently.
  • FIG. 6 is a schematic structural diagram of the arrival reminding device provided by an embodiment of the application.
  • the arrival reminder device can be applied to electronic equipment, which 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, where:
  • the request receiving module 301 is configured to receive the stop reminder request through the processor, and determine the target public transportation station that needs to be reminded according to the stop reminder request;
  • the quantity determining module 302 is configured to obtain the target station quantity of public transportation stations that the electronic device needs to pass through to reach the target public transportation station through the processor;
  • the audio collection module 303 is used to control the microphone to collect external audio signals through a dedicated voice recognition chip;
  • the audio recognition module 304 is used to recognize the audio signal through a dedicated voice recognition chip and a processor, and obtain the number of stations where the electronic device has passed the public transportation station;
  • the arrival reminder module 305 is configured to execute a preset arrival reminder operation through the processor when the number of the aforementioned stations is consistent with the number of target stations.
  • the audio recognition module 304 is used to:
  • the audio signal includes frequency components corresponding to public transportation stations through a dedicated voice recognition chip
  • the processor recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station;
  • the audio recognition module 304 when recognizing whether the aforementioned audio signal includes frequency components corresponding to public transportation stations through a dedicated voice recognition chip, the audio recognition module 304 is used to:
  • a dedicated voice recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes the frequency component.
  • the audio recognition module 304 when identifying whether the duration of the aforementioned frequency components in the audio signal reaches a preset duration through a dedicated voice recognition chip, the audio recognition module 304 is used to:
  • the audio frame is Fourier-transformed through a dedicated speech recognition chip, and according to the Fourier-transform result, it is recognized whether the amplitudes of the aforementioned frequency components in the continuous audio frames within the preset time period all reach the preset amplitudes, and if yes, the foregoing is determined The duration of the frequency component in the aforementioned audio signal reaches the preset duration.
  • the audio recognition module 304 is configured to:
  • the audio recognition model it is recognized whether the audio signal is a preset audio signal corresponding to the public transportation station.
  • the request receiving module 301 is configured to:
  • the processor detects the trigger information generated by the public transportation application, and provides an arrival reminder interface based on the trigger information;
  • the arrival reminder module 305 is used to:
  • the processor determines the public transportation station corresponding to the base station identifier
  • the processor executes a preset arrival reminder operation.
  • the arrival reminding device provided in the embodiment of this application belongs to the same concept as the arrival reminding method in the above embodiment, and any method provided in the embodiment of the arrival reminding method can be run on the arrival reminding device.
  • any method provided in the embodiment of the arrival reminding method can be run on the arrival reminding device.
  • the embodiment of the present application provides a storage medium on which a computer program for arrival reminder is stored.
  • the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), etc.
  • the embodiment of the present application also provides an electronic device. Please refer to FIG.
  • the dedicated voice recognition chip 402 and the processor 401 establish a communication connection through a communication bus (such as an I2C bus) to realize data interaction.
  • a communication bus such as an I2C bus
  • the processor in the embodiment of the present application is a general-purpose processor, and a person of ordinary skill in the art can select the processor model according to actual needs.
  • the processor models that can be selected include but are not limited to Qualcomm 855+, Qualcomm 845, Qualcomm 820, Qualcomm 810, Qualcomm 710, etc.
  • the dedicated voice recognition chip 402 is a dedicated chip designed for voice recognition, such as a digital signal processing chip designed for voice recognition, a dedicated integrated circuit chip designed for voice recognition, etc., compared to general-purpose chips
  • the processor has lower power consumption and is suitable for processing speech recognition tasks.
  • the memory 404 stores a computer program for arrival reminder, which may be a high-speed random access memory, or a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device, etc. .
  • the memory 404 may also include a memory controller to provide the processor 401 and the dedicated voice recognition chip 402 to access the memory 404, so as to realize the following functions:
  • the processor 401 is configured to receive the arrival reminder request, and according to the arrival reminder request, determine the target public transportation station that needs the arrival reminder;
  • the dedicated voice recognition chip 402 is used to control the microphone to collect external audio signals;
  • the co-processor 401 recognizes the audio signal, and obtains the number of stations where the electronic device has passed the public transportation station;
  • the processor 401 is further configured to perform a preset arrival reminder operation through the processor when the number of the aforementioned sites is consistent with the number of the target sites.
  • the dedicated voice recognition chip 402 is used to:
  • the processor 401 is used to recognize whether the audio signal is a preset audio signal corresponding to a public transportation station;
  • the dedicated voice recognition chip 402 when recognizing whether the aforementioned audio signal includes frequency components corresponding to public transportation stations, the dedicated voice recognition chip 402 is used to:
  • the dedicated voice recognition chip 402 when identifying whether the duration of the aforementioned frequency component in the audio signal reaches a preset duration, the dedicated voice recognition chip 402 is used to:
  • the processor 401 when identifying whether the audio signal is a preset audio signal corresponding to a public transportation station, the processor 401 is configured to:
  • the audio recognition model it is recognized whether the audio signal is a preset audio signal corresponding to the public transportation station.
  • the processor 401 when a station reminder request is received, the processor 401 is configured to:
  • Detect trigger information generated by public transportation applications and provide an arrival reminder interface based on the trigger information
  • the processor 401 when the number of sites is the same as the number of target sites and the preset arrival reminder operation is performed, the processor 401 is configured to:
  • the base station identifier determines the public transportation station corresponding to the base station identifier
  • the preset arrival reminder operation is performed.
  • the dedicated speech recognition chip 402 is also used to filter out the human voice frequency components in the aforementioned audio signal.
  • the processor 401 is configured to parse out the site identifier carried in the arrival reminder request, and set the public transportation site corresponding to the site identifier as the target public transportation site.
  • the electronic device provided in the embodiment of this application belongs to the same concept as the arrival reminding method in the above embodiment. Any method provided in the embodiment of the arrival reminding method can be run on the electronic device, and its specific implementation For details of the process, refer to the embodiment of the feature extraction method, which will not be repeated here.
  • the arrival reminding method of the embodiment of the application ordinary testers in the field can understand all or part of the process of implementing the arrival reminding method of the embodiment of the application, and the relevant hardware can be controlled by a computer program.
  • the computer program can be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by a processor and a dedicated voice recognition chip in the electronic device, and may include Such as the flow of the embodiment of the arrival reminding method.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.

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

A method and apparatus for giving a reminder of arrival at a station, a storage medium and an electronic device. The method for giving a reminder of arrival at a station comprises: receiving, by means of a processor, a request for giving a reminder of arrival at a station, and according to the request for giving a reminder of arrival at a station, determining a target public transport station for which a reminder of arrival at a station needs to be given (101); acquiring, by means of the processor, the number of target stations, which an electronic device needs to pass to arrive at the target public transport station, from among public transport stations (102); by means of a special voice recognition chip, controlling a microphone to collect an external audio signal (103); recognizing the audio signal by means of the special voice recognition chip and the processor to obtain the number of stations, which the electronic device has passed, from among the public transport stations (104); and when the number of stations is consistent with the number of target stations, executing, by means of the processor, a preset operation of giving a reminder of arrival at a station (105).

Description

到站提醒方法、装置、存储介质及电子设备Arrival reminder method, device, storage medium and electronic equipment
本申请要求于2020年02月27日提交中国专利局、申请号为202010125355.9、发明名称为“到站提醒方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on February 27, 2020, the application number is 202010125355.9, and the invention title is "arrival reminder method, device, storage medium and electronic equipment", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及音频识别技术领域,具体涉及一种到站提醒方法、装置、存储介质及电子设备。This application relates to the technical field of audio recognition, and in particular to a method, device, storage medium, and electronic equipment for reminding station arrival.
背景技术Background technique
目前,如智能手机、平板电脑等电子设备已进入到人们的日常生活当中。人们可以在电子设备上安装各种各样的应用来拓展电子设备的功能,比如游戏、社交、购物等。当人们乘坐公共交通工具时,可能会因使用电子设备而发生坐过站的情况。为此,相关技术中利用卫星定位确定是否到站,并在到站时进行提醒。At present, electronic devices such as smart phones and tablet computers have entered people's daily lives. People can install various applications on electronic devices to expand the functions of electronic devices, such as games, social networking, shopping, etc. When people take public transportation, they may ride over stations due to the use of electronic devices. For this reason, satellite positioning is used in related technologies to determine whether to arrive at the station, and to remind when the station arrives.
发明内容Summary of the invention
本申请实施例提供了一种到站提醒方法、装置、存储介质及电子设备,能够降低电子设备实现到站提醒的功耗。The embodiments of the present application provide an arrival reminding method, device, storage medium, and electronic equipment, which can reduce the power consumption of the electronic equipment to realize arrival reminding.
第一方面,本申请实施例提供了一种到站提醒方法,应用于电子设备,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒方法包括:In the first aspect, an embodiment of the present application provides an arrival reminder method, which is applied to an electronic device, the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminder method includes:
通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;Receiving the station reminding request through the processor, and determining the target public transportation station that needs to be reminded according to the station reminding request;
通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;Acquiring, by the processor, the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station;
通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;Controlling the microphone to collect external audio signals through the dedicated voice recognition chip;
通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Recognizing the audio signal through the dedicated voice recognition chip and the processor to obtain the number of stations where the electronic device has passed public transportation stations;
当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。When the number of sites is consistent with the number of target sites, the processor executes a preset arrival reminder operation.
第二方面,本申请实施例提供了一种到站提醒装置,应用于电子设备,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒装置包括:In the second aspect, an embodiment of the present application provides an arrival reminder device, which is applied to an electronic device, the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminder device includes:
请求接收模块,用于通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;The request receiving module is configured to receive the station reminder request through the processor, and determine the target public transportation station that needs to be reminded according to the station reminder request;
数量确定模块,用于通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;A quantity determining module, configured to obtain, through the processor, the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station;
音频采集模块,用于通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;An audio collection module, configured to control the microphone to collect external audio signals through the dedicated voice recognition chip;
音频识别模块,用于通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设 备已经过公共交通站点的站点数量;An audio recognition module, configured to recognize the audio signal through the dedicated voice recognition chip and the processor, and obtain the number of stations where the electronic device has passed the public transportation station;
到站提醒模块,用于当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。The arrival reminder module is configured to execute a preset arrival reminder operation through the processor when the number of stations is consistent with the number of target stations.
第三方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,当所述计算机程序在包括麦克风、处理器和专用语音识别芯片的电子设备运行时,使得所述电子设备执行本申请实施例提供的到站提醒方法中的步骤。In the third aspect, the embodiments of the present application provide a storage medium on which a computer program is stored. When the computer program runs on an electronic device including a microphone, a processor, and a dedicated voice recognition chip, the electronic device executes The steps in the arrival reminding method provided in the embodiment of this application.
第四方面,本申请实施例还提供了一种电子设备,所述电子设备包括麦克风、处理器和功耗低于所述处理器的专用语音识别芯片,其中,In a fourth aspect, an embodiment of the present application also provides an electronic device, the electronic device including a microphone, a processor, and a dedicated voice recognition chip with lower power consumption than the processor, wherein:
所述处理器用于接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;以及The processor is configured to receive the arrival reminder request, and determine the target public transportation station that needs arrival reminder according to the arrival reminder request; 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 voice recognition chip is used to control the microphone to collect external audio signals; and
协同所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Identify 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.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be 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 be obtained based on these drawings without creative work.
图1是本申请实施例提供的到站提醒方法的一流程示意图。FIG. 1 is a schematic flow chart of the arrival reminding method 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 is opened and closed 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 a schematic diagram of another flow chart of the arrival reminding method provided by an embodiment of the present application.
图6是本申请实施例提供的到站提醒装置的结构示意图。Fig. 6 is a schematic structural diagram of an arrival reminding 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, where the same component symbols represent the same components, and the principle of the present application is implemented in an appropriate computing environment for illustration. The following description is based on the exemplified specific embodiments of the application, which should not be regarded as limiting other specific embodiments of the application that are not described in detail herein.
本申请实施例提供一种到站提醒方法、到站提醒装置、存储介质以及电子设备。其中,该到站提醒方法的执行主体可以是本申请实施例提供的到站提醒装置,或者集成了该到站提醒装置的电子设备,其中该到站提醒装置可以采用硬件或者软件的方式实现,电子设备可为计算设备诸如膝上型计算机、包含嵌入式计算机的计算机监视器、平板电脑、蜂窝电话、媒体播放器、或其它手持式或便携式电子设备、较小的设备(诸如腕表设备、挂式设备、耳机或听筒设备、被嵌入在眼镜中的设备或者佩戴在用户的头 部上的其它设备,或其它可佩戴式或微型设备)、游戏设备、导航设备、嵌入式系统等。The embodiments of the present application provide an arrival reminding method, an arrival reminding device, a storage medium, and electronic equipment. Wherein, the execution subject of the arrival reminding method may be the arrival reminding device provided in the embodiment of the present application, or an electronic device integrated with the arrival reminding device, wherein the arrival reminding device can be implemented in hardware or software. The electronic device can be a computing device such as a laptop computer, a computer monitor containing an embedded computer, a tablet computer, a cellular phone, a media player, or other handheld or portable electronic devices, smaller devices (such as wrist watch devices, Hanging devices, earphones or earpiece devices, devices embedded in glasses or other devices worn on the user’s head, or other wearable or micro devices), gaming devices, navigation devices, embedded systems, etc.
本申请提供一种到站提醒方法,应用于电子设备,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒方法包括:The present application provides an arrival reminder method, which is applied to an electronic device, the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminder method includes:
通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;Receiving the station reminding request through the processor, and determining the target public transportation station that needs to be reminded according to the station reminding request;
通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;Acquiring, by the processor, the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station;
通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;Controlling the microphone to collect external audio signals through the dedicated voice recognition chip;
通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Recognizing the audio signal through the dedicated voice recognition chip and the processor to obtain the number of stations where the electronic device has passed public transportation stations;
当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。When the number of sites is consistent with the number of target sites, the processor executes a preset arrival reminder operation.
可选地,在一实施例中,所述通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量,包括:Optionally, in an embodiment, the recognition of the audio signal through the dedicated voice recognition chip and the processor to obtain the number of stations where the electronic device has passed public transportation stations includes:
通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分;Recognizing whether the audio signal includes the frequency component corresponding to the public transportation station through the dedicated voice recognition chip;
当识别到所述音频信号中包括所述频率成分时,通过所述处理器识别所述音频信号是否为对应所述公共交通站点的预设音频信号;When it is recognized that the audio signal includes the frequency component, it is recognized 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 recognition times that the processor recognizes that the result is yes.
可选地,在一实施例中,所述通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分,包括:Optionally, in an embodiment, the identifying whether the audio signal includes a frequency component corresponding to the public transportation station through the dedicated voice recognition chip includes:
通过所述专用语音识别芯片识别所述频率成分在所述音频信号中的持续时长是否达到预设时长,是则确定所述音频信号中包括所述频率成分。The dedicated voice recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes the frequency component.
可选地,在一实施例中,所述通过所述专用语音识别芯片识别所述频率成分在所述音频信号中的持续时长是否达到预设时长,包括:Optionally, in an embodiment, the identifying whether the duration of the frequency component in the audio signal reaches a preset duration through the dedicated voice recognition chip includes:
通过所述专用语音识别芯片对所述音频信号进行无交叠分帧处理,得到多个音频帧;Performing non-overlapping framing processing on the audio signal by the dedicated speech recognition chip to obtain multiple audio frames;
通过所述专用语音识别芯片对所述音频帧进行傅里叶变换,并根据傅里叶变换结果识别所述频率成分在所述预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定所述频率成分在所述音频信号中的持续时长达到所述预设时长。Perform Fourier transform on the audio frame through the dedicated speech recognition chip, and identify whether the amplitude of the frequency component in the continuous audio frame within the preset time period reaches a preset value according to the Fourier transform result Amplitude, it is determined that the duration of the frequency component in the audio signal reaches the preset duration.
可选地,在一实施例中,所述通过所述处理器识别所述音频信号是否为对应所述公共交通站点的预设音频信号,包括:Optionally, in an embodiment, the identifying by the processor whether the audio signal is a preset audio signal corresponding to the public transportation station includes:
通过所述处理器调用预训练的对应所述预设音频信号的音频识别模型;Calling the pre-trained audio recognition model corresponding to the preset audio signal through the processor;
根据所述音频识别模型识别所述音频信号是否为对应所述公共交通站点的预设音频信号。Identify whether the audio signal is a preset audio signal corresponding to the public transportation station according to the audio recognition model.
可选地,在一实施例中,所述通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分之前,还包括:Optionally, in an embodiment, before identifying whether the audio signal includes a frequency component corresponding to the public transportation station through the dedicated voice recognition chip, the method further includes:
通过所述专用语音识别芯片滤除所述音频信号中的人声频率成分。The human voice frequency components in the audio signal are filtered out through the dedicated speech recognition chip.
可选地,在一实施例中,所述通过所述处理器接收到站提醒请求,包括:Optionally, in an embodiment, the receiving a station reminder request through the processor includes:
通过处理器侦测公共交通应用产生的触发信息,并根据所述触发信息提供到站提醒界面;Detect trigger information generated by the public transportation application through the processor, and provide an arrival reminder interface based on the trigger information;
通过所述到站提醒界面接收所述到站提醒请求。The arrival reminder request is received through the arrival reminder interface.
可选地,在一实施例中,当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作,包括:Optionally, in an embodiment, when the number of sites is the same as the number of target sites, executing a preset arrival reminder operation by the processor includes:
当所述站点数量与所述目标站点数量一致时,通过所述处理器获取与所述电子设备建立移动通信连接的基站的基站标识;When the number of sites is the same as the number of target sites, obtaining the base station identifier of the base station that establishes a mobile communication connection with the electronic device through the processor;
根据预设的基站标识和公共交通站点的对应关系,通过所述处理器确定对应所述基站标识的公共交通站点;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;
当所述公共交通站点为所述目标公共交通站点时,通过所述处理器执行预设的到站提醒操作。When the public transportation station is the target public transportation station, the processor executes a preset arrival reminder operation.
可选地,在一实施例中,所述根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点,包括:Optionally, in an embodiment, the determining the target public transportation station that needs to be reminded according to the arrival reminder request includes:
通过所述处理器解析出所述到站提醒请求所携带的站点标识,将所述站点标识所对应的公共交通站点设置为所述目标公共交通站点。The processor parses out the site identification carried in the arrival reminder request, and sets the public transportation site corresponding to the site identification as the target public transportation site.
请参照图1,图1为本申请实施例提供的到站提醒方法的流程示意图。该到站提醒方法应用于本申请提供的电子设备,该电子设备包括处理器、专用语音识别芯片和麦克风,如图1所示,本申请实施例提供的到站提醒方法的流程可以如下:Please refer to FIG. 1, which is a schematic flowchart of the arrival reminding method provided by an embodiment of the application. The arrival reminding method is applied to the electronic device provided in this application, and the electronic device includes a processor, a dedicated voice recognition chip, and a microphone. As shown in FIG. 1, the flow of the arrival reminding method provided in this embodiment of the application may be as follows:
在101中,通过处理器接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点。In 101, the processor receives the station reminder request, and determines the target public transportation station that needs to be reminded according to the station 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 so on.
本申请实施例中,处理器为适于通用处理任务的处理器,比如ARM架构的处理器。专用语音识别芯片是以语音识别为目的而设计的专用芯片,比如以语音识别为目的而设计的数字信号处理芯片,以语音识别为目的而设计的专用集成电路芯片等,其相较于通用的处理器,具有更低的功耗,适于语音识别任务的处理。其中,专用语音识别芯片、处理器以及麦克风任意二者之间通过通信总线(比如I2C总线)建立通信连接,实现数据的交互。其中,具体可由本领域普通技术人员根据实际需要选择处理器的型号以及专用语音识别芯片的型号。比如,可以选择的处理器型号包括但不限于骁龙855+、骁龙845、骁龙820、骁龙810以及骁龙710等。In the embodiments of the present application, the processor is a processor suitable for general processing tasks, such as an ARM architecture processor. Dedicated speech recognition chips are dedicated chips designed for speech recognition, such as digital signal processing chips designed for speech recognition, dedicated integrated circuit chips designed for speech recognition, etc., which are compared with general-purpose chips. The processor has lower power consumption and is suitable for processing speech recognition tasks. Among them, 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, those of ordinary skill in the art can select the model of the processor and the model of the dedicated voice recognition chip 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 the on-screen state, the processor receives the 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 public transportation stations passed by a public transportation route, that is, public transportation station 1 to public transportation station 9 shown in the figure, and the processor can be based on The user receives an arrival reminder request corresponding to the public transportation site for the "alarm clock" control associated with any public transportation site, and the arrival reminder request carries the site identifier of the corresponding public transportation site (for example, the site name of the site).
在接收到输入的到站提醒请求之后,处理器解析出到站提醒请求所携带的站点标识,将该站点标识所对应的公共交通站点设置为需要进行到站提醒的目标公共交通站点。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 that requires arrival reminder.
在102中,通过处理器获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量。In 102, the processor obtains 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 obtains the number of target public transportation stations that the electronic device needs to pass through to reach the target public transportation station.
其中,处理器首先获取当前与电子设备建立移动通信连接的当前基站的基站标识,并根据预设的基站标识和公共交通站点的对应关系,确定对应前述当前基站的公共交通站点,记为当前公共交通站点。Among them, the processor first obtains the base station identifier of the current base station that is currently establishing a mobile communication connection with the electronic device, and determines the public transportation station corresponding to the aforementioned current base station according to the preset correspondence between the base station identifier and the public transportation station, and records it as the current public transportation station. Traffic site.
应当说明的是,基站为电子设备提供网络接入服务,其位置通常是固定的,当电子设备与某一基站建立移动通信连接时,电子设备的位置即可确定。基于此,本申请实施例中预先将基站与距离其最近的公共交通站点关联,并进一步建立基站标识和公共交通站点的对应关系。其中,基站标识用于唯一表征基站,可由本领域普通技术人员根据实际需要选择作为基站标识的参数,比如,本申请实施例中,采用小区标识结合位置区码的方式作为基站标识。It should be noted that a base station provides network access services for electronic devices, 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 previously associated with the nearest public transportation station, and the corresponding relationship between the base station identifier and the public transportation station is further established. Among them, the base station identifier is used to uniquely identify the base station, and can be selected as a parameter of the base station identifier by a person of ordinary skill in the art according to actual needs. For example, in the embodiment of the present application, a cell identifier combined with a location area code is used as the base station identifier.
在确定当前公共交通站点之后,处理器获取到预存的当前公共交通站点到目标公共交通站点的路线信息,并根据该路线信息、当前公共交通站点以及目标公共交通站点确定出电子设备由当前公共交通站点到达目标公共交通站点所需经过的公共交通站点的目标站点数量。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 used 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 transportation stations that the station needs to pass through to reach the target public transportation station.
比如,对于图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 Figure 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 number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station is 6.
在103中,通过专用语音识别芯片控制麦克风采集外部的音频信号。In 103, the microphone is controlled by a dedicated voice recognition chip to collect external audio signals.
处理器在确定电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量之后,指示专用语音识别芯片开始进行过站检测,也即检测是否经过公共交通站点。After determining the number of target stations of public transportation stations that the electronic device needs to pass through to reach the target public transportation station, the processor instructs the dedicated voice recognition chip to start passing station detection, that is, to detect whether it passes the public transportation station.
相应的,专用语音识别芯片根据处理器的指示,控制麦克风采集外部的音频信号,用于过站检测。Correspondingly, the dedicated voice recognition chip controls the microphone to collect external audio signals according to the instructions of the processor for passing station detection.
在104中,通过专用语音识别芯片和处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量。In 104, the audio signal is recognized through a dedicated voice recognition chip and a processor, and the number of stations where the electronic device has passed the public transportation station is obtained.
其中,专用语音识别芯片和处理器根据采集到的音频信号进行过站检测,也即是识别采集到的音频信号是否为经过公共交通站点的音频信号,若是则确定电子设备经过一个公共交通站点,由此,即可得到电子设备已经过公共交通站点的站点数量。Among them, the dedicated voice recognition chip and processor perform passing detection based on 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 it is, it is determined that the electronic device passes through a public transportation station. Thus, the number of stations where the electronic equipment has passed the public transportation station can be obtained.
示例性的,专用语音识别芯片先识别音频信号是否为经过公共交通站点的音频信号,当识别到音频信号为经过公共交通站点的音频信号时,将该音频信号提供给处理器,由处理器再次识别该音频信号是否为经过公共交通站点的音频信号,是则确定电子设备经过一个公共交通站点。Exemplarily, the dedicated voice recognition chip first recognizes whether the audio signal is an audio signal passing through a public transportation station, and when it recognizes 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 again Identify whether the audio signal is an audio signal passing through a public transportation station, and if yes, it is determined that the electronic device passes through a public transportation station.
比如,专用语音识别芯片可以音频信号中是否包括公共交通站点的音频特征,是则判定前述音频信号为经过公共交通站点的音频信号;而处理器可以直接将麦克风提供的音频信号与预先采集的经过公共 交通站点的音频信号进行比对,当二者比对一致时,判定音频信号为经过公共交通站点的音频信号。For example, a dedicated speech recognition chip can determine whether the audio signal includes the audio characteristics of a public transportation station, and if it is, it is determined that the aforementioned audio signal is an audio signal passing through a public transportation station; and the processor can directly combine the audio signal provided by the microphone with the pre-collected path The audio signal of the public transportation station is compared, and when the two comparisons 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, the processor executes a preset arrival reminder operation.
其中,处理器实时判定电子设备已经过公共交通站点的站点数量是否与目标站点数量一致,当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,说明电子设备此时已到达需要进行到站提醒的目标公共交通站点,此时处理器执行预设的到站提醒操作。对于到站提醒操作的类型,本申请实施例中不做具体限制,可由本领域普通技术人员根据实际需要进行设置,包括但不限于音频、视频、图像、文字等到站提醒方式。比如,处理器可以播放预设的到站提醒闹铃音,利用该到站提醒闹铃音提醒用户当前已到站。Among them, the processor determines in real time whether the number of stations where the electronic equipment has passed the public transportation station is consistent with the number of the target station. When the number of stations where the electronic equipment has passed the public transportation station is consistent with the number of the target station, it means that the electronic equipment has arrived at this time and needs to be performed. At the target public transportation station of the arrival reminder, the processor executes the preset arrival reminder operation at this time. The type of arrival reminding operation is not specifically limited in the embodiments of this application, and can be set by a person of ordinary skill in the art according to actual needs, including but not limited to audio, video, image, text and other arrival reminding methods. For example, the processor can play a preset arrival reminder alarm tone, and use the arrival reminder alarm tone to remind the user that the station has arrived currently.
由上可知,本申请通过处理器接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点,以及获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量,然后通过专用语音识别芯片控制麦克风采集外部的音频信号,并由专用语音识别芯片协同处理器识别采集到的音频信号,得到电子设备已经过公共交通站点的站点数量,最后当已经过的站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作。相较于相关技术,无需进行卫星定位即可实现到站提醒,从而能够有效降低电子设备实现到站提醒的功耗。It can be seen from the above that this application receives the station reminder request through the processor, and according to the arrival reminder request, determines the target public transportation station that needs to be reminded, 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 sites, and then use a dedicated voice recognition chip to control the microphone to collect external audio signals, and the dedicated voice recognition chip co-processor recognizes the collected audio signals to obtain the number of sites where the electronic equipment has passed the public transportation site, and finally when it has passed When the number of sites is the same as the number of target sites, the processor executes the preset arrival reminder operation. Compared with related technologies, 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 voice recognition chip and a processor to obtain the number of stations where the electronic device has passed the public transportation station, including:
(1)通过专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分;(1) Identify whether the audio signal includes frequency components corresponding to public transportation stations through a dedicated voice recognition chip;
(2)当识别到音频信号中包括前述频率成分时,通过处理器识别音频信号是否为对应公共交通站点的预设音频信号;(2) When it is recognized that the audio signal includes the aforementioned frequency components, the processor recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station;
(3)根据处理器识别结果为是的识别次数,得到站点数量。(3) Obtain the number of sites according to the number of recognition times that the processor recognition result is yes.
应当说明的是,对于不同类型的公共交通站点,存在特定的声音特征。It should be noted that there are specific sound characteristics for different types of public transportation stations.
比如,对于公交车站点,当公交车经过公交车站点时,存在公交车开/关门(即到站开门,离站关门)提示音的声音特征;而对于地铁站点,当地铁经过地铁站点时,则存在地铁开/关门(同样是到站开门,离站关门)提示音的声音特征。For example, for a bus station, when the bus passes by the bus station, there is the sound feature of the bus opening/closing (that is, the door opens at the station, and the door closes when the station leaves the station); while for the subway station, when the subway passes the subway station, Then there is the sound characteristic of the prompt sound of subway opening/closing (also opening the door when arriving at the station and closing the door when leaving the station).
示例性的,以地铁站点为例,请参照图3,图3为地铁开关门时提示音的语谱图,根据该语谱图可以看出,地铁开关门的提示音多个频率成分组成。相应的,可以预先建立地铁站点和相应频率成分的对应关系。同理可以建立公共交通站点和相应频率成分的对应关系。Exemplarily, taking a subway station as an example, please refer to Figure 3, which is a spectrogram of the prompt sound when the subway door is opened and closed. According to the spectrogram, it can be seen that the prompt sound of the subway door opening and closing consists of multiple frequency components. Correspondingly, the correspondence between subway stations and corresponding frequency components can be established in advance. In the same way, the correspondence between public transportation stations and corresponding frequency components can be established.
由此,在对音频信号进行识别时,可由专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分。若是,则可以初步判定电子设备经过了一个公共交通站点,将音频信号提供给处理器,由处理器做进一步识别。其中,处理器识别音频信号是否为对应公共交通站点的预设音频信号,是则可以确定电子设备已经过一个公共交通站点。Therefore, when the audio signal is recognized, the dedicated voice recognition chip can recognize whether the audio signal includes the frequency component corresponding to the public transportation station. If it is, 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. Wherein, the processor recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station, and if yes, 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 identifications whose identification result is yes, where the processor can directly use the number of identifications whose identification result is yes as the number of identifications that the electronic device has passed the public transportation station. The number of sites.
比如,处理器对专用语音识别芯片在不同时刻提供的多个音频信号分别进行了识别,若其中识别结 果为是的次数为N,则说明电子设备已经过公共交通站点的站点数量也为N。For example, the processor recognizes multiple audio signals provided by a dedicated voice 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 the public transportation station is also N.
在一实施例中,通过专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分之前,还包括:In an embodiment, before recognizing whether the audio signal includes the frequency component corresponding to the public transportation station through the dedicated voice recognition chip, the method further includes:
通过专用语音识别芯片滤除音频信号中的人声频率成分。The human voice frequency components in the audio signal are filtered through a dedicated speech recognition chip.
其中,在对音频信号进行识别之前,可以提取滤除音频信号中的人声频率成分,以减小人声频率成分对识别带来的干扰。Among them, before the audio signal is recognized, the human voice frequency components in the audio signal can be extracted and filtered to reduce the interference caused by the human voice frequency components on the recognition.
在一实施例中,通过专用语音识别芯片识别前述音频信号中是否包括对应公共交通站点的频率成分,包括:In an embodiment, identifying whether the aforementioned audio signal includes frequency components corresponding to public transportation stations through a dedicated voice recognition chip includes:
通过专用语音识别芯片识别前述频率成分在前述音频信号中的持续时长是否达到预设时长,是则确定前述音频信号中包括前述频率成分。A dedicated voice recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes the frequency component.
本申请实施例中,专用语音识别芯片在识别麦克风提供的音频信号中是否包括对应公共交通站点的频率成分时,可以识别对应公共交通站点的频率成分在该音频信号中的持续时长是否达到预设时长,当识别到前述频率成分在该音频信号中持续时长达到预设时长时,确定该音频信号包括对应公共交通站点的频率成分。In the embodiment of the present application, when the dedicated voice recognition chip recognizes whether the audio signal provided by the microphone includes the frequency component corresponding to the public transportation station, it can recognize whether the frequency component of the corresponding public transportation station in the audio signal lasts for a preset duration Time length, when it is recognized that the aforementioned frequency component in the audio signal lasts for a preset time length, it is determined that the audio signal includes the frequency component 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, and these 7 different frequency components correspond to the corresponding preset durations, and the preset durations corresponding to different frequency components are different, and the dedicated voice recognition chip recognizes them separately Whether the duration of the 7 frequency components corresponding to the subway station in the audio signal provided by the microphone reaches their respective preset durations, if they are all reached, it can be determined that the audio signal includes the frequency components corresponding to the subway station, and then it can be determined that the electronic device passes by A subway station.
在一实施例中,通过专用语音识别芯片识别前述频率成分在音频信号中的持续时长是否达到预设时长,包括:In an embodiment, identifying whether the duration of the aforementioned frequency component in the audio signal reaches a preset duration through a dedicated voice recognition chip includes:
(1)通过专用语音识别芯片对前述音频信号进行无交叠分帧处理,得到多个音频帧;(1) Perform non-overlapping framing processing of the aforementioned audio signal through a dedicated speech recognition chip to obtain multiple audio frames;
(2)通过专用语音识别芯片对音频帧进行傅里叶变换,并根据傅里叶变换结果识别前述频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定前述频率成分在前述音频信号中的持续时长达到预设时长。(2) Perform Fourier transform on the audio frame through a dedicated speech recognition chip, and identify whether the amplitude of the aforementioned frequency component in the continuous audio frame within the preset time length reaches the preset amplitude according to the Fourier transform result, yes It is determined that the duration of the aforementioned frequency component in the aforementioned audio signal reaches the 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 voice 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个音频帧,每个音频帧可以表示为x m(n)。其中,无交叠分帧可以通俗的理解为分帧得到两个相邻音频帧之间不存在交叠部分。 For example, referring to Figure 4, the dedicated speech recognition chip performs non-overlapping framing for the audio signal x(n) provided by the microphone, and each frame is of length N. A total of m audio frames are obtained by framing, and each audio frame can be expressed as x m (n). Among them, non-overlapping framing can be generally understood as framing to obtain no overlap between two adjacent audio frames.
在分帧得到多个音频帧之后,专用语音识别芯片进一步对分帧得到的每一音频帧进行傅里叶变换,并根据傅里叶变换结果识别对应公共交通站点的频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定频率成分在音频信号中的持续时长达到预设时长。其中,预设时长可由本领域普通技术人员根据实际需要进行设置,本申请实施例中不做具体限制。After multiple audio frames are obtained by framing, the dedicated speech recognition chip further performs Fourier transform on each audio frame obtained by framing, and recognizes that the frequency component of the corresponding public transportation station is within the preset time according to the result of Fourier transform Whether the amplitudes in the consecutive audio frames all reach the preset amplitude, it is determined that the duration of the frequency component in the audio signal reaches the preset duration. Among them, the preset duration can be set by a person of ordinary skill in the art according to actual needs, and is not specifically limited in the embodiment of the present application.
比如,对音频帧x m(n)进行快速傅里叶变换,得到对应的傅里叶变换结果X m(n)=FFT[x m(n)],则傅里叶变换的频率分辨率为f s/N,其中f s为音频信号的采样频率,N为音频帧的长度。对于任一频率成分f,其在傅里叶变换结果X m(n)中的位置为i=Nf/f s,可以表示为X m(i)。然后,对于对应公共交通站点的频率成分f',在每一音频帧内,频率成分f'的幅值为
Figure PCTCN2021074954-appb-000001
其中abs[]表示求取绝对值。对于频率成分f',若频率成分f'在预设时长t内的连续音频帧每帧的幅值
Figure PCTCN2021074954-appb-000002
均达到预设幅值α时,则确定频率成分f'在音频信号中的持续时长达到预设时长t。
For example, fast Fourier transform is performed 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 PCTCN2021074954-appb-000001
Among them, abs[] means to obtain the absolute value. For the frequency component f', if the frequency component f'is within the preset duration t, the amplitude of each continuous audio frame
Figure PCTCN2021074954-appb-000002
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 an embodiment, identifying whether the audio signal is a preset audio signal corresponding to a public transportation station by the processor includes:
(1)通过处理器调用预训练的对应预设音频信号的音频识别模型;(1) Call the pre-trained audio recognition model corresponding to the preset audio signal through the processor;
(2)根据音频识别模型识别音频信号是否为对应公共交通站点的预设音频信号。(2) Identify whether the audio signal is a preset audio signal corresponding to the public transportation station according to the audio recognition model.
应当说明的是,本申请实施例中,预先训练有对应预设音频信号的音频识别模型,其被配置为对输入的待识别音频信号进行分类,得到待识别音频信号为预设音频信号的分类结果,或者得到待识别音频信号不为预设音频信号的分类结果。It should be noted that, in the embodiment of the present application, the audio recognition model corresponding to the preset audio signal is pre-trained, and it is configured to classify the input audio signal to be recognized to obtain the classification of the audio signal to be recognized as the preset audio signal As a result, or obtain the classification result that the audio signal to be identified is not a preset audio signal.
示例性的,可以预先采集对应公共交通站点的预设音频信号,并提取其语谱图作为训练样本,利用卷积神经网络根据训练样本进行训练,得到音频识别模型。Exemplarily, a preset audio signal corresponding to a public transportation station may be collected in advance, and its spectrogram may be extracted as a training sample, and a convolutional neural network may be used for training according to the training sample to obtain an audio recognition model.
相应的,在通过处理器识别音频信号是否为对应公共交通站点的预设音频信号时,处理器即可调用预训练的对应预设音频信号的音频识别模型,并将专用语音识别芯片提供的音频信号输入到音频识别模型中进行分类,得到该音频信号为前述预设音频信号的识别结果,或者得到该音频信号不为前述预设音频信号的识别结果。Correspondingly, when the processor recognizes 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 dedicated voice 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 an embodiment, the station reminding request received by the processor includes:
(1)通过处理器侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面;(1) The processor detects the trigger information generated by the public transportation application, and provides an arrival reminder interface based on the trigger information;
(2)通过到站提醒界面接收到站提醒请求。(2) Receive the arrival reminder request through the arrival reminder interface.
应当说明的是,在前台运行公共交通应用时,处理器可以通过公共交通应用接收用于指示显示乘车码的显示请求,并根据该显示请求显示乘车码,使得用户能够快速的通过地铁闸机,或者进入公交车等。相应的,公共交通应用在显示的乘车码被扫描后,将产生触发信息,用于指示乘车码已被扫描。It should be noted that when a public transportation application is running in the foreground, the processor can receive a display request for indicating the display of the bus code through the public transportation application, and display the bus code according to the display request, so that the user can quickly pass through the subway gate Machine, or enter the bus, etc. Correspondingly, after the displayed travel code is scanned, the public transportation application will generate trigger information to indicate that the travel code has been scanned.
相应的,处理器可以侦测公共交通应用产生的触发信息,若侦测到的该触发信息,则可确定电子设备以随用户进入地铁站点,或登上公交车,此时提供到站提醒界面,通过该到站提醒界面接收到站提醒请求。Correspondingly, the processor can detect the trigger information generated by the public transportation application. If the trigger information is detected, it can determine the electronic device to follow the user into the subway station or board the bus, and provide an arrival reminder interface at this time , Through the arrival reminder interface to receive the arrival reminder request.
在一实施例中,为了确保到站提醒的准确性,当站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作,包括: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 executes the preset arrival reminder operation, including:
(1)当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,通过处理器获取与电子设备建立移动通信连接的基站的基站标识;(1) When the number of sites where the electronic device has passed public transportation sites is the same as 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, the processor determines the public transportation station corresponding to the base station identifier;
(3)当前述公共交通站点为目标公共交通站点时,通过处理器执行预设的到站提醒操作。(3) When the aforementioned public transportation station is the target public transportation station, the processor executes the preset arrival reminder operation.
本申请实施例中,处理器在识别到电子设备已经过公共交通站点的站点数量与目标站点数量一致时,并不立即执行预设的到站提醒操作,而是先对电子设备实际到达的公共交通站点进行识别,当电子设备实际到达的公共交通站点与目标公共交通站点一致时,才执行预设的到站提醒操作。In the embodiment of the present application, when the processor recognizes that the number of stations of the public transportation station that the electronic device has passed is the same as the number of the target station, it does not immediately perform the preset arrival reminder operation, but first informs the public that the electronic device has actually arrived. The traffic station is identified, and the preset arrival reminder operation is performed only when the public transportation station actually reached by the electronic device is consistent with the target public transportation station.
其中,当识别到电子设备已经过公共交通站点的站点数量与目标站点数量一致时,处理器首先获取到与电子设备建立移动通信连接的基站的基站标识,也即是获取到为电子设备提供网络接入服务的基站的基站标识。Among them, when it is recognized that the number of sites where the electronic device has passed the public transportation site is consistent with the number of target sites, 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 that provides the electronic device. The base station ID of the base station accessing the service.
然后,处理器根据预设的基站标识和公共交通站点的对应关系,确定出对应获取到的基站标识的公共交通站点,作为电子设备实际到达的公共交通站点。Then, the processor determines the public transportation station corresponding to the acquired base station identifier according to the preset correspondence between the base station identifier and the public transportation station, 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. 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, please refer to the related description in the above embodiment for details, which will not be repeated here.
图5为本申请实施例提供的到站提醒方法的另一流程示意图。该到站提醒方法应用于本申请提供的电子设备,该电子设备包括处理器、专用语音识别芯片和麦克风,如图5所示,本申请实施例提供的到站提醒方法的流程可以如下:FIG. 5 is a schematic diagram of another flow of the arrival reminding method provided by an embodiment of the application. The arrival reminding method is applied to the electronic device provided in this application, and the electronic device includes a processor, a dedicated voice recognition chip, and a microphone. As shown in FIG. 5, the flow of the arrival reminding method provided in this embodiment of the application may be as follows:
在201中,处理器侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面。In 201, the processor detects the trigger information generated by the public transportation application, and provides an arrival reminder interface based on the trigger information.
应当说明的是,在前台运行公共交通应用时,处理器可以通过公共交通应用接收用于指示显示乘车码的显示请求,并根据该显示请求显示乘车码,使得用户能够快速的通过地铁闸机,或者进入公交车等。相应的,公共交通应用在显示的乘车码被扫描后,将产生触发信息,用于指示乘车码已被扫描。It should be noted that when a public transportation application is running in the foreground, the processor can receive a display request for indicating the display of the bus code through the public transportation application, and display the bus code according to the display request, so that the user can quickly pass through the subway gate Machine, or enter the bus, etc. Correspondingly, after the displayed travel code is scanned, the public transportation application will generate trigger information to indicate that the travel code has been scanned.
相应的,处理器可以侦测公共交通应用产生的触发信息,若侦测到的该触发信息,则可确定电子设备以随用户进入地铁站点,或登上公交车,此时提供到站提醒界面,以通过该到站提醒界面接收到站提醒请求。Correspondingly, the processor can detect the trigger information generated by the public transportation application. If the trigger information is detected, it can determine the electronic device to follow the user into the subway station or board the bus, and provide an arrival reminder interface at this time , To receive the arrival reminder request through the arrival reminder interface.
在202中,处理器通过到站提醒界面接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点。In 202, the processor receives the arrival reminder request through the arrival reminder interface, and according to the arrival reminder request, determines the target public transportation station that needs to be reminded.
示例性的,请参照图2,图2所示的到站提醒界面中包括一条公共交通路线所经过的所有公共交通站点,即图示的公共交通站点1至公共交通站点9,处理器可以根据用户对任一公共交通站点关联的“闹钟”控件接收对应该公共交通站点的到站提醒请求,该到站提醒请求携带有对应公共交通站点的站点标识(比如,该站点的站点名称)。Exemplarily, please refer to Fig. 2. The arrival reminder interface shown in Fig. 2 includes all public transportation stations passed by a public transportation route, that is, public transportation station 1 to public transportation station 9 shown in the figure, and the processor can be based on The user receives an arrival reminder request corresponding to the public transportation site for the "alarm clock" control associated with any public transportation site, and the arrival reminder request carries the site identifier of the corresponding public transportation site (for example, the site name of the site).
在接收到输入的到站提醒请求之后,处理器解析出到站提醒请求所携带的站点标识,将该站点标识所对应的公共交通站点设置为需要进行到站提醒的目标公共交通站点。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 that requires arrival reminder.
在203中,处理器获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量。In 203, the processor obtains 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 obtains the number of target public transportation stations that the electronic device needs to pass through to reach the target public transportation station.
其中,处理器首先获取当前与电子设备建立移动通信连接的当前基站的基站标识,并根据预设的基站标识和公共交通站点的对应关系,确定对应前述当前基站的公共交通站点,记为当前公共交通站点。Among them, the processor first obtains the base station identifier of the current base station that is currently establishing a mobile communication connection with the electronic device, and determines the public transportation station corresponding to the aforementioned current base station according to the preset correspondence between the base station identifier and the public transportation station, and records it as the current public transportation station. Traffic site.
应当说明的是,基站为电子设备提供网络接入服务,其位置通常是固定的,当电子设备与某一基站建立移动通信连接时,电子设备的位置即可确定。基于此,本申请实施例中预先将基站与距离其最近的公共交通站点关联,并进一步建立基站标识和公共交通站点的对应关系。其中,基站标识用于唯一表征基站,可由本领域普通技术人员根据实际需要选择作为基站标识的参数,比如,本申请实施例中,采用小区标识结合位置区码的方式作为基站标识。It should be noted that a base station provides network access services for electronic devices, 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 previously associated with the nearest public transportation station, and the corresponding relationship between the base station identifier and the public transportation station is further established. Among them, the base station identifier is used to uniquely identify the base station, and can be selected as a parameter of the base station identifier by a person of ordinary skill in the art according to actual needs. For example, in the embodiment of the present application, a cell identifier combined with a location area code is used as the base station identifier.
在确定当前公共交通站点之后,处理器获取到预存的当前公共交通站点到目标公共交通站点的路线信息,并根据该路线信息、当前公共交通站点以及目标公共交通站点确定出电子设备由当前公共交通站点到达目标公共交通站点所需经过的公共交通站点的目标站点数量。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 used 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 transportation stations that the station needs to pass through to reach the target public transportation station.
比如,对于图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 Figure 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 number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station is 6.
在204中,专用语音识别芯片控制麦克风采集外部的音频信号。In 204, a dedicated voice recognition chip controls the microphone to collect external audio signals.
处理器在确定电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量之后,指示专用语音识别芯片开始进行过站检测,也即检测是否经过公共交通站点。After determining the number of target stations of public transportation stations that the electronic device needs to pass through to reach the target public transportation station, the processor instructs the dedicated voice recognition chip to start passing station detection, that is, to detect whether it passes the public transportation station.
相应的,专用语音识别芯片根据处理器的指示,控制麦克风采集外部的音频信号,用于过站检测。Correspondingly, the dedicated voice recognition chip controls the microphone to collect external audio signals according to the instructions of the processor for passing station detection.
在205中,专用语音识别芯片协同处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量。In 205, the dedicated voice recognition chip co-processor recognizes the audio signal, and obtains the number of stations where the electronic device has passed the public transportation station.
其中,专用语音识别芯片和处理器根据采集到的音频信号进行过站检测,也即是识别采集到的音频信号是否为经过公共交通站点的音频信号,若是则确定电子设备经过一个公共交通站点,由此,即可得到电子设备已经过公共交通站点的站点数量。Among them, the dedicated voice recognition chip and processor perform passing detection based on 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 it is, it is determined that the electronic device passes through a public transportation station. Thus, the number of stations where the electronic equipment has passed the public transportation station can be obtained.
示例性的,专用语音识别芯片先识别音频信号是否为经过公共交通站点的音频信号,当识别到音频信号为经过公共交通站点的音频信号时,将该音频信号提供给处理器,由处理器再次识别该音频信号是否为经过公共交通站点的音频信号,是则确定电子设备经过一个公共交通站点。Exemplarily, the dedicated voice recognition chip first recognizes whether the audio signal is an audio signal passing through a public transportation station, and when it recognizes 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 again Identify whether the audio signal is an audio signal passing through a public transportation station, and if yes, it is determined that the electronic device passes through a public transportation station.
比如,专用语音识别芯片可以音频信号中是否包括公共交通站点的音频特征,是则判定前述音频信号为经过公共交通站点的音频信号;而处理器可以直接将麦克风提供的音频信号与预先采集的经过公共交通站点的音频信号进行比对,当二者比对一致时,判定音频信号为经过公共交通站点的音频信号。For example, a dedicated speech recognition chip can determine whether the audio signal includes the audio characteristics of a public transportation station, and if it is, it is determined that the aforementioned audio signal is an audio signal passing through a public transportation station; and the processor can directly combine the audio signal provided by the microphone with the pre-collected path The audio signal of the public transportation station is compared, and when the two comparisons 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 obtains the base station identifier of the base station that establishes a mobile communication connection with the electronic device.
其中,当识别到电子设备已经过公共交通站点的站点数量与目标站点数量一致时,处理器首先获取到与电子设备建立移动通信连接的基站的基站标识,也即是获取到为电子设备提供网络接入服务的基站的基站标识。Among them, when it is recognized that the number of sites where the electronic device has passed the public transportation site is consistent with the number of target sites, 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 that provides the electronic device. The base station ID of the base station accessing the service.
在207中,处理器根据预设的基站标识和公共交通站点的对应关系,确定对应基站标识的公共交通站点。In 207, the processor determines the 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 the public transportation station corresponding to the acquired base station identifier according to the preset correspondence between the base station identifier and the public transportation station, 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, the processor executes a preset arrival reminder operation.
在确定电子设备实际到达的公共交通站点时,处理器进一步识别电子设备实际达到的公共交通站点是否为目标公共交通站点,当电子设备实际到达的公共交通站点为目标公共交通站点时,处理器执行预设的到站提醒操作。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. When the public transportation station actually reached by the electronic device is the target public transportation station, the processor executes The preset arrival reminder operation.
其中,对于到站提醒操作的类型,本申请实施例中不做具体限制,可由本领域普通技术人员根据实际需要进行设置,包括但不限于音频、视频、图像、文字等到站提醒方式。比如,处理器可以播放预设的到站提醒闹铃音,利用该到站提醒闹铃音提醒用户当前已到站。Among them, the type of arrival reminding operation is not specifically limited in the embodiments of this application, and can be set by a person of ordinary skill in the art according to actual needs, including but not limited to audio, video, image, text, etc. arrival reminding methods. For example, the processor can play a preset arrival reminder alarm tone, and use the arrival reminder alarm tone to remind the user that the station has arrived currently.
请参照图6,图6为本申请实施例提供的到站提醒装置的结构示意图。该到站提醒装置可以应用于电子设备,该电子设备包括处理器、专用语音识别芯片和麦克风。到站提醒装置可以包括请求接收模块301、数量确定模块302、音频采集模块303、音频识别模块304以及到站提醒模块305,其中,Please refer to FIG. 6, which is a schematic structural diagram of the arrival reminding device provided by an embodiment of the application. The arrival reminder device can be applied to electronic equipment, which 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, where:
请求接收模块301,用于通过处理器接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点;The request receiving module 301 is configured to receive the stop reminder request through the processor, and determine the target public transportation station that needs to be reminded according to the stop reminder request;
数量确定模块302,用于通过处理器获取电子设备到达目标公共交通站点所需经过的公共交通站点的目标站点数量;The quantity determining module 302 is configured to obtain the target station quantity of public transportation stations that the electronic device needs to pass through to reach the target public transportation station through the processor;
音频采集模块303,用于通过专用语音识别芯片控制麦克风采集外部的音频信号;The audio collection module 303 is used to control the microphone to collect external audio signals through a dedicated voice recognition chip;
音频识别模块304,用于通过专用语音识别芯片和处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量;The audio recognition module 304 is used to recognize the audio signal through a dedicated voice recognition chip and a processor, and 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 number of the aforementioned stations is consistent with the number of target stations.
在一实施例中,在通过专用语音识别芯片和处理器识别音频信号,得到电子设备已经过公共交通站点的站点数量时,音频识别模块304用于:In one embodiment, when the audio signal is recognized by a dedicated voice recognition chip and a processor to obtain the number of stations where the electronic device has passed the public transportation station, the audio recognition module 304 is used to:
通过专用语音识别芯片识别音频信号中是否包括对应公共交通站点的频率成分;Recognize whether the audio signal includes frequency components corresponding to public transportation stations through a dedicated voice recognition chip;
当识别到音频信号中包括前述频率成分时,通过处理器识别音频信号是否为对应公共交通站点的预设音频信号;When it is recognized that the audio signal includes the aforementioned frequency components, the processor recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station;
根据处理器识别结果为是的识别次数,得到前述站点数量。According to the number of recognition times that the processor recognition result is yes, the aforementioned number of sites is obtained.
在一实施例中,在通过专用语音识别芯片识别前述音频信号中是否包括对应公共交通站点的频率成分时,音频识别模块304用于:In an embodiment, when recognizing whether the aforementioned audio signal includes frequency components corresponding to public transportation stations through a dedicated voice recognition chip, the audio recognition module 304 is used to:
通过专用语音识别芯片识别前述频率成分在前述音频信号中的持续时长是否达到预设时长,是则确定前述音频信号中包括前述频率成分。A dedicated voice recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes the frequency component.
在一实施例中,在通过专用语音识别芯片识别前述频率成分在音频信号中的持续时长是否达到预设时长时,音频识别模块304用于:In an embodiment, when identifying whether the duration of the aforementioned frequency components in the audio signal reaches a preset duration through a dedicated voice recognition chip, the audio recognition module 304 is used to:
通过专用语音识别芯片对前述音频信号进行无交叠分帧处理,得到多个音频帧;Perform non-overlapping framing processing of the aforementioned audio signal through a dedicated speech recognition chip to obtain multiple audio frames;
通过专用语音识别芯片对音频帧进行傅里叶变换,并根据傅里叶变换结果识别前述频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定前述频率成分在前述音频信号中的持续时长达到预设时长。The audio frame is Fourier-transformed through a dedicated speech recognition chip, and according to the Fourier-transform result, it is recognized whether the amplitudes of the aforementioned frequency components in the continuous audio frames within the preset time period all reach the preset amplitudes, and if yes, the foregoing is determined The duration of the frequency component in the aforementioned audio signal reaches the preset duration.
在一实施例中,在通过处理器识别音频信号是否为对应公共交通站点的预设音频信号时,音频识别模块304用于:In an embodiment, when the processor recognizes whether the audio signal is a preset audio signal corresponding to a public transportation station, the audio recognition module 304 is configured to:
通过处理器调用预训练的对应预设音频信号的音频识别模型;Call the pre-trained audio recognition model corresponding to the preset audio signal through the processor;
根据音频识别模型识别音频信号是否为对应公共交通站点的预设音频信号。According to the audio recognition model, it is recognized whether the audio signal is a preset audio signal corresponding to the public transportation station.
在一实施例中,在通过处理器接收到站提醒请求时,请求接收模块301用于:In an embodiment, when a station reminder request is received through the processor, the request receiving module 301 is configured to:
通过处理器侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面;The processor detects the trigger information generated by the public transportation application, and provides an arrival reminder interface based on the trigger information;
通过到站提醒界面接收到站提醒请求。Receive the arrival reminder request through the arrival reminder interface.
在一实施例中,当站点数量与目标站点数量一致,通过处理器执行预设的到站提醒操作时,到站提醒模块305用于:In one embodiment, when the number of sites is the same as the number of target sites, and the preset arrival reminder operation is executed by the processor, the arrival reminder module 305 is used to:
当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,通过处理器获取与电子设备建立移动通信连接的基站的基站标识;When the number of sites where the electronic device has passed public transportation sites is the same as 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;
根据预设的基站标识和公共交通站点的对应关系,通过处理器确定对应基站标识的公共交通站点;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 transportation station is the target public transportation station, the processor executes a preset arrival reminder operation.
应当说明的是,本申请实施例提供的到站提醒装置与上文实施例中的到站提醒方法属于同一构思,在到站提醒装置上可以运行到站提醒方法实施例中提供的任一方法,其具体实现过程详见以上实施例,此处不再赘述。It should be noted that the arrival reminding device provided in the embodiment of this application belongs to the same concept as the arrival reminding method in the above embodiment, and any method provided in the embodiment of the arrival reminding method can be run on the arrival reminding device. For the specific implementation process, please refer to the above embodiment, which will not be repeated here.
本申请实施例提供一种存储介质,其上存储有用于到站提醒的计算机程序,当其存储的用于到站提醒的计算机程序在本申请实施例提供的电子设备上执行时,使得电子设备执行如本申请实施例提供的到站提醒方法中的步骤。其中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)或者随机存取器(Random Access Memory,RAM)等。The embodiment of the present application provides a storage medium on which a computer program for arrival reminder is stored. When the stored computer program for the arrival reminder is executed on the electronic device provided in the embodiment of the application, the electronic device Perform the steps in the arrival reminding method provided in the embodiment of this application. Among them, the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), etc.
本申请实施例还提供一种电子设备,请参照图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. The dedicated voice 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 a person of ordinary skill in the art can select the processor model 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, Snapdragon 710, etc.
专用语音识别芯片402是以语音识别为目的而设计的专用芯片,比如以语音识别为目的而设计的数字信号处理芯片,以语音识别为目的而设计的专用集成电路芯片等,其相较于通用的处理器,具有更低的功耗,适于语音识别任务的处理。The dedicated voice recognition chip 402 is a dedicated chip designed for voice recognition, such as a digital signal processing chip designed for voice recognition, a dedicated integrated circuit chip designed for voice recognition, etc., compared to general-purpose chips The processor has lower power consumption and is suitable for processing speech recognition tasks.
存储器404中存储有用于到站提醒的计算机程序,其可以为高速随机存取存储器,还可以为非易失性存储器,比如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件等。相应地,存储器404还可以包括存储器控制器,以提供处理器401和专用语音识别芯片402对存储器404的访问,从而实现如下功能:The memory 404 stores a computer program for arrival reminder, which may be a high-speed random access memory, or a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device, etc. . Correspondingly, the memory 404 may also include a memory controller to provide the processor 401 and the dedicated voice recognition chip 402 to access the memory 404, so as to realize the following functions:
处理器401用于接收到站提醒请求,并根据到站提醒请求确定需要进行到站提醒的目标公共交通站点;以及The processor 401 is configured to receive the arrival reminder request, and according to the arrival reminder request, determine the target public transportation station that needs the 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;
专用语音识别芯片402用于控制麦克风采集外部的音频信号;以及The dedicated voice recognition chip 402 is used to control the microphone to collect external audio signals; and
协同处理器401识别音频信号,得到电子设备已经过公共交通站点的站点数量;The co-processor 401 recognizes the audio signal, and obtains the number of stations where the electronic device has passed the public transportation station;
处理器401还用于当前述站点数量与目标站点数量一致时,通过处理器执行预设的到站提醒操作。The processor 401 is further configured to perform a preset arrival reminder operation through the processor when the number of the aforementioned sites is consistent with the number of the target sites.
在一实施例中,在协同处理器401识别音频信号,得到电子设备已经过公共交通站点的站点数量时,专用语音识别芯片402用于:In one embodiment, when the co-processor 401 recognizes the audio signal and obtains the number of stations where the electronic device has passed the public transportation station, the dedicated voice recognition chip 402 is used to:
识别音频信号中是否包括对应公共交通站点的频率成分;Identify whether the audio signal includes the frequency component of the corresponding public transportation station;
当专用语音识别芯片402识别到音频信号中包括前述频率成分时,处理器401用于识别音频信号是否为对应公共交通站点的预设音频信号;以及When the dedicated voice recognition chip 402 recognizes that the audio signal includes the aforementioned frequency components, the processor 401 is used to recognize whether the audio signal is a preset audio signal corresponding to a public transportation station; and
根据识别结果为是的识别次数,得到前述站点数量。According to the number of recognitions whose recognition result is yes, the aforementioned number of sites is obtained.
在一实施例中,在识别前述音频信号中是否包括对应公共交通站点的频率成分时,专用语音识别芯片402用于:In one embodiment, when recognizing whether the aforementioned audio signal includes frequency components corresponding to public transportation stations, the dedicated voice recognition chip 402 is used to:
识别前述频率成分在前述音频信号中的持续时长是否达到预设时长,是则确定前述音频信号中包括前述频率成分。Identify whether the duration of the frequency component in the audio signal reaches the preset duration, and if yes, it is determined that the audio signal includes the frequency component.
在一实施例中,在识别前述频率成分在音频信号中的持续时长是否达到预设时长时,专用语音识别芯片402用于:In an embodiment, when identifying whether the duration of the aforementioned frequency component in the audio signal reaches a preset duration, the dedicated voice recognition chip 402 is used to:
对前述音频信号进行无交叠分帧处理,得到多个音频帧;Perform non-overlapping framing processing on the aforementioned audio signal to obtain multiple audio frames;
对音频帧进行傅里叶变换,并根据傅里叶变换结果识别前述频率成分在预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定前述频率成分在前述音频信号中的持续时长达到预设时长。Perform Fourier transform on the audio frame, and identify whether the amplitude of the aforementioned frequency component in the continuous audio frame within the preset time length reaches the preset amplitude according to the Fourier transform result. If yes, it is determined that the aforementioned frequency component is in the aforementioned audio The duration of the signal reaches the preset duration.
在一实施例中,在识别音频信号是否为对应公共交通站点的预设音频信号时,处理器401用于:In an 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;
根据音频识别模型识别音频信号是否为对应公共交通站点的预设音频信号。According to the audio recognition model, it is recognized whether the audio signal is a preset audio signal corresponding to the public transportation station.
在一实施例中,在接收到站提醒请求时,处理器401用于:In an embodiment, when a station reminder request is received, the processor 401 is configured to:
侦测公共交通应用产生的触发信息,并根据触发信息提供到站提醒界面;Detect trigger information generated by public transportation applications, and provide an arrival reminder interface based on the trigger information;
通过到站提醒界面接收到站提醒请求。Receive the arrival reminder request through the arrival reminder interface.
在一实施例中,当站点数量与目标站点数量一致,执行预设的到站提醒操作时,处理器401用于:In an embodiment, when the number of sites is the same as the number of target sites and the preset arrival reminder operation is performed, the processor 401 is configured to:
当电子设备已经过公共交通站点的站点数量与目标站点数量一致时,获取与电子设备建立移动通信连接的基站的基站标识;When the number of sites where the electronic device has passed the public transportation site is the same as the number of target sites, acquiring the base station identifier of the 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, determine the public transportation station corresponding to the base station identifier;
当前述公共交通站点为目标公共交通站点时,执行预设的到站提醒操作。When the aforementioned public transportation station is the target public transportation station, the preset arrival reminder operation is performed.
可选地,在一实施例中,专用语音识别芯片402还用于滤除前述音频信号中的人声频率成分。Optionally, in an embodiment, the dedicated speech recognition chip 402 is also used to filter out the human voice frequency components in the aforementioned audio signal.
可选地,在一实施例中,处理器401用于解析出到站提醒请求所携带的站点标识,将站点标识所对应的公共交通站点设置为目标公共交通站点。Optionally, in an embodiment, the processor 401 is configured to parse out the site identifier carried in the arrival reminder request, and set the public transportation site corresponding to the site identifier as the target public transportation site.
应当说明的是,本申请实施例提供的电子设备与上文实施例中的到站提醒方法属于同一构思,在电子设备上可以运行到站提醒方法实施例中提供的任一方法,其具体实现过程详见特征提取方法实施例,此处不再赘述。It should be noted that the electronic device provided in the embodiment of this application belongs to the same concept as the arrival reminding method in the above embodiment. Any method provided in the embodiment of the arrival reminding method can be run on the electronic device, and its specific implementation For details of the process, refer to the embodiment of the feature extraction method, which will not be repeated here.
需要说明的是,对本申请实施例的到站提醒方法而言,本领域普通测试人员可以理解实现本申请实施例的到站提醒方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的处理器和专用语音识别芯片执行,在执行过程中可包括如到站提醒方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that for the arrival reminding method of the embodiment of the application, ordinary testers in the field can understand all or part of the process of implementing the arrival reminding method of the embodiment of the application, and the relevant hardware can be controlled by a computer program. To complete, the computer program can be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by a processor and a dedicated voice recognition chip in the electronic device, and may include Such as the flow of the embodiment of the arrival reminding method. Wherein, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
以上对本申请实施例所提供的一种到站提醒方法、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above provides a detailed introduction to the arrival reminder method, storage medium and electronic equipment provided by the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation of the present application. The description of the above embodiments is only used To help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification It should not be construed as a limitation on this application.

Claims (20)

  1. 一种到站提醒方法,应用于电子设备,其中,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒方法包括:An arrival reminding method applied to an electronic device, wherein the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, and the arrival reminding method includes:
    通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;Receiving the station reminding request through the processor, and determining the target public transportation station that needs to be reminded according to the station reminding request;
    通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;Acquiring, by the processor, the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station;
    通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;Controlling the microphone to collect external audio signals through the dedicated voice recognition chip;
    通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Recognizing the audio signal through the dedicated voice recognition chip and the processor to obtain the number of stations where the electronic device has passed public transportation stations;
    当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。When the number of sites is consistent with the number of target sites, the processor executes a preset arrival reminder operation.
  2. 根据权利要求1所述的到站提醒方法,其中,所述通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量,包括:The arrival reminding method according to claim 1, wherein said recognizing said audio signal through said dedicated voice recognition chip and said processor to obtain the number of stations where said electronic device has passed public transportation stations comprises:
    通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分;Recognizing whether the audio signal includes the frequency component corresponding to the public transportation station through the dedicated voice recognition chip;
    当识别到所述音频信号中包括所述频率成分时,通过所述处理器识别所述音频信号是否为对应所述公共交通站点的预设音频信号;When it is recognized that the audio signal includes the frequency component, it is recognized 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 recognition times that the processor recognizes that the result is yes.
  3. 根据权利要求2所述的到站提醒方法,其中,所述通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分,包括:The arrival reminding method according to claim 2, wherein the identifying whether the audio signal includes a frequency component corresponding to the public transportation station through the dedicated voice recognition chip comprises:
    通过所述专用语音识别芯片识别所述频率成分在所述音频信号中的持续时长是否达到预设时长,是则确定所述音频信号中包括所述频率成分。The dedicated voice recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes the frequency component.
  4. 根据权利要求要求3所述的到站提醒方法,其中,所述通过所述专用语音识别芯片识别所述频率成分在所述音频信号中的持续时长是否达到预设时长,包括:The arrival reminding method according to claim 3, wherein the identifying whether the duration of the frequency component in the audio signal reaches a preset duration through the dedicated voice recognition chip comprises:
    通过所述专用语音识别芯片对所述音频信号进行无交叠分帧处理,得到多个音频帧;Performing non-overlapping framing processing on the audio signal by the dedicated speech recognition chip to obtain multiple audio frames;
    通过所述专用语音识别芯片对所述音频帧进行傅里叶变换,并根据傅里叶变换结果识别所述频率成分在所述预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定所述频率成分在所述音频信号中的持续时长达到所述预设时长。Perform Fourier transform on the audio frame through the dedicated speech recognition chip, and identify whether the amplitude of the frequency component in the continuous audio frame within the preset time period reaches a preset value according to the Fourier transform result Amplitude, it is determined that the duration of the frequency component in the audio signal reaches the preset duration.
  5. 根据权利要求2所述的到站提醒方法,其中,所述通过所述处理器识别所述音频信号是否为对应所述公共交通站点的预设音频信号,包括:The arrival reminding 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 comprises:
    通过所述处理器调用预训练的对应所述预设音频信号的音频识别模型;Calling the pre-trained audio recognition model corresponding to the preset audio signal through the processor;
    根据所述音频识别模型识别所述音频信号是否为对应所述公共交通站点的预设音频信号。Identify whether the audio signal is a preset audio signal corresponding to the public transportation station according to the audio recognition model.
  6. 根据权利要求2所述的到站提醒方法,其中,所述通过所述专用语音识别芯片识别所述音频信号中是否包括对应所述公共交通站点的频率成分之前,还包括:The arrival reminding method according to claim 2, wherein before said identifying whether said audio signal includes frequency components corresponding to said public transportation station through said dedicated voice recognition chip, the method further comprises:
    通过所述专用语音识别芯片滤除所述音频信号中的人声频率成分。The human voice frequency components in the audio signal are filtered out through the dedicated speech recognition chip.
  7. 根据权利要求1-6任一项所述的到站提醒方法,其中,所述通过所述处理器接收到站提醒请求,包括:The station reminding method according to any one of claims 1 to 6, wherein the receiving station reminding request through the processor comprises:
    通过处理器侦测公共交通应用产生的触发信息,并根据所述触发信息提供到站提醒界面;Detect trigger information generated by the public transportation application through the processor, and provide an arrival reminder interface based on the trigger information;
    通过所述到站提醒界面接收所述到站提醒请求。The arrival reminder request is received through the arrival reminder interface.
  8. 根据权利要求1-6任一项所述的到站提醒方法,其中,当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作,包括:The arrival reminding method according to any one of claims 1 to 6, wherein when the number of sites is the same as the number of target sites, executing a preset arrival reminding operation by the processor comprises:
    当所述站点数量与所述目标站点数量一致时,通过所述处理器获取与所述电子设备建立移动通信连接的基站的基站标识;When the number of sites is the same as the number of target sites, obtaining the base station identifier of the base station that establishes a mobile communication connection with the electronic device through the processor;
    根据预设的基站标识和公共交通站点的对应关系,通过所述处理器确定对应所述基站标识的公共交通站点;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;
    当所述公共交通站点为所述目标公共交通站点时,通过所述处理器执行预设的到站提醒操作。When the public transportation station is the target public transportation station, the processor executes a preset arrival reminder operation.
  9. 根据权利要求1-6任一项所述的到站提醒方法,其中,所述根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点,包括:The arrival reminder method according to any one of claims 1 to 6, wherein the determining the target public transportation station that needs arrival reminder according to the arrival reminder request comprises:
    通过所述处理器解析出所述到站提醒请求所携带的站点标识,将所述站点标识所对应的公共交通站点设置为所述目标公共交通站点。The processor parses out the site identification carried in the arrival reminder request, and sets the public transportation site corresponding to the site identification as the target public transportation site.
  10. 一种到站提醒装置,应用于电子设备,其中,所述电子设备包括麦克风、处理器和专用语音识别芯片,所述到站提醒装置包括:An arrival reminding device applied to electronic equipment, wherein the electronic equipment includes a microphone, a processor and a dedicated voice recognition chip, and the arrival reminding device includes:
    请求接收模块,用于通过所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;The request receiving module is configured to receive the station reminder request through the processor, and determine the target public transportation station that needs to be reminded according to the station reminder request;
    数量确定模块,用于通过所述处理器获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量;A quantity determining module, configured to obtain, through the processor, the target number of public transportation stations that the electronic device needs to pass through to reach the target public transportation station;
    音频采集模块,用于通过所述专用语音识别芯片控制所述麦克风采集外部的音频信号;An audio collection module, configured to control the microphone to collect external audio signals through the dedicated voice recognition chip;
    音频识别模块,用于通过所述专用语音识别芯片和所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;An audio recognition module, configured to recognize the audio signal through the dedicated voice recognition chip and the processor, and obtain the number of stations where the electronic device has passed public transportation stations;
    到站提醒模块,用于当所述站点数量与所述目标站点数量一致时,通过所述处理器执行预设的到站提醒操作。The arrival reminder module is configured to execute a preset arrival reminder operation through the processor when the number of stations is consistent with the number of target stations.
  11. 一种存储介质,其中,当所述存储介质中存储的计算机程序在包括麦克风、处理器和专用语音识别芯片的电子设备运行时,使得所述处理器和所述专用语音识别芯片执行:A storage medium, wherein, when a computer program stored in the storage medium runs on an electronic device including a microphone, a processor, and a dedicated voice recognition chip, the processor and the dedicated voice recognition chip are caused to execute:
    所述处理器接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;以及获取所述电子设备到达所述目标公共交通站点所需经过的公共交通站点的目标站点数量:The processor receives the station reminder request, and according to the station reminder request, determines the target public transportation station that needs to be reminded; and obtains the public transportation station that the electronic device needs to pass through to reach the target public transportation station Number of target sites:
    所述专用语音识别芯片用于控制所述麦克风采集外部的音频信号;以及协同所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;The dedicated voice recognition chip is used to control the microphone to collect external audio signals; and cooperate with the processor to recognize the audio signals 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.
  12. 一种电子设备,其中,所述电子设备包括麦克风、处理器和专用语音识别芯片,其中,An electronic device, wherein the electronic device includes a microphone, a processor, and a dedicated voice recognition chip, wherein,
    所述处理器用于接收到站提醒请求,并根据所述到站提醒请求确定需要进行到站提醒的目标公共交通站点;以及The processor is configured to receive the arrival reminder request, and determine the target public transportation station that needs arrival reminder according to the arrival reminder request; 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 voice recognition chip is used to control the microphone to collect external audio signals; and
    协同所述处理器识别所述音频信号,得到所述电子设备已经过公共交通站点的站点数量;Identify 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.
  13. 根据权利要求12所述的电子设备,其中,所述专用语音识别芯片用于识别所述音频信号中是否包括对应所述公共交通站点的频率成分;The electronic device according to claim 12, wherein the dedicated voice recognition chip is used to identify whether the audio signal includes a frequency component corresponding to the public transportation station;
    当识别到所述音频信号中包括所述频率成分时,所述处理器用于识别所述音频信号是否为对应所述公共交通站点的预设音频信号;以及根据识别结果为是的识别次数,得到所述站点数量。When it is recognized that the audio signal includes the frequency component, the processor is used to recognize whether the audio signal is a preset audio signal corresponding to the public transportation station; and according to the number of recognition times the recognition result is yes, obtain The number of said sites.
  14. 根据权利要求13所述的电子设备,其中,所述专用语音识别芯片用于识别所述频率成分在所述音频信号中的持续时长是否达到预设时长,是则确定所述音频信号中包括所述频率成分。The electronic device according to claim 13, wherein the dedicated speech recognition chip is used to identify whether the duration of the frequency component in the audio signal reaches a preset duration, and if yes, it is determined that the audio signal includes all The frequency components.
  15. 根据权利要求要求14所述的电子设备,其中,所述专用语音识别芯片用于通过所述专用语音识别芯片对所述音频信号进行无交叠分帧处理,得到多个音频帧;以及对所述音频帧进行傅里叶变换,并根据傅里叶变换结果识别所述频率成分在所述预设时长内的连续音频帧中的幅值是否均达到预设幅值,是则确定所述频率成分在所述音频信号中的持续时长达到所述预设时长。The electronic device according to claim 14, wherein the dedicated speech recognition chip is used to perform non-overlapping framing processing on the audio signal through the dedicated speech recognition chip to obtain multiple audio frames; and The audio frame is subjected to Fourier transform, and according to the Fourier transform result, it is identified whether the amplitude of the frequency component in the continuous audio frame within the preset time period all reaches the preset amplitude, and if yes, the frequency is determined The duration of the component in the audio signal reaches the preset duration.
  16. 根据权利要求13所述的电子设备,其中,所述处理器用于通过所述处理器调用预训练的对应所述预设音频信号的音频识别模型;以及根据所述音频识别模型识别所述音频信号是否为对应所述公共交通站点的预设音频信号。The electronic device according to claim 13, wherein the processor is configured to call a pre-trained audio recognition model corresponding to the preset audio signal through the processor; and recognize the audio signal according to the audio recognition model Whether it is a preset audio signal corresponding to the public transportation station.
  17. 根据权利要求13所述的电子设备,其中,所述专用语音识别芯片还用于通过所述专用语音识别芯片滤除所述音频信号中的人声频率成分。The electronic device according to claim 13, wherein the dedicated voice recognition chip is further used to filter out human voice frequency components in the audio signal through the dedicated voice recognition chip.
  18. 根据权利要求12-17任一项所述的电子设备,其中,所述处理器用于侦测公共交通应用产生的触发信息,并根据所述触发信息提供到站提醒界面;以及通过所述到站提醒界面接收所述到站提醒请求。The electronic device according to any one of claims 12-17, wherein the processor is configured to detect trigger information generated by a public transportation application, and provide an arrival reminder interface based on the trigger information; and through the arrival The reminder interface receives the arrival reminder request.
  19. 根据权利要求12-17所述的电子设备,其中,所述处理器用于当所述站点数量与所述目标站点数量一致时,获取与所述电子设备建立移动通信连接的基站的基站标识;以及根据预设的基站标识和公共交通站点的对应关系,确定对应所述基站标识的公共交通站点;以及当所述公共交通站点为所述目标公共交通站点时,执行预设的到站提醒操作。The electronic device according to claims 12-17, wherein the processor is configured to obtain a base station identifier of a base station that establishes a mobile communication connection with the electronic device when the number of sites is the same as the number of target sites; and 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; and when the public transportation station is the target public transportation station, perform a preset arrival reminder operation.
  20. 根据权利要求12-17所述的电子设备,其中,所述处理器用于解析出所述到站提醒请求所携带的站点标识,将所述站点标识所对应的公共交通站点设置为所述目标公共交通站点。The electronic device according to claims 12-17, wherein the processor is configured to parse out the site identification carried in the arrival reminder request, and set the public transportation site corresponding to the site identification as the target public Traffic site.
PCT/CN2021/074954 2020-02-27 2021-02-03 Method and apparatus for giving reminder of arrival at station, storage medium and electronic device WO2021169757A1 (en)

Applications Claiming Priority (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
CN202010125355.9 2020-02-27

Publications (1)

Publication Number Publication Date
WO2021169757A1 true WO2021169757A1 (en) 2021-09-02

Family

ID=71149379

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111311889A (en) * 2020-02-27 2020-06-19 Oppo广东移动通信有限公司 Arrival reminding method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050137877A1 (en) * 2003-12-17 2005-06-23 General Motors Corporation Method and system for enabling a device function of a vehicle
US20100214134A1 (en) * 2009-02-25 2010-08-26 Kimberly Weisser Vehicle arrival alerting method and system thereof
CN103152480A (en) * 2013-02-26 2013-06-12 广东欧珀移动通信有限公司 Method and device for arrival prompt by mobile terminal
CN105577943A (en) * 2016-02-03 2016-05-11 上海卓易科技股份有限公司 Bus stop reporting prompting method and system and mobile terminal
CN106710283A (en) * 2016-12-28 2017-05-24 上海与德信息技术有限公司 Mobile terminal based stop reporting reminding method and device
CN110648553A (en) * 2019-09-26 2020-01-03 北京声智科技有限公司 Site reminding method, electronic equipment and computer readable storage medium
CN110660201A (en) * 2019-09-23 2020-01-07 Oppo广东移动通信有限公司 Arrival reminding method, device, terminal and storage medium
CN110825446A (en) * 2019-10-28 2020-02-21 Oppo广东移动通信有限公司 Parameter configuration method and device, storage medium and electronic equipment
CN111311889A (en) * 2020-02-27 2020-06-19 Oppo广东移动通信有限公司 Arrival reminding method and device, storage medium and electronic equipment

Family Cites Families (6)

* 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
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
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050137877A1 (en) * 2003-12-17 2005-06-23 General Motors Corporation Method and system for enabling a device function of a vehicle
US20100214134A1 (en) * 2009-02-25 2010-08-26 Kimberly Weisser Vehicle arrival alerting method and system thereof
CN103152480A (en) * 2013-02-26 2013-06-12 广东欧珀移动通信有限公司 Method and device for arrival prompt by mobile terminal
CN105577943A (en) * 2016-02-03 2016-05-11 上海卓易科技股份有限公司 Bus stop reporting prompting method and system and mobile terminal
CN106710283A (en) * 2016-12-28 2017-05-24 上海与德信息技术有限公司 Mobile terminal based stop reporting reminding method and device
CN110660201A (en) * 2019-09-23 2020-01-07 Oppo广东移动通信有限公司 Arrival reminding method, device, terminal and storage medium
CN110648553A (en) * 2019-09-26 2020-01-03 北京声智科技有限公司 Site reminding method, electronic equipment and computer readable storage medium
CN110825446A (en) * 2019-10-28 2020-02-21 Oppo广东移动通信有限公司 Parameter configuration method and device, storage medium and electronic equipment
CN111311889A (en) * 2020-02-27 2020-06-19 Oppo广东移动通信有限公司 Arrival reminding method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111311889A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
WO2021115230A1 (en) Arrival reminding method and apparatus, storage medium and electronic device
CN109792577B (en) Information processing apparatus, information processing method, and computer-readable storage medium
CN103888581B (en) A kind of communication terminal and its method for recording call-information
EP4191579A1 (en) Electronic device and speech recognition method therefor, and medium
WO2021169742A1 (en) Method and device for predicting operating state of transportation means, and terminal and storage medium
CN107799126A (en) Sound end detecting method and device based on Supervised machine learning
WO2021159987A1 (en) Method and device for predicting operating state of vehicle, terminal, and storage medium
CN110995933A (en) Volume adjusting method and device of mobile terminal, mobile terminal and storage medium
TW201320058A (en) Mobile device context information using speech detection
CN110972112B (en) Subway running direction determining method, device, terminal and storage medium
WO2016173132A1 (en) Method and device for voice recognition, and user equipment
CN110364156A (en) Voice interactive method, system, terminal and readable storage medium storing program for executing
US11848029B2 (en) Method and device for detecting audio signal, and storage medium
CN108847221B (en) Voice recognition method, voice recognition device, storage medium and electronic equipment
CN110660398B (en) Voiceprint feature updating method and device, computer equipment and storage medium
CN108665889A (en) The Method of Speech Endpoint Detection, device, equipment and storage medium
US20220180859A1 (en) User speech profile management
CN105335714B (en) Photo processing method, device and equipment
CN110827824B (en) Voice processing method, device, storage medium and electronic equipment
CN111009261B (en) Arrival reminding method, device, terminal and storage medium
WO2021169757A1 (en) Method and apparatus for giving reminder of arrival at station, storage medium and electronic device
CN112286364A (en) Man-machine interaction method and device
CN108154091A (en) Image presentation method, image processing method and device
CN111081275A (en) Terminal processing method and device based on sound analysis, storage medium and terminal
CN104850855B (en) The method and apparatus for calculating confidence level

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21759927

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21759927

Country of ref document: EP

Kind code of ref document: A1