CN113612893A - Data sending method, electronic equipment, chip and storage medium - Google Patents

Data sending method, electronic equipment, chip and storage medium Download PDF

Info

Publication number
CN113612893A
CN113612893A CN202110666292.2A CN202110666292A CN113612893A CN 113612893 A CN113612893 A CN 113612893A CN 202110666292 A CN202110666292 A CN 202110666292A CN 113612893 A CN113612893 A CN 113612893A
Authority
CN
China
Prior art keywords
voice data
data
uplink voice
keywords
uplink
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110666292.2A
Other languages
Chinese (zh)
Inventor
刘勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Technology Hangzhou Co ltd
Original Assignee
Spreadtrum Technology Hangzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Technology Hangzhou Co ltd filed Critical Spreadtrum Technology Hangzhou Co ltd
Priority to CN202110666292.2A priority Critical patent/CN113612893A/en
Publication of CN113612893A publication Critical patent/CN113612893A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M11/00Telephonic communication systems specially adapted for combination with other electrical systems
    • H04M11/04Telephonic communication systems specially adapted for combination with other electrical systems with alarm systems, e.g. fire, police or burglar alarm systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a data sending method and electronic equipment, wherein the method comprises the following steps: applied to a first electronic device, the method comprises: acquiring first uplink voice data; judging whether the first uplink voice data comprises one or more first keywords; if the first uplink voice data comprises one or more first keywords, acquiring first data corresponding to the first keywords; merging the first uplink voice data and the first data to form second uplink voice data; and sending the second uplink voice data to second electronic equipment.

Description

Data sending method, electronic equipment, chip and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, an electronic device, a chip, and a storage medium.
Background
When people meet dangerous conditions, help-seeking signals need to be sent to the outside. In some cases the help seeker can communicate with relatives or friends under the monitored condition, how to convey the help information to the other party through the terminal in the communication process without being perceived as for prime for the problem to be solved.
Disclosure of Invention
In a first aspect, the present application provides a data sending method, which is applied to a first electronic device, and includes:
acquiring first uplink voice data;
judging whether the first uplink voice data comprises one or more first keywords;
if the first uplink voice data comprises one or more first keywords, acquiring first data corresponding to the first keywords;
combining the first uplink voice data and the first data to form second uplink voice data;
and sending second uplink voice data to the second electronic equipment.
In an embodiment of the present application, determining whether the first uplink voice data includes one or more first keywords includes:
acquiring one or more second keywords in the first uplink voice data;
and matching the second keywords with the first keywords, and determining whether the first uplink voice data comprises one or more first keywords based on the matching result.
In one embodiment of the present application, further comprising,
acquiring second data;
and converting the format of the second data to form third data, wherein the format of the third data is consistent with that of the first uplink voice data.
In one embodiment of the application, the second data comprises location data of said first electronic device.
In one embodiment of the present application, combining the first upstream voice data and the first data to form second upstream voice data includes:
and combining the first uplink voice data and the first data and the third data to form second uplink voice data.
In one embodiment of the present application, combining the first upstream voice data and the first data to form second upstream voice data includes:
adjusting the volume information in the first uplink voice data to enable the volume of the first uplink voice data to be smaller than that of the first data;
and combining the adjusted first uplink voice data with the first data to form second uplink voice data.
In one embodiment of the present application, further comprising:
and if the first uplink voice data does not comprise one or more first keywords, sending the first uplink voice data to the second electronic equipment.
In a second aspect, the present application provides a chip comprising:
the first acquisition module is used for acquiring first uplink voice data;
the judging module is used for judging whether the first uplink voice data comprises one or more first keywords;
the second acquisition module is used for acquiring first data corresponding to one or more first keywords if the first uplink voice data comprises the one or more first keywords;
the forming module is used for combining the first uplink voice data and the first data by a user to form second uplink voice data;
and the sending module is used for sending the second uplink voice data to the second electronic equipment.
In a third aspect, the present application provides an electronic device, where the electronic device further includes a processor and a storage device, where the storage device stores program instructions, and the program instructions, when executed by the processor, cause the electronic device to perform the sending method according to the second aspect.
In a fourth aspect, the present application provides a computer readable storage medium comprising computer instructions which, when run on a computer device, cause the computer device to perform the transmission method according to the first aspect.
Drawings
Fig. 1 is a schematic structural diagram of a voice data transmitting apparatus 100 according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating interaction among modules in the apparatus 100 for sending voice data according to an embodiment of the present application;
fig. 3 is a flowchart of a method for transmitting voice data according to an embodiment of the present application;
fig. 4 is a flowchart of a method for transmitting voice data according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device 5 according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
When people meet dangerous conditions, help-seeking signals need to be sent to the outside, in some cases, a help-seeking person can communicate with relatives or friends under the monitored condition, and how to utilize the possibly unique opportunity to convey help-seeking information to an opposite side without being perceived is a technical problem.
In the related technology, a user can activate an alarm function by speaking a safety word or an entity key to a terminal, and send a short message, a WeChat or other information to a preset certain emergency contact person for help or alarm. The safety words can be words set by a user in advance on the terminal, and when the terminal can detect the safety words, the alarm function is triggered. In addition, the mode of triggering the alarm function by the voice safety word is easy to find, and the user cannot know whether the alarm function is successfully activated or not, and in addition, the transmitted information has asynchrony, so that certain successful transmission or attention of the other party cannot be guaranteed. The physical key mode cannot be operated under the condition of being monitored.
Based on this, the present application proposes a method for transmitting voice data, which solves or partially solves the above technical problems.
Referring to fig. 1, a schematic structural diagram of a voice data transmitting apparatus 100 according to an embodiment of the present application is provided.
The sending device 100 includes a storage module 102, and the storage module 102 is configured to store one or more first keywords input by a user and first data corresponding to the one or more first keywords. Specifically, the user may input one or more first keywords and first data corresponding to the one or more first keywords to the storage module 102 through a preset application running on the sending apparatus 100. The first data may include voice information entered by the user in advance, help information may be included in the voice information, and the like.
The sending apparatus 100 includes an obtaining module 104, and the obtaining module 104 is configured to obtain first uplink voice data when the sending apparatus 100 performs a voice service, where the first uplink voice data may include content spoken by a user, and the like. For example, the obtaining module 104 may obtain the first uplink voice data within one or more preset time periods, for example, the obtaining module 104 may obtain the first uplink voice data every N seconds. N can select a proper numerical value, such as 2 seconds, according to the comprehensive conditions of the performance, the power consumption, the user experience, the requirements of the used artificial intelligent detection algorithm and the like of the mobile phone.
The sending apparatus 100 includes a matching module 106, and the matching module 106 is configured to match the first uplink voice data acquired by the acquiring module 104 with one or more first keywords in the storage module 102.
The sending apparatus 100 for voice data includes a reporting module 108, and if the content in the first uplink voice data matches one or more first keywords in the storage module 102, if the first uplink voice data includes one or more first keywords, the reporting module 108 may obtain the first data from the storage module 102, and mix or combine the first data with the first uplink voice data, so that an opposite-end apparatus in a call with the sending apparatus 100 for voice data can receive and play voice information in the first data. Illustratively, the data in which the first upstream voice data and the first data are mixed may be referred to as second data.
The sending device 100 includes a location module 110, and the location module 110 is configured to obtain location data of the sending device 100 when the content of the first uplink voice data matches one or more first keywords in the storage module 102. Illustratively, the location data may also be referred to as second data. The location module 110 may convert the format of the location data into the format of the voice data, and send the converted location data to the reporting module 108. Illustratively, the format-converted location data may be referred to as third data.
The reporting module 108 may mix or combine the first data, the third data, and the first uplink voice data, and then send the mixed or combined data to the peer device, so that the peer device in a call with the sending device 100 can receive and play the voice information in the first data and the voice information in the third data.
Referring to fig. 2, a schematic diagram of interaction between modules in the apparatus 100 for sending voice data provided in an embodiment of the present application is shown.
Step a, the obtaining module 104 obtains first uplink voice data of the user. For example, the obtaining module may obtain first uplink voice data sent by a user within one or more preset time periods.
In step B, after the obtaining module 104 obtains the first uplink voice data, the first uplink voice data is sent to the matching module 106.
In one example, the obtaining module 104 may determine whether the obtained first uplink voice data is voice data of a specific user, and specifically, when obtaining the voice data of the user, the obtaining module identifies voiceprint information in the first uplink voice data to determine whether the first uplink voice data is the voice data of the specific user. In one example, the obtaining module 104 sends only the first upstream voice data sent by a specific user to the matching module 106.
In step C, after receiving the first uplink voice data, the matching module 106 may obtain one or more first keywords input by the user in advance from the storage module 102.
Step D, the matching module 106 determines one or more second keywords from the first uplink voice data, and compares the one or more first keywords with the one or more second keywords. If the one or more first keywords match the one or more second keywords, the matching module 106 may send the matching keywords to the reporting module 108 (step E). The one or more first keywords and the one or more second keywords matching may be that the first keywords are consistent with the second keywords.
In step F, the reporting module 108 may obtain the first data corresponding to the first keyword from the storage module 102, and then combine the first data with the first uplink voice data, so that the peer device in a call with the sending device 100 can receive and play the voice information in the first data.
In step G, if the first keyword matches one or more second keywords, the matching module 106 may further send a matching indication message to the location module 110.
In step H, the location module 110 may obtain the location data of the sending device 100, that is, the second data, based on the indication message, convert the format of the location data into the format same as the format of the voice data to obtain third data, and then send the third data to the reporting module 108.
In step I, the reporting module 108 may combine the first data and the third data into the first uplink voice data to obtain second uplink voice data, so that an opposite end device in a call with the sending device 100 can receive the second uplink voice data at the same time. It can be understood that, after receiving the second uplink voice data, the opposite end device may play the content in the first uplink voice data, the location of the sending device 100, and the help seeking information in the first data in the form of sound.
Referring to fig. 3, a flow chart of a method for transmitting voice data according to an embodiment of the present application is provided, and the transmitting method can be applied to the transmitting apparatus 100 described above
At step 302, voice traffic begins.
Step 304, acquiring first uplink voice data. It can be understood that the first uplink voice data is voice data received from the user when the transmitting apparatus 100 performs a voice service.
Step 306, detecting whether the first uplink voice data includes one or more first keywords, specifically, determining whether the first uplink voice data includes the first keywords by comparing second keywords in the first uplink voice data with the first keywords, respectively.
In step 308, first data corresponding to the first keyword pair is obtained, and it is understood that the preset data may include help voice set by the user in advance. The preset data may be the first data.
Step 310, combining the preset data with the first uplink voice data to form second uplink voice data.
Step 312, sending the second uplink voice data. It can be understood that the second uplink voice data is used for being sent to the opposite-end device performing voice service with the sending apparatus.
Because the preset data is mixed with the first uplink voice data after the transmitting device receives the first uplink voice data and cannot be played back locally, the user can not hear the prompt voice when the user turns on the phone hands free and is monitored by people, and only the party receiving the phone can hear the prompt voice.
In an embodiment, in the foregoing step, if it is not detected that the first uplink voice data includes one or more first keywords, step 316 is entered to directly send the first uplink voice data.
Step 318, the voice service is ended.
Referring to fig. 4, a flow chart of a method for sending voice data provided by the present application is shown, and the method shown in the present application can be applied to the electronic device 5. The method specifically comprises the following steps:
step 402, the electronic device acquires first uplink voice data.
Illustratively, the first upstream voice data may include voice data.
Step 404, the electronic device determines whether the first uplink voice data includes one or more first keywords;
in one example, the electronic device may obtain one or more second keywords from first uplink voice data, match the second keywords with the first keywords, and determine whether the first uplink voice data includes the one or more first keywords based on a matching result. Illustratively, if there is a match, the first upstream voice data includes one or more of the first keywords.
Step 406, if the first uplink voice data includes one or more first keywords, obtaining first data corresponding to the first keywords.
Illustratively, the first data may include voice data, such as user predefined alert help information, may include customized voice content for alerting the user, prompting the user to remain cool, prompting an appropriate reply mode, and so forth.
In an example, if the first uplink voice data includes one or more first keywords, the electronic device may obtain second data, and convert a format of the second data to form third data, where a format of the third data is consistent with a format of the first uplink voice data.
For example, the second data may include the position data, and then the position data is formatted, for example, converted into a voice format, so that the second data plays the position data in a voice form in a peer device performing a voice service with the electronic device 5. So that the peer device user determines the location of the electronic device 5.
Step 408, the electronic device combines the first uplink voice data and the first data to form second uplink voice data;
the electronic device may combine the first uplink voice data and the first data to be understood as the first uplink voice data
Figure BDA0003117561810000061
And mixing the first data, and playing the first uplink voice data and the first data at the opposite end respectively.
In order to avoid that the sound of the first uplink voice data is too loud and affects the information heard by the user of the peer device, when the first uplink voice data is combined with the first data, the volume information of the first uplink voice data can be adjusted, so that the sound of the first uplink voice data is lower than that of the first data.
And step 410, the electronic equipment sends the second uplink voice data to the second electronic equipment.
Referring to fig. 5, a schematic structural diagram of an electronic device 5 according to an embodiment of the present application is provided.
The invention proposes that the method for sending voice data can be applied to the electronic device 5, and the electronic device 5 includes, but is not limited to, the processor 11 and the memory 12. Those skilled in the art will appreciate that fig. 5 is merely an example of an electronic device and does not constitute a limitation of the electronic device 5 and may include more or fewer components than shown, or combine certain components, or different components, e.g., the electronic device 5 may also include input-output devices, network access devices, buses, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 12 may be an internal storage unit of the electronic device 5, such as a hard disk or a memory of the electronic device 5. The memory 12 may also be an external storage device of the electronic device 5, such as a plug-in hard disk provided on the electronic device 5, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 12 may also include both an internal storage unit and an external storage device of the electronic device 5. The memory 12 is used for storing computer programs and other programs and data required by the electronic device 5. The memory 12 may also be used to temporarily store data that has been output or is to be output.
In one embodiment, the electronic device may further include a display screen for displaying images, videos, etc., and may also be used to accept user input data. The display screen includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 5 may include 1 or N display screens, N being a positive integer greater than 1.

Claims (10)

1. A method for transmitting data, applied to a first electronic device, the method comprising:
acquiring first uplink voice data;
judging whether the first uplink voice data comprises one or more first keywords;
if the first uplink voice data comprises one or more first keywords, acquiring first data corresponding to the first keywords;
merging the first uplink voice data and the first data to form second uplink voice data;
and sending the second uplink voice data to second electronic equipment.
2. The sending method of claim 1, wherein the determining whether the first uplink voice data includes one or more first keywords comprises:
acquiring one or more second keywords in the first uplink voice data;
and matching the second keywords with the first keywords, and determining whether the first uplink voice data comprises one or more first keywords based on a matching result.
3. The transmission method according to claim 1 or 2, further comprising,
acquiring second data;
and converting the format of the second data to form third data, wherein the format of the third data is consistent with that of the first uplink voice data.
4. The transmission method according to claim 1 or 2, characterized in that the second data comprise position data of the first electronic device.
5. The method according to claim 6, wherein the combining the first uplink voice data and the first data to form second uplink voice data comprises:
and combining the first uplink voice data, the first data and the third data to form second uplink voice data.
6. The transmitting method according to any one of claims 1 to 5, wherein the combining the first uplink voice data and the first data to form second uplink voice data comprises:
adjusting the volume information in the first uplink voice data to enable the volume of the first uplink voice data to be smaller than that of the first data;
and combining the adjusted first uplink voice data with the first data to form second uplink voice data.
7. The transmission method of claim 1, further comprising:
and if the first uplink voice data does not comprise one or more first keywords, sending the first uplink voice data to the second electronic equipment.
8. A chip, comprising:
the first acquisition module is used for acquiring first uplink voice data;
the judging module is used for judging whether the first uplink voice data comprises one or more first keywords;
a second obtaining module, configured to obtain first data corresponding to one or more first keywords if the first uplink voice data includes the first keywords;
a forming module, wherein a user combines the first uplink voice data and the first data to form second uplink voice data;
and the sending module is used for sending the second uplink voice data to second electronic equipment.
9. An electronic device, further comprising a processor and a storage device, the storage device having stored thereon program instructions that, when executed by the processor, cause the electronic device to perform the transmission method of any of claims 1-7.
10. A computer-readable storage medium comprising computer instructions that, when executed on a computer device, cause the computer device to perform the transmission method of any one of claims 1-7.
CN202110666292.2A 2021-06-16 2021-06-16 Data sending method, electronic equipment, chip and storage medium Pending CN113612893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110666292.2A CN113612893A (en) 2021-06-16 2021-06-16 Data sending method, electronic equipment, chip and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110666292.2A CN113612893A (en) 2021-06-16 2021-06-16 Data sending method, electronic equipment, chip and storage medium

Publications (1)

Publication Number Publication Date
CN113612893A true CN113612893A (en) 2021-11-05

Family

ID=78336520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110666292.2A Pending CN113612893A (en) 2021-06-16 2021-06-16 Data sending method, electronic equipment, chip and storage medium

Country Status (1)

Country Link
CN (1) CN113612893A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120178403A1 (en) * 2011-01-11 2012-07-12 GreatCall, Inc. Emergency call redirection systems and methods
CN104168546A (en) * 2014-08-29 2014-11-26 宇龙计算机通信科技(深圳)有限公司 Automatic answer device and automatic answer method
CN106231052A (en) * 2016-08-11 2016-12-14 珠海市魅族科技有限公司 Electronic equipment and calling method thereof
CN111340665A (en) * 2018-12-19 2020-06-26 上海擎感智能科技有限公司 Help seeking method, help seeking terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120178403A1 (en) * 2011-01-11 2012-07-12 GreatCall, Inc. Emergency call redirection systems and methods
CN104168546A (en) * 2014-08-29 2014-11-26 宇龙计算机通信科技(深圳)有限公司 Automatic answer device and automatic answer method
CN106231052A (en) * 2016-08-11 2016-12-14 珠海市魅族科技有限公司 Electronic equipment and calling method thereof
CN111340665A (en) * 2018-12-19 2020-06-26 上海擎感智能科技有限公司 Help seeking method, help seeking terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
US20230018598A1 (en) Fault detection method and device
US8594743B2 (en) Portable terminal, audio output control method, and audio output control program
US8041402B2 (en) Method and apparatus for managing ring tones in a mobile device
US8680989B2 (en) Sensor to detect an emergency event
CN106940641B (en) Notification message processing method and device
US20150156300A1 (en) Method for filtering spam in electronic device and the electronic device
US7493103B2 (en) Method and apparatus to transfer data and detect weak signals
CN101178836A (en) Vehicle state monitoring method and vehicle mounted multimedia informatin terminal thereof
US20070123286A1 (en) Method and apparatus for providing the status of a wireless communication device in a group network directly to other members in the group network
CN111212412B (en) Near field communication method and device, computer readable storage medium and electronic equipment
US8521233B2 (en) System and method for processing a call request
KR20200015267A (en) Electronic device for determining an electronic device to perform speech recognition and method for the same
US20080293374A1 (en) Method and apparatus for transmitting emergency alert messages
KR100811077B1 (en) Individual security system using of a mobile phone and method of the same
CN110213712B (en) Positioning transmission method, device, terminal and storage medium
US20050101302A1 (en) Method and apparatus for sender controllable modalities
US20100056052A1 (en) Electronic device and searching method thereof
WO2017067221A1 (en) Door lock state monitoring method and device
CN107371144B (en) Method and device for intelligently sending information
US20040198313A1 (en) Method and device of wireless audio/video monitoring based on a mobile communication network
CN113612893A (en) Data sending method, electronic equipment, chip and storage medium
CN113488042A (en) Voice control method and electronic equipment
WO2006093809A2 (en) Method and system using profiles to control dissemination of data
CN111263100A (en) Video call method, device, equipment and storage medium
JP2010212860A (en) Message transmission system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination