CN109255050A - A kind of method and device pushing audio data - Google Patents

A kind of method and device pushing audio data Download PDF

Info

Publication number
CN109255050A
CN109255050A CN201811134658.6A CN201811134658A CN109255050A CN 109255050 A CN109255050 A CN 109255050A CN 201811134658 A CN201811134658 A CN 201811134658A CN 109255050 A CN109255050 A CN 109255050A
Authority
CN
China
Prior art keywords
user
data
scene
target
presently
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
CN201811134658.6A
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.)
Chumen Wenwen Information Technology Co Ltd
Original Assignee
Chumen Wenwen Information Technology 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 Chumen Wenwen Information Technology Co Ltd filed Critical Chumen Wenwen Information Technology Co Ltd
Priority to CN201811134658.6A priority Critical patent/CN109255050A/en
Publication of CN109255050A publication Critical patent/CN109255050A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present invention provides a kind of method and device for pushing audio data, which comprises after user wakes up the service of the voice applications in the virtual personal assistant, obtains the current behavioral data of the user;Based on the current behavioral data of the user, the scene that the user is presently in is determined;It is serviced by the voice applications, from preset audio database, obtains the target audio data for meeting the scene that the user is presently in;By the target audio data-pushing to earphone.In this way, intelligently determine the scene that is presently in of user by virtual personal assistant, and audio data is intelligently pushed to user by scene that user is presently in, can be improved the degree of intelligence and accuracy of push audio data.

Description

A kind of method and device pushing audio data
Technical field
The present embodiments relate to electronic apparatus application field more particularly to a kind of methods and dress for pushing audio data It sets.
Background technique
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various conveniences of development in science and technology bring.Present people are by various types of electronic equipments, such as Smart phone, tablet computer etc., the demand for playing the audio datas such as music, cross-talk, audiobook gradually increase.
Currently, facing the audio data of magnanimity, when user needs to listen to audio data, it is a large amount of to generally require user's browsing Audio data and play needed for manually selecting out, therefore, in order to reduce user's navigation process, so that the quick uppick of user The server of the audio data liked, usual audio application can be downloaded according to user or the audio data of audition, searches The creator etc. that rope is crossed pushes other audio datas of same type to user.But push audio data method is stated in use During, inventor has found that the method for above-mentioned push audio data is not smart enough, excessively mechanical, is easy to appear pushed sound Frequency is according to being not that user currently wants the problem of listening, it is seen then that there are degree of intelligence is lower for above-mentioned push audio data method, pushes away Send the problem that result is not accurate enough.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and device for pushing audio data, realization is worked as by user Preceding locating scene intelligently pushes audio data to user, can be improved the degree of intelligence of push audio data and accurate Degree.
In order to solve the above technical problems, the embodiment of the present invention provides the following technical solutions:
In a first aspect, the embodiment of the present invention provides a kind of method for pushing audio data, it is applied to virtual personal assistant, institute The method of stating includes: to obtain the current row of the user after user wakes up the voice applications service in the virtual personal assistant For data;Based on the current behavioral data of the user, the scene that the user is presently in is determined;Pass through the voice applications Service obtains the target audio data for meeting the scene that the user is presently in from preset audio database;By the mesh Mark audio data pushes to earphone.
Second aspect, the embodiment of the present invention provide a kind of device for pushing audio data, and described device includes: the first acquisition Unit obtains the current behavior of the user after waking up the service of the voice applications in the virtual personal assistant in user Data;First determination unit determines the scene that the user is presently in for the behavioral data current based on the user; Second acquisition unit, for being serviced by the voice applications, from preset audio database, it is current that acquisition meets the user The target audio data of locating scene;Push unit is used for the target audio data-pushing to earphone.
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, and the storage medium includes storage Program, wherein equipment where controlling the storage medium in described program operation executes the side of above-mentioned push audio data The step of method.
Fourth aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: at least one processing Device;And at least one processor, the bus being connected to the processor;Wherein, the processor, memory pass through described total Line completes mutual communication;The processor is used to call the program instruction in the memory, to execute above-mentioned push sound The step of method of frequency evidence.
The method and device of push audio data provided in an embodiment of the present invention, wakes up in virtual personal assistant in user After voice applications service, virtual personal assistant will obtain the current behavioral data of the user, then, virtual personal assistant automatically Based on the current behavioral data of user, so that it may intelligently determine the scene that the user is presently in;Next, virtual personal Assistant can get by the voice applications service that has waken up, from preset audio database and meet user and be presently in Scene target audio data;Finally, virtual personal assistant can be by target audio data-pushing to earphone.In this way, passing through void Quasi- personal assistant can the scene that is presently in of intelligent recognition user, and pushed according to the scene that user is presently in user It is suitable for the audio data for the scene that user is presently in, realizes current scene intelligently different according to locating for user to use Family pushes different audio datas, browses and select on an electronic device manually audio data without user, thus, it improves and pushes away The degree of intelligence and accuracy for sending audio data, greatly improve user experience.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of the system of the wake-up application service in the embodiment of the present invention;
Fig. 2 is the flow diagram of the method for the push audio data in the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the device of the push audio data in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the electronic equipment in the embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
The embodiment of the present invention provides a kind of system for waking up application service, and Fig. 1 is the wake-up application in the embodiment of the present invention The structural schematic diagram of the system of service, shown in Figure 1, which may include: electronic equipment 101, virtual personal assistant (Virtual Personal Assistant, VPA) 102, earphone 103 and server 104, wherein virtual personal assistant 102 is pacified Loaded in electronic equipment 101, earphone 103 can be connect with electronic equipment 101, and virtual personal assistant 102 connects with server 104 It connects.
Here, virtual personal assistant is a kind of application program, can carry out semantics recognition to the voice messaging that user inputs, Can according to the demand for services pair of user with electronic equipment associated by other electronic equipments, such as earphone controlled, for example, User can wake up the voice applications service in virtual personal assistant by earphone input voice messaging, be helped by virtual individual Reason to push audio data to earphone.In practical applications, above-mentioned virtual personal assistant is referred to as intelligent sound assistant, or Person can also be known as AI (Artificial Intelligence, artificial intelligence) assistant.
In practical applications, above-mentioned server can be server provided by the provider of virtual personal assistant, can also Think server provided by third party application provider, such as Himalaya, dragonfly FM.Here, the embodiment of the present invention It is not specifically limited.
In practical applications, according to the difference of the data transfer mode between earphone and electronic equipment, above-mentioned earphone can be with For wired earphone, at this point, earphone can be connect by data line with electronic equipment, certainly, above-mentioned earphone may be wireless ear Machine, such as bluetooth headset, at this point, earphone can be connect by Bluetooth technology with electronic equipment.Here, the embodiment of the present invention is not done and is had Body limits.
In practical applications, above-mentioned electronic equipment can be implemented in a variety of manners.For example, being described in the embodiment of the present invention The electronic equipment for being equipped with virtual personal assistant can be smart phone, or tablet computer can also be it certainly It can install the electronic equipment of virtual personal assistant.For another example described in the embodiment of the present invention and being equipped with virtual individual Other electronic equipments associated by the electronic equipment of assistant can be the intelligence such as intelligent sound box, smart television, Intelligent set top box Energy home equipment, or the carry-on equipment such as smartwatch, Intelligent bracelet, earphone, it is, of course, also possible to be other types Electronic equipment.Here, it is not specifically limited in the embodiment of the present invention.
Further, in conjunction with the system of above-mentioned wake-up application service, the embodiment of the present invention provides a kind of push audio data Method, the method for the push audio data is applied to virtual personal assistant.
Fig. 2 is the flow diagram of the method for the push audio data in the embodiment of the present invention, and shown in Figure 2, this is pushed away The method for sending audio data may include:
S201: after user wakes up the service of the voice applications in virtual personal assistant, the current behavioral data of user is obtained;
Specifically, when user needs playing audio-fequency data, user can be used to indicate broadcasting sound by earphone input The voice messaging of frequency evidence, next, virtual personal assistant will wake up void after virtual personal assistant obtains the voice messaging Voice applications service in quasi- personal assistant.Then, virtual personal assistant is in order to intelligently identify field that user is presently in Scape is waken up in virtual personal assistant with the audio data different to user's automatic push according to different current scenes in user Voice applications service after, virtual personal assistant will obtain the current behavioral data of the user automatically.
In practical applications, after the voice applications service in virtual personal assistant is waken up, virtual personal assistant ability It is automatic to obtain the current behavioral data of user, and intelligently determine the scene that user is presently in, finally, virtual personal assistant The audio data for the scene that user is presently in could be met by voice applications service acquisition.
Wherein, above-mentioned voice applications service be provided by virtual personal assistant can provide a user various types of sounds The application service of frequency evidence.In practical applications, virtual personal assistant can be a kind of application program, be capable of providing various each The application service of sample function, and voice applications service is not independent application program, only provided by virtual personal assistant One of a variety of application services.
In practical applications, voice applications service provided audio data and can realize in a variety of manners.For example, this Audio data described in inventive embodiments can for hip-hop, rural area, rock and roll, Guangdong language, America and Europe, the types such as releive sound It is happy, or the audiobook of the types such as describing love affairs, suspense, city, social sciences, children, adult, can also for such as news, The radio station of the types such as music, story.It is, of course, also possible to be the audio data of other forms, such as radio play, cross-talk, storytelling.This In, the embodiment of the present invention is not specifically limited.
Specifically, the current behavioral data of above-mentioned user is the number for characterizing user's currently specific behavior According to.For example, the current behavioral data of user can be in playing games, goes to work by bus, handle work, reading 5 hours, go Gymnasium, afternoon nap, gymnasium running etc..
In practical applications, the data source that virtual personal assistant obtains the current behavioral data of user can be by user It is realized by voice messaging that earphone inputs in real time, is also possible to help by user in virtual personal assistant or in virtual individual Pre-stored working and resting arrangement data are realized in the other application program (e.g., schedule etc.) in electronic equipment where managing, when So, it can also be achieved by other means, such as virtual personal assistant sets user using electronics where virtual personal assistant The case where standby middle application program data collected etc. when being monitored in real time.Here, the embodiment of the present invention is not specifically limited.
S202: based on the current behavioral data of user, the scene that user is presently in is determined;
Specifically, after virtual personal assistant gets the current behavioral data of user, virtual personal assistant Based on the current behavioral data of user, intelligently determine the scene that user is presently in, so as to virtual personal assistant according to Family is presently in scene and more accurately pushes the audio data for being suitble to current scene to user.
As an example it is assumed that the current behavioral data of user is when going to work by the subway, then, virtual personal assistant can To determine that the scene that the user is presently in is noisy etc. for working road, subway, environment;Assuming that the behavioral data that user is current For when sit-ups are done in gymnasium, then, virtual personal assistant is assured that out that the scene that the user is presently in is strong Body room, movement, interior, environment more peace and quiet etc.;Assuming that the current behavioral data of user is to see e-book using electronic equipment When, then, virtual personal assistant is assured that out the scene that the user is presently in read a book, reading, amusement, rest, relax Delay.
S203: by voice applications service, from preset audio database, the scene for meeting that user is presently in is obtained Target audio data;
Specifically, after the scene that virtual personal assistant determines that user is presently in, virtual personal assistant It is serviced by the voice applications, obtains preset audio database sound intermediate frequency label information and user is presently in the sound of scene matching Frequency evidence, in this way, just getting the target audio data for meeting the scene that user is presently in.
In practical applications, according to the difference of the storage location of the audio resource of voice applications service, above-mentioned preset audio Database can be set virtual personal assistant institute in the electronic device, the clothes associated by virtual personal assistant also can be set It is engaged in device, such as the server of third party's audio data provider.Here, the embodiment of the present invention is not specifically limited.So, right Ying Di, target audio data can be local audio data, or network audio data, as third party's audio data provides Data provided by quotient.
S204: by target audio data-pushing to earphone.
Specifically, in order to enable user's uppick is suitable for the audio data that user is presently in scene, at virtual After people assistant gets the target audio data, virtual personal assistant the target audio data will be exported to virtual individual The earphone that electronic equipment where assistant is connected, thus, user can the uppick target audio data by earphone.
So far, virtual personal assistant, which just completes, intelligently pushes away the audio data for being suitable for the scene that user is presently in Give the process of user.
As shown in the above, the method for push audio data provided by the embodiment of the present invention, wakes up virtual in user After voice applications service in personal assistant, virtual personal assistant will obtain the current behavioral data of the user automatically, then, The virtual personal assistant behavioral data current based on user, so that it may intelligently determine the scene that the user is presently in;It connects Get off, virtual personal assistant can be got and be met from preset audio database by the voice applications service waken up The target audio data for the scene that user is presently in;Finally, virtual personal assistant can be by target audio data-pushing to earphone. In this way, by virtual personal assistant can the scene that is presently in of intelligent recognition user, and the scene being presently according to user To user's push it is suitable for the audio data of the scene that user is presently in, realizes intelligently different according to locating for user Current scene pushes different audio datas to user, browses and select on an electronic device manually audio data without user, To improve the degree of intelligence and accuracy of push audio data, greatly improve user experience.
Based on previous embodiment, in an alternative embodiment of the invention, intelligently determined for the ease of virtual personal assistant The scene that user is presently in obtains the difference of the data source of the current behavioral data of user according to virtual personal assistant, on Stating S201 can use but not limit to following methods to realize.
The first implementation method, when the data source of the current behavioral data of user is by user's preset daily schedule Table is come when realizing, in the specific implementation process, above-mentioned S201 may include: the electronic equipment obtained where virtual personal assistant Present system time;In each period in mapping relations from preset work and rest data and between the period, determine to work as Target time section belonging to preceding system time;According to work and rest data and the mapping relations between the period, target time section is obtained Corresponding target work and rest data;Target work and rest data are determined as the current behavioral data of user.
Specifically, work and rest data and the time of user are previously stored in the electronic equipment where virtual personal assistant Mapping relations between section.So, the current system of the electronic equipment where virtual personal assistant obtains virtual personal assistant It unites after the time, virtual personal assistant can be by the endpoint time of each period in present system time and the mapping relations It is compared, to determine target time section belonging to present system time from each period in the mapping relations;It connects Get off, virtual personal assistant is according to the mapping relations, so that it may get the institute of target time section belonging to the present system time Corresponding target work and rest data, and target work and rest data are determined as the current behavioral data of user.In this way, virtual individual helps Reason just gets the current behavioral data of required user.
In practical applications, the particular content for data of working and resting in the work and rest data and mapping relations between the period and The value of period can be by user's sets itself, illustratively, and the work and rest data and the mapping relations between the period can be User come pre-set, be also possible to user and pass through virtual personal assistant by user interface provided by virtual personal assistant User interface provided by the other application program of the electronic equipment at place is come pre-set.Certainly, the work and rest data and when Between the particular content of data and the value of period are worked and rested in mapping relations between section can also next life otherwise At, the geographical location track and user for such as learning user by machine learning algorithm use electricity where virtual personal assistant The behavioural habits of each application program generate the work and rest data and the mapping relations between the period in sub- equipment.Here, originally Inventive embodiments are not specifically limited.
For example, above-mentioned mapping relations can be stored in the electronic equipment where virtual personal assistant in table form In, daily schedule as shown in Table 1.
Period Work and rest data
6:00-7:00 It gets up, does Yoga half an hour, wash one's face and rinse one's mouth
7:00-8:00 It goes to work by the subway
12:00-13:00 It has lunch, rest and entertainment
13:00-14:00 Afternoon nap
Table 1
Certainly, work and rest data and the mapping relations between the period can also be other forms, and those skilled in the art can Sets itself, here, the embodiment of the present invention are not specifically limited.
Second of implementation method, when the voice that the data source of the current behavioral data of user passes through earphone input by user Information is come when realizing, in the specific implementation process, above-mentioned S201 may include: to earphone output preset audio prompt data, In, preset audio prompt data are used to that user to be prompted to input the current behavioral data of user by voice mode;It is logical to receive user Cross the user speech information of earphone input;Speech recognition is carried out to user speech information, extracts user from user speech information Current behavioral data.
Here, user speech information is used to indicate the current behavioral data of the user.
Specifically, after virtual personal assistant wakes up voice applications service, virtual personal assistant can export pre- to earphone If audio prompt data, control earphone plays preset audio prompt data to user, so that user knows to need to input at this time Current behavioral data.Next, virtual individual helps after the user speech information that virtual personal assistant receives user's input Reason can first pass through speech recognition technology to obtain the corresponding textual identification of the first voice messaging, then, then pass through nature Language understanding technology carries out analysis and understanding to text identification information, and the current behavior number of user is extracted from user speech information According to.
For example, such as " hello, may I ask what you are currently doing to user's broadcasting for virtual personal assistant control earphone ", " you are good, please by voice mode inform you it is current made by thing " etc. preset audios prompt data.Next, virtual User speech information received by people assistant can be " I now by the subway, on the road for going to unit ", then, virtual People assistant can be extracted from the user speech information the current behavioral data of user be " go to work by the subway, go to work road On ".
Certainly, it other than using above-mentioned two kinds of listed implementation methods, can also be obtained using other implementation methods The current behavioral data of user, for example, when the current behavioral data of user data source by user to virtual personal assistant institute Electronic equipment on other application program service condition to realize when, can be answered according to currently running in electronic equipment The current behavioral data of user is generated with program.Here, the embodiment of the present invention is not specifically limited.
It with the current behavioral data of user is worked and rested by target in an alternative embodiment of the invention based on previous embodiment Data are come for realizing, to determine scene that user is presently in based on the current behavioral data of user to virtual personal assistant Process be illustrated.Specifically, above-mentioned S202 can be used but not limited to following methods to realize.
Implementation method one directly determines out the scene that user is presently according to acquired target work and rest data.
In the specific implementation process, above-mentioned S202 may comprise steps of A~B:
Step A: keyword is extracted from target work and rest data;
Step B: the scene tag information in the scene tag library pre-established with Keywords matching is determined as user and is worked as Preceding locating scene.
In practical applications, various scene marks can be pre-created out in the difference of the scene according to locating for user Information and its associated scene tag information are signed, for example, " movement " and " timing, melody, rock and roll, body-building, running, vest Line ", " reading " and " reading peace and quiet, light music, is releived, nature, enhancing memory, study, examination " etc., then, by these Scape label information and its associated scene tag information are stored into scene tag library.
For example, the above-mentioned scene tag library pre-established can be stored in virtual personal assistant in table form In the electronic equipment at place, scene tag information table as shown in Table 2.
Table 2
Certainly, the above-mentioned scene tag library pre-established can also be other forms, the above-mentioned scene tag pre-established The particular content of scene tag information and its corresponding associated scene tag information in library can be by those skilled in the art Sets itself, here, the embodiment of the present invention are not specifically limited.
It illustratively, is " to be gone by the subway shown in upper table 1 with virtual personal assistant target work and rest data obtained For class ", then after target work and rest data are analyzed in virtual personal assistant, so that it may be extracted from target work and rest data Keyword " subway is gone to work, road of going to work " out, next, virtual personal assistant will be shown in these keywords and table 2 as above The scene tag information in scene tag library pre-established is matched, can determine the first scene tag information be " on Class road, working, timing, refresh oneself, vigour is full, warm blood, exertion, subway ".
In practical applications, accessed if user does not take action in strict accordance with prearranged work-rest program Target work and rest data may be unable to characterize user's currently true behavioral data, at this point, being determined according to target work and rest data The scene that user is presently in out also may just will appear deviation, therefore, in order to more accurately determine what user was presently in Scene, it is also necessary to first determine that acquired target work and rest data are user's currently true behavioral data.
Implementation method two first determines whether acquired target work and rest data really have according to the current physical location of user Effect determines the current institute of user further according to acquired target work and rest data when determining that target work and rest data are authentic and valid The scene at place.
In the specific implementation process, before step A, above-mentioned S202 can also include the following steps C1~C4:
Step C1: the current geographic position data of user is obtained;
Here, geographic position data can be latitude and longitude information, can also also be specific place name, for example, so-and-so cell, certain Certain road etc., it is, of course, also possible to be other data that can be characterized user and be presently in position, such as GPS (Global Positioning System, global positioning system) location coordinate information etc., here, the embodiment of the present invention is not specifically limited.
In practical applications, the current geographic position data of user can be as the electronic equipment where virtual personal assistant It is collected, it is also possible to the other electronic equipments being connect as the electronic equipment where with virtual personal assistant, such as intelligent hand The wearable devices such as table, Intelligent bracelet etc. are collected, and are sent to the electronic equipment where virtual personal assistant.Here, originally Inventive embodiments are not specifically limited the source of geographic position data.
Step C2: it is based on geographic position data, determines the current physical location of user;
Specifically, after virtual personal assistant gets the current geographic position data of user, virtual personal assistant is just The physical location that user is presently in can be determined according to the geographic position data.
Illustratively, the current physical location of user can be family, unit, gymnasium, road on and off duty etc..
Step C3: target work and rest data are analyzed, determine the theoretical position of user;
For example, with data instance of working and resting shown in table 1, when virtual personal assistant target work and rest data obtained For " getting up, do Yoga half an hour, wash one's face and rinse one's mouth ", virtual personal assistant is assured that out that the theoretical position of user is " family ";Work as void Quasi- personal assistant target work and rest data obtained are " going to work by the subway ", and virtual personal assistant is assured that out user's Theoretical position is " working road ";When virtual personal assistant target work and rest data obtained are " afternoon nap ", virtual personal assistant The theoretical position for being assured that out user is " unit ".
Step C4: theoretical position is matched with physical location.
Specifically, if executing step C4, determine that the theoretical position of user and the current physical location of user are Match, then shows that target work and rest data are authentic and valid, behavioral datas that can be current as user, at this point it is possible to execute Step A~B, to be worked and rested the scene that data determine that user is presently according to target.
For example, virtual personal when virtual personal assistant target obtained work and rest data are " going to work by the subway " Assistant can determine that the theoretical position of user is " working road " based on target work and rest data, and what user was presently in Physical location be " road on and off duty ", then can determine the theoretical position of the user physical location current with user be it is matched, At this point, being assured that target work and rest data are authentic and valid, the data that can be worked and rested according to the target accurately determine out user and work as Therefore preceding locating scene can execute step A~B, to be worked and rested the field that data determine that user is presently according to the target Scape.
For example, when virtual personal assistant target work and rest data obtained are " to get up, do Yoga half an hour, wash Gargle ", virtual personal assistant can determine that the theoretical position of user is " family " based on target work and rest data, and user is current Locating physical location is " road on and off duty ", then can determine that the theoretical position of user and the current physical location of user are not Matched, at this point, being assured that target work and rest data are not authentic and valid, the data that can not be worked and rested according to the target are accurately Determine the scene that user is presently in.
Implementation method three first determines whether acquired target work and rest data are true according to the current physiological status data of user It is real effective, when determining that target work and rest data are authentic and valid, determine that user works as further according to acquired target work and rest data Preceding locating scene.
In the specific implementation process, before step A, above-mentioned S202 can also include the following steps D1~D4:
Step D1: the current physiological status data of user is obtained;
Here, physiological status data can be heart rate value, or velocity amplitude, it is, of course, also possible to for it is other being capable of table Take over the data of family behavior state, such as the combination of acceleration value, above-mentioned physiological status data for use.Here, the embodiment of the present invention is not It is specifically limited.
In practical applications, the current physiological status data of user can be as the electronic equipment where virtual personal assistant It is collected, it is also possible to the other electronic equipments being connect as the electronic equipment where with virtual personal assistant, such as intelligent hand The wearable devices such as table, Intelligent bracelet etc. are collected, and are sent to the electronic equipment where virtual personal assistant.Here, originally Inventive embodiments are not specifically limited the source of physiological status data.
Step D2: it is based on physiological status data, determines the current agenda state of user;
Specifically, virtual personal assistant can be stored in advance in the electronic device by physiological status data and behavior shape Mapping relations between state, in this way, after virtual personal assistant obtains the current physiological status data of user, according to the mapping Relationship, so that it may determine the current agenda state of user.
Heart rate value Behavior state
60~70 Static or sleep
71~90 On foot
91~120 It jogs
Greater than 120 It hurries up
Table 3
For example, above-mentioned mapping relations store in the electronic device in table form, are the hearts with physiological status data For rate value, then, as shown in table 3, the current physiological status data of the user accessed by the virtual personal assistant is " heart rate Value is 69 ", at this point it is possible to determine that the current agenda state of user is static.Certainly, physiological status data and behavior shape Mapping relations between state can also be other forms and other values, those skilled in the art can sets itself, the present invention is not It is specifically limited.
Step D3: target work and rest data are analyzed, determine the theoretical behavior state of user;
For example, when virtual personal assistant target work and rest data obtained are " afternoon nap ", virtual personal assistant can To determine the theoretical behavior state of user for " static " or " sleep ".When virtual personal assistant target work and rest data obtained For " jogging 5 kilometers in gymnasium ", virtual personal assistant is assured that out that the theoretical behavior state of user is " jogging ".
Step D4: theoretical behavior state is matched with agenda state.
Specifically, if executing step D4, the theoretical behavior state and the current agenda of user of user are determined State be it is matched, then show that target work and rest data are authentic and valid, behavioral datas that can be current as user, at this point, Step A~B can be executed, to work and rest the scene that data determine that user is presently according to target.
For example, when virtual personal assistant target work and rest data obtained are " afternoon nap ", virtual personal assistant can With determined based on target work and rest data the theoretical behavior state of user for " static " or " sleep ", and what user was presently in Agenda state be " static ", then can determine the theoretical position of the user physical location current with user be it is matched, this When, so that it may determine that target work and rest data are authentic and valid, it is current that the data that can work and rest according to the target accurately determine out user Therefore locating scene can execute step A~B, to be worked and rested the field that data determine that user is presently according to the target Scape.
For example, when virtual personal assistant target obtained works and rests data for " jogging 5 kilometers in gymnasium ", virtually Personal assistant can determine that the theoretical behavior state of user is " jogging " based on target work and rest data, and the current institute of user The agenda state at place is " static ", then can determine the theoretical position of user and the current physical location of user is to mismatch , at this point, being assured that target work and rest data are not authentic and valid, the data that can not be worked and rested according to the target are accurately determined The scene that user is presently in out.
Certainly, it other than using above-mentioned three kinds of listed implementation methods, can also be determined using other implementation methods The scene that user is presently in out, for example, the target time section where worked and rested simultaneously according to target data, present system time Corresponding work and rest data of the upper period and present system time where target time section next period it is corresponding Work and rest data determine scene that user is presently in.Here, the embodiment of the present invention is not specifically limited.
Based on previous embodiment, in other embodiments of the present invention, when determine target work and rest data it is not authentic and valid , when behavioral data that can not be current as user, in order to more accurately represent the scene that user is presently in, then, on The method of stating can also include step E: the scene that user is presently in is determined as unknown scene.
Specifically, if executing step C4, determine that the theoretical position of user is mismatched with the current physical location of user When, alternatively, determining that the theoretical behavior state of user is mismatched with the current agenda state of user if executing step D4 When, then show that target work and rest data are not authentic and valid, behavioral data that can not be current as user, at this point it is possible to execute Step E, the scene that user is presently in are determined as unknown scene.
Certainly, when the current physical location of the theoretical position of user and user mismatches, alternatively, in the theoretical row of user When mismatching for state with the current agenda state of user, show that user does not take action according to work-rest program, at this point, in order to The scene that user is presently in is accurately determined out, it can also be according only to the physiological status data of user and the geographical location of user At least one of data determine scene that user is presently in.
Based on previous embodiment, in an alternative embodiment of the invention, whether the scene being presently according to user is unknown Scene, in order to get the target audio data for being suitable for the scene that user is presently in, above-mentioned S203 can be used but not office Following methods are limited to realize.
Method one, when the scene that user is presently in is unknown scene, audio data that user is often played recently It is determined for the target audio data for the scene that user is presently in.
In the specific implementation process, above-mentioned S203 may include: and obtain when the scene that user is presently in is unknown scene The history audio in preset time period is taken to play record;Statistical history audio plays the broadcasting frequency of each audio data in record Rate;The audio data that broadcasting frequency in each audio data is met to preset condition, is determined as target audio data;Pass through audio Application service obtains target audio data from preset audio database.
Method two, when the scene that user is presently in is determining scene, by preset audio database sound intermediate frequency label The audio data to match with the scene that user is presently in is determined for the target audio for the scene that user is presently in Data.
Specifically, referring to shown in above-mentioned table 2, the scene being presently in user is realized by scene tag information, After virtual personal assistant determines the scene that user is presently according to target work and rest data, virtual personal assistant can will be used During the scene tag information input for the scene that family is presently in voice applications service, in this way, voice applications service can incite somebody to action The scene tag information for the scene that user is presently in is matched with preset audio database sound intermediate frequency label, by preset audio The audio data that database sound intermediate frequency label information and scene tag information match, is determined as meeting the field that user is presently in The target audio data of scape, in this way, virtual personal assistant can get the target sound for meeting the scene that user is presently in Frequency evidence.
Certainly, it other than using above-mentioned two kinds of listed implementation methods, can also be obtained using other implementation methods It is suitable for the target audio data for the scene that user is presently in.Here, the embodiment of the present invention is not specifically limited.
Based on the same inventive concept, as an implementation of the above method, the embodiment of the invention provides a kind of push audios The device of data, the Installation practice is corresponding with preceding method embodiment, and to be easy to read, present apparatus embodiment is no longer to aforementioned Detail content in embodiment of the method is repeated one by one, it should be understood that the device in the embodiment of the present invention can correspond to reality Full content in existing preceding method embodiment.
Fig. 3 is the structural schematic diagram of the device of the push audio data in the embodiment of the present invention, shown in Figure 3, the dress Setting 30 may include: first acquisition unit 301, after waking up the service of the voice applications in virtual personal assistant in user, obtain Take the current behavioral data in family;First determination unit 302 determines that user is current for the behavioral data current based on user Locating scene;Second acquisition unit 303, for by voice applications service, from preset audio database, acquisition to meet use The target audio data for the scene that family is presently in;Push unit 304 is used for target audio data-pushing to earphone.
In embodiments of the present invention, first acquisition unit is also used to obtain the electronic equipment where virtual personal assistant Present system time;In each period in mapping relations from preset work and rest data and between the period, determine to work as Target time section belonging to preceding system time;According to work and rest data and the mapping relations between the period, target time section is obtained Corresponding target work and rest data;Target work and rest data are determined as the current behavioral data of user.
In embodiments of the present invention, the first determination unit, for extracting keyword from target work and rest data;It will build in advance It is determined as the scene that user is presently in the scene tag information of Keywords matching in vertical scene tag library.
In embodiments of the present invention, the first determination unit is also used to obtain the current geographic position data of user;Based on ground Position data is managed, determines the current physical location of user;Target work and rest data are analyzed, determine the theoretical position of user; Theoretical position is matched with physical location;If it does, extracting keyword from target work and rest data.
In embodiments of the present invention, the first determination unit is also used to obtain the current physiological status data of user;Based on life Status data is managed, determines the current agenda state of user;Target work and rest data are analyzed, determine the theoretical row of user For state;Theoretical behavior state is matched with agenda state;If it does, being extracted from target work and rest data crucial Word.
In other embodiments of the present invention, above-mentioned apparatus can also include: the second determination unit, if determined for first The theoretical position of unit users is mismatched with the current physical location of user, alternatively, if the first determination unit determines user's Theoretical behavior state is mismatched with the current agenda state of user, and the scene that user is presently in is determined as unknown field Scape.
In embodiments of the present invention, second acquisition unit is also used to when the scene that user is presently in is unknown scene, The history audio obtained in preset time period plays record;Statistical history audio plays the broadcasting frequency of each audio data in record Rate;The audio data that broadcasting frequency in each audio data is met to preset condition, is determined as target audio data;Pass through audio Application service obtains target audio data from preset audio database.
The device for the push audio data introduced by the embodiment of the present invention is that can execute in the embodiment of the present invention The device of the method for audio data is pushed, so based on the method for pushing audio data described in the embodiment of the present invention, this Those skilled in the art can understand the embodiment of the present invention push audio data device specific embodiment and its Various change form, so how the device at this for the push audio data realizes the push audio in the embodiment of the present invention The method of data is no longer discussed in detail.As long as those skilled in the art implement to push audio data in the embodiment of the present invention Device used by method belongs to the range to be protected of the application.
In practical applications, the device of the push audio data can be applied in electronic equipment.Electronic equipment can be with each Kind of form is implemented.For example, electronic equipment described in the embodiment of the present invention may include such as intelligent sound box, smart television, Carry-on equipment such as the smart home devices such as Intelligent set top box, smart phone, tablet computer, smartwatch, Intelligent bracelet etc.. It is, of course, also possible to be not specifically limited in the embodiment of the present invention here for other types of audio frequency apparatus.
Based on the same inventive concept, the embodiment of the present invention provides a kind of electronic equipment.Fig. 4 is the electricity in the embodiment of the present invention The structural schematic diagram of sub- equipment, shown in Figure 4, which includes: at least one processor 41;And and processor At least one processor 42, the bus 43 of 41 connections;Wherein, processor 41, memory 42 are completed mutual by bus 43 Communication;Processor 41 is used to call the program instruction in memory 42, to execute the push audio data in above-described embodiment The step of method.
The embodiment of the invention also provides a kind of processor, processor is for running program, wherein program executes when running The method of push audio data in above-described embodiment.
Above-mentioned processor can be by central processing unit (Central Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field-programmable Gate array (Field Programmable Gate Array, FPGA) etc. is realized.Memory may include computer-readable medium In non-volatile memory, the shapes such as random access memory (Random Access Memory, RAM) and/or Nonvolatile memory Formula, if read-only memory (Read Only Memory, ROM) or flash memory (Flash RAM), memory include at least one storage Chip.
Based on the same inventive concept, the embodiment of the present invention provides a kind of computer readable storage medium, and above-mentioned computer can Read the program that storage medium includes storage, wherein equipment where control storage medium executes above-described embodiment in program operation In push audio data method the step of.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, Usable storage medium (including but not limited to magnetic disk storage, CD-ROM (Compact Disc Read-Only Memory, CD-ROM), optical memory etc.) on the form of computer program product implemented.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, RAM and/or Nonvolatile memory etc. Form, such as ROM or Flash RAM.Memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. Computer readable storage medium can be ROM, programmable read only memory (Programmable Read-Only Memory, PROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, EPROM), electricity Erasable Programmable Read Only Memory EPROM (Electrically Erasable Programmable Read-Only Memory,
EEPROM), magnetic RAM (Ferromagnetic Random Access Memory, FRAM), Flash memory (Flash Memory), magnetic surface storage, CD or CD-ROM (Compact Disc Read-Only Memory, CD-ROM) etc. memories;It is also possible to flash memory or other memory techniques, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-biography Defeated medium, can be used for storage can be accessed by a computing device information;It can also be including one of above-mentioned memory or any group The various electronic equipments closed, such as mobile phone, computer, tablet device, personal digital assistant.As defined in this article, Computer-readable medium does not include temporary computer readable media (transitory media), the data-signal and load of such as modulation Wave.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only the embodiment of the present invention, are not intended to restrict the invention.To those skilled in the art, The invention may be variously modified and varied.It is all within the spirit and principles of the present invention made by any modification, equivalent replacement, Improve etc., it should be included within scope of the presently claimed invention.

Claims (10)

1. a kind of method for pushing audio data, which is characterized in that be applied to virtual personal assistant, which comprises
After user wakes up the service of the voice applications in the virtual personal assistant, the current behavioral data of the user is obtained;
Based on the current behavioral data of the user, the scene that the user is presently in is determined;
It is serviced by the voice applications, from preset audio database, obtains the scene for meeting that the user is presently in Target audio data;
By the target audio data-pushing to earphone.
2. the method according to claim 1, wherein described obtain the current behavioral data of the user, comprising:
Obtain the present system time of the electronic equipment where the virtual personal assistant;
In each period in mapping relations from preset work and rest data and between the period, the current system is determined Target time section belonging to time;
According to the work and rest data and the mapping relations between the period, the work and rest of target corresponding to the target time section is obtained Data;
Target work and rest data are determined as the current behavioral data of the user.
3. according to the method described in claim 2, it is characterized in that, the behavioral data current based on the user, determines The scene that the user is presently in, comprising:
Keyword is extracted from target work and rest data;
It is current that scene tag information in the scene tag library pre-established with the Keywords matching is determined as the user Locating scene.
4. according to the method described in claim 2, it is characterized in that, it is described from the target work and rest data in extract keyword, Include:
Obtain the current geographic position data of the user;
Based on the geographic position data, the current physical location of the user is determined;
Target work and rest data are analyzed, determine the theoretical position of the user;
The theoretical position is matched with the physical location;
If it does, extracting keyword from target work and rest data.
5. according to the method described in claim 2, it is characterized in that, it is described from the target work and rest data in extract keyword, Include:
Obtain the current physiological status data of the user;
Based on the physiological status data, the current agenda state of the user is determined;
Target work and rest data are analyzed, determine the theoretical behavior state of the user;
The theoretical behavior state is matched with the agenda state;
If it does, extracting keyword from target work and rest data.
6. method according to claim 4 or 5, which is characterized in that the method also includes:
If the theoretical position and the physical location mismatch, alternatively, if the theory behavior state and the reality Behavior state mismatches, and the scene that the user is presently in is determined as unknown scene.
7. according to the method described in claim 6, it is characterized in that, described serviced by the voice applications, from preset audio In database, the target audio data for meeting the scene that the user is presently in are obtained, comprising:
When the scene that the user is presently in is unknown scene, the history audio obtained in preset time period plays record;
Count the broadcasting frequency that the history audio plays each audio data in record;
The audio data that broadcasting frequency in each audio data is met to preset condition, is determined as the target sound frequency According to;
It is serviced by the voice applications, from preset audio database, obtains the target audio data.
8. a kind of device for pushing audio data, which is characterized in that described device includes:
First acquisition unit obtains the use after waking up the service of the voice applications in the virtual personal assistant in user The current behavioral data in family;
First determination unit determines the scene that the user is presently in for the behavioral data current based on the user;
Second acquisition unit, for being serviced by the voice applications, from preset audio database, acquisition meets the user The target audio data for the scene being presently in;
Push unit is used for the target audio data-pushing to earphone.
9. a kind of computer readable storage medium, which is characterized in that the storage medium includes the program of storage, wherein in institute Equipment where controlling the storage medium when stating program operation executes push audio number as described in any one of claim 1 to 7 According to method the step of.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
At least one processor;
And at least one processor, the bus being connected to the processor;
Wherein, the processor, memory complete mutual communication by the bus;The processor is described for calling Program instruction in memory, with execute it is as described in any one of claim 1 to 7 push audio data method the step of.
CN201811134658.6A 2018-09-28 2018-09-28 A kind of method and device pushing audio data Pending CN109255050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811134658.6A CN109255050A (en) 2018-09-28 2018-09-28 A kind of method and device pushing audio data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811134658.6A CN109255050A (en) 2018-09-28 2018-09-28 A kind of method and device pushing audio data

Publications (1)

Publication Number Publication Date
CN109255050A true CN109255050A (en) 2019-01-22

Family

ID=65048240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811134658.6A Pending CN109255050A (en) 2018-09-28 2018-09-28 A kind of method and device pushing audio data

Country Status (1)

Country Link
CN (1) CN109255050A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111128384A (en) * 2019-12-31 2020-05-08 慧择保险经纪有限公司 Method and device for obtaining human body information change degree
CN111723234A (en) * 2020-06-15 2020-09-29 中国第一汽车股份有限公司 Audio providing method, device, equipment and storage medium
CN112959963A (en) * 2021-03-22 2021-06-15 恒大新能源汽车投资控股集团有限公司 Vehicle-mounted service providing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120131493A1 (en) * 2010-11-16 2012-05-24 Compal Electronics, Inc. Computer information display method and computer system using the same
CN105142104A (en) * 2015-06-19 2015-12-09 北京奇虎科技有限公司 Method, device and system for providing recommendation information
CN105335507A (en) * 2015-10-29 2016-02-17 维沃移动通信有限公司 Method and device for pushing music
CN106383450A (en) * 2016-11-10 2017-02-08 北京工商大学 Smart home user behavior analyzing system and smart home user behavior analyzing method based on big data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120131493A1 (en) * 2010-11-16 2012-05-24 Compal Electronics, Inc. Computer information display method and computer system using the same
CN105142104A (en) * 2015-06-19 2015-12-09 北京奇虎科技有限公司 Method, device and system for providing recommendation information
CN105335507A (en) * 2015-10-29 2016-02-17 维沃移动通信有限公司 Method and device for pushing music
CN106383450A (en) * 2016-11-10 2017-02-08 北京工商大学 Smart home user behavior analyzing system and smart home user behavior analyzing method based on big data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111128384A (en) * 2019-12-31 2020-05-08 慧择保险经纪有限公司 Method and device for obtaining human body information change degree
CN111128384B (en) * 2019-12-31 2024-01-26 慧择保险经纪有限公司 Human body information change degree obtaining method and device
CN111723234A (en) * 2020-06-15 2020-09-29 中国第一汽车股份有限公司 Audio providing method, device, equipment and storage medium
CN112959963A (en) * 2021-03-22 2021-06-15 恒大新能源汽车投资控股集团有限公司 Vehicle-mounted service providing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US10819811B2 (en) Accumulation of real-time crowd sourced data for inferring metadata about entities
US10083690B2 (en) Better resolution when referencing to concepts
JP6442000B2 (en) System and method for determining empirical experts and routing questions
JP6558364B2 (en) Information processing apparatus, information processing method, and program
CN105051676B (en) Response endpoint selects
CN102017585B (en) Method and system for notification and telecommunications management
US11074916B2 (en) Information processing system, and information processing method
US11314475B2 (en) Customizing content delivery through cognitive analysis
CN108541312A (en) The multi-modal transmission of packetized data
CN103650035A (en) Identifying people that are proximate to a mobile device user via social graphs, speech models, and user context
CN106294787A (en) Information pushing method and device and electronic equipment
CN109255050A (en) A kind of method and device pushing audio data
CN106653016A (en) Intelligent interaction method and intelligent interaction device
TW202022851A (en) Voice interaction method and device
CN104025626A (en) Periodic Ambient Waveform Analysis For Dynamic Device Configuration
CN106462623A (en) Content item usage based song recommendation
CN110010125A (en) A kind of control method of intelligent robot, device, terminal device and medium
CN103488669B (en) Message processing device, information processing method and program
CN108922528A (en) Method and apparatus for handling voice
CN109671435A (en) Method and apparatus for waking up smart machine
CN109215679A (en) Dialogue method and device based on user emotion
JP7436077B2 (en) Skill voice wake-up method and device
CN104838378A (en) Systems and methods for generating a playlist in a music service
CN106254997A (en) Audio frequency apparatus and for obtain audio frequency apparatus use information correlation technique
CN110275691A (en) Automatic reply method, device, terminal and the storage medium that intelligent sound wakes up

Legal Events

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

Application publication date: 20190122