CN107968969B - A kind of response method of user speech, device and terminal device - Google Patents
A kind of response method of user speech, device and terminal device Download PDFInfo
- Publication number
- CN107968969B CN107968969B CN201710822746.4A CN201710822746A CN107968969B CN 107968969 B CN107968969 B CN 107968969B CN 201710822746 A CN201710822746 A CN 201710822746A CN 107968969 B CN107968969 B CN 107968969B
- Authority
- CN
- China
- Prior art keywords
- user
- space
- voice messaging
- distance
- loudness value
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000004044 response Effects 0.000 title claims abstract description 33
- 238000012790 confirmation Methods 0.000 claims abstract description 20
- 238000004590 computer program Methods 0.000 claims description 24
- 238000005516 engineering process Methods 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 241000209140 Triticum Species 0.000 description 1
- 235000021307 Triticum Nutrition 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
- H04R1/22—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only
- H04R1/26—Spatial arrangements of separate transducers responsive to two or more frequency ranges
Landscapes
- Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The present invention is suitable for voice control technology field, provide the response method, device and terminal device of a kind of user speech, it include: the space where when determining that user issues voice messaging by the loudness value of the voice messaging for the microphone acquisition being mounted in different spaces, the free token where when user is issued voice messaging is the first space;By the sensor in the first space, user is at a distance from microphone in the first space when obtaining user's sending voice messaging;The space that is currently located of confirmation user and user are at a distance from the loudspeaker in the space being currently located;According to user at a distance from microphone in the first space, the loudness value of voice messaging and user obtain target loudness value at a distance from the loudspeaker in the space being currently located, and control the voice messaging that the loudspeaker in the space that user is currently located responds user according to the target loudness value.This programme may make terminal device to adjust the loudness value of sound in real time.
Description
Technical field
The invention belongs to voice control technology field more particularly to a kind of response methods of user speech, device and terminal
Equipment.
Background technique
Smart home be using house as platform, using comprehensive wiring technology, network communication technology, security precautions technology, from
Dynamic control technology, audio and video technology integrate the related facility of home life, construct efficient housing facilities and family's schedule thing
The management system of business promotes house security, convenience, comfort, artistry, and realizes the living environment of environmental protection and energy saving.
Currently, voice control and voice response in smart home using more and more.However, current smart home
Sound size when middle terminal device responds the voice content of user is fixed, or directly issue intelligent terminal
Several grades are arranged in the volume of sound, pre-select corresponding grade, after user pre-selects the grade of volume, sound by user
Amount be still it is fixed, can not adjust in real time.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of response method of user speech, device and terminal device, with solution
Certainly existing intelligent terminal can not adjust the problem of sound intensity in real time.
The first aspect of the embodiment of the present invention provides a kind of response method of user speech, comprising:
The voice messaging of user is acquired by the microphone being mounted in different spaces;
When at least one microphone collects voice messaging, the loudness value of all voice messagings of acquisition, and root are obtained
Space where when determining that user issues the voice messaging according to the loudness value, when the user is issued the voice messaging
The free token at place is the first space;
By the sensor in the first space, user and Mike in the first space when user issues the voice messaging are obtained
The distance of wind;
The space that is currently located of confirmation user and user are at a distance from the loudspeaker in the space being currently located;
According to the user at a distance from microphone in the first space, the loudness value of the voice messaging and the user
With target loudness value is obtained at a distance from the loudspeaker in the space being currently located, and control in the space that the user is currently located
Loudspeaker according to the target loudness value respond user voice messaging.
The second aspect of the embodiment of the present invention provides a kind of responding device of user speech, comprising:
Voice messaging acquisition module acquires the voice messaging of user for the microphone by being mounted in different spaces;
The first space of user determining module, for obtaining acquisition when at least one microphone collects voice messaging
The loudness value of all voice messagings, and the space where when determining that user issues the voice messaging according to the loudness value, will
Free token where when the user issues the voice messaging is the first space;
User's first distance determining module, for obtaining user and issuing the voice by the sensor in the first space
User is at a distance from microphone in the first space when information;
User's second distance determining module, for confirming space that user is currently located and user and being currently located
The distance of loudspeaker in space;
Respond module, for according to the user at a distance from microphone in the first space, the loudness of the voice messaging
Value and the user obtain target loudness value at a distance from the loudspeaker in the space being currently located, and control the user and work as
Loudspeaker in the space at preceding place responds the voice messaging of user according to the target loudness value.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing the method that first aspect of the embodiment of the present invention provides.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the embodiment of the present invention the is realized when the computer program is executed by one or more processors
On the one hand the step of the method provided.
5th aspect of the embodiment of the present invention provides a kind of computer program product, and the computer program product includes
Computer program realizes that first aspect of the embodiment of the present invention provides when the computer program is executed by one or more processors
The method the step of.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
The embodiment of the present invention acquires the voice messaging of user by the microphone being mounted in different spaces;When at least one
When microphone collects voice messaging, the loudness value of all voice messagings of acquisition is obtained, and determine and use according to the loudness value
Space where when family issues the voice messaging, the free token where when the user is issued the voice messaging are the
One space;By the sensor in the first space, user and Mike in the first space when user issues the voice messaging are obtained
The distance of wind;The space that is currently located of confirmation user and user are at a distance from the loudspeaker in the space being currently located;According to
The user at a distance from microphone in the first space, the loudness value of the voice messaging and the user be currently located
The distance of loudspeaker in space obtains target loudness value, and control the loudspeaker in the space that the user is currently located according to
The voice messaging of the target loudness value response user.The embodiment of the present invention, which passes through, determines sky where when user issues voice messaging
Between in microphone at a distance from user, the loudness value of voice messaging and user be currently located loudspeaker and user in space
Distance determine that loudness value when response user speech information can also be adjusted in real time not even if user is mobile in different spaces
The voice messaging of the loudspeaker response user of isospace, and can also in real time governing response user speech information when sound it is big
It is small.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of the response method for user speech that one embodiment of the invention provides;
Fig. 2 is a kind of application scenario diagram of the response method for user speech that one embodiment of the invention provides;
Fig. 3 is the schematic block diagram of the responding device for the user speech that one embodiment of the invention provides;
Fig. 4 is the schematic block diagram for the terminal device that one embodiment of the invention provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is the implementation process schematic diagram of the response method for the user speech that one embodiment of the invention provides, as shown in the figure
This method may comprise steps of:
Step S101 acquires the voice messaging of user by the microphone being mounted in different spaces.
An application scenarios of the embodiment of the present invention are first introduced, as shown in Fig. 2, being an applied field of the embodiment of the present invention
Scape, there are three room, i.e. three spaces, respectively 1st area, 2nd area and 3rd areas for the application scenarios.The roof in each room is mounted with to hang
Voice module is pushed up, furred ceiling voice module includes: loudspeaker, microphone, sensor, and sensor can be used to measure user and loudspeaking
At a distance from microphone, loudspeaker and microphone may be mounted at adjacent position by device or user, only need a biography in this way
Sensor can measure user at a distance from loudspeaker or user and microphone.Certainly, the microphone and the loudspeaker
It can also be separately mounted to different positions, in this way, a sensor can be respectively set in loudspeaker and microphone, for measuring use
Family at a distance from loudspeaker, user is at a distance from microphone.
It should be noted is that due to the embodiment of the present invention be when being responded for the voice messaging to user how
The size of sound is adjusted, and controls the microphone response in which space, so, the voice messaging of acquisition need to can be known
Phonetic order that is other and responding, such as: song, the voice content of identification please be play are as follows: play song, the content of response is certain
One song;If the voice content of identification is: TV please be turn on, since the content of response is only required to be the operation of unlatching TV,
Without responding specific voice messaging, so, using using which microphone how is just determined without subsequent in this case
Great sound intensity value responds user.
Step S102 obtains the sound of all voice messagings of acquisition when at least one microphone collects voice messaging
Angle value, and the space where when determining that user issues the voice messaging according to the loudness value, will be described in the user issues
Free token where when voice messaging is the first space.
In embodiments of the present invention, when user, which is located at a space, issues voice messaging, if the distance in each space
Closer, the microphone in each space may collect voice messaging, but due between each space wall deposit
In the loudness value meeting difference of the collected voice messaging of microphone in possible each space.It is also possible to due to factors such as shutdowns
Microphone in some spaces can not collect voice messaging, but the Mike in the space where when user issues voice messaging
Wind is bound to collect voice messaging, so, when at least one microphone collects voice messaging, the institute of available acquisition
There is the loudness value of voice messaging, the space that user is currently located is determined according to the loudness value of all voice messagings.
Specifically, the space where when determining that user issues the voice messaging according to the loudness value specifically:
It is sent out the space where microphone corresponding to the maximum voice messaging of loudness value in all voice messagings of acquisition as user
Out when the voice messaging where space.
It in embodiments of the present invention, can be by corresponding to the maximum voice messaging of loudness value in the voice messaging of acquisition
Space where when space where microphone issues the voice messaging as user, if with sensor or camera etc.
The space that confirmation user is currently located, there are a drawbacks, that is, it, may be multiple when all there is user in multiple spaces
Sensor or camera in space can sense the presence of user, can not thus determine on earth be used in which space
The voice messaging that family issues.Space where when of course for more accurate confirmation user sending voice messaging, can also pass through
The mode that user speech loudness value and sensor or camera combine confirms that user issues voice messaging according to loudness value
When where space after, can also reaffirm in the space whether deposit by sensor in determining space or camera
In user, user if it exists, then it represents that the space where when determining user issues voice messaging is correctly, if being not present
User is then continued by the sensor or camera in the space where the big corresponding microphone of voice messaging of loudness value time true
Recognize then indicated if it exists with the presence or absence of user user in the space where the big corresponding microphone of voice messaging of loudness value time,
The rest may be inferred.Facilitate description in order to subsequent, the free token where when user is issued voice messaging by us is the first space.
Step S103 obtains user and first when user issues the voice messaging by the sensor in the first space
The distance of microphone in space.
In embodiments of the present invention, in order to confirming loudness value when final response user speech information, it is thus necessary to determine that
For user at a distance from microphone in the first space, microphone can match a sensor when user issues voice messaging, in order to
Enough comprehensive senses user, while can be measured that the distance of user, and sensor can be the sensor of angle rotatable,
User can also be by a distance from microphone in the first space being obtained when user issues the voice messaging by sensor
Camera is realized, for example, first passing through the image of camera acquisition user, confirms the current institute of user by the image of the user of acquisition
Orientation, the orientation that is currently located of user then confirmed by camera, the angle for adjusting sensor obtains user and wheat
The distance of gram wind.Camera is wide-angle camera or angle rotatable camera.
Step S104, the space that is currently located of confirmation user and user and the loudspeaker in the space being currently located
Distance.
In embodiments of the present invention, it since user is after issuing voice messaging, may be moved between different spaces, example
Such as, user issues voice messaging in 1st area are as follows: and song please be play, but after user issues voice messaging, is moved to 3rd area, at this moment,
It just needs to play song by the loudspeaker in 3rd area, certainly during playing song, user may be also in movement, at this moment
The loudspeaker for adjusting different spaces in real time is needed to play song.
In order to confirm space that user is currently located, it would be desirable to be confirmed by camera, for example, in confirmation user
After space where when sending voice messaging, the image of user can be acquired by the camera in the first space, and will adopt
The user images of collection are used as referring to image, certainly, in practical applications, if confirming user institute by camera aid sensors
Space, can also will the collected user images conduct of camera at that time when confirming user location by camera
Referring to image.After obtaining referring to image, space and user that the confirmation user is currently located and the space being currently located
In the distance of loudspeaker include: that the image that currently acquires the camera of different spaces carries out with described referring to image respectively
The space being currently located with recognition and verification user;The sensor in the space being currently located by user confirms user and is currently located
Space loudspeaker distance.
In embodiments of the present invention, the image that different spaces camera acquires can be subjected to match cognization with referring to image
Confirm user currently in which space, if the current acquired image of any one camera can with referring to images match,
Then space where the camera is exactly that user is currently located space, and the current institute of user can be confirmed when acquiring user images in camera
Orientation, the sensor that is currently located in space is adjusted by the orientation and confirms user and is currently located loudspeaker in space
Distance.When confirming that user is at a distance from microphone or loudspeaker by sensor, camera can be first passed through and obtain use
Then orientation where family adjusts the angle of sensor according to the orientation where user to obtain user and microphone or loudspeaking
The distance of device.So sensor is rotatable sensor.
Step S105, according to the user at a distance from microphone in the first space, the loudness value of the voice messaging with
And the user obtains target loudness value at a distance from the loudspeaker in the space being currently located, and controls the current institute of the user
Space in loudspeaker according to the target loudness value respond user voice messaging.
In embodiments of the present invention, when obtaining user and issuing voice messaging at a distance from microphone in the first space, language
The loudness value of message breath, user can obtain target loudness according to this three after being currently located in space at a distance from loudspeaker
Value.Corresponding relationship between target loudness value and this three can be set in advance to obtain target loudness value.Such as shift to an earlier date this
The numerical value of three and the corresponding relationship of target loudness value.After confirming this three, direct basis and the corresponding relationship first stored
Obtain target loudness value.
Since sound can decay during propagation, so the language when voice messaging of microphone acquisition after overdamping
Message breath, and in the sound transmission to user's ear that loudspeaker issues it is also the sound after overdamping.By way of example it is assumed that
Sound size when user issues voice messaging is 40 decibels, and the collected sound size of the first space microphone becomes through overdamping
It is 35 decibels, and in order to enable the sound that user hears is 40 decibels, we, which also need to calculate, is currently located space loudspeaker hair
Out after sound to how much decaying in the ear of user, it is assumed that active user loudspeaker in space it is true at a distance from user
Recognize 6 decibels of decaying.In order to enable the sound for being still 40 decibels that user hears, the target loudness value that loudspeaker issues should be
46 decibels.Can be seen that the collected voice messaging of microphone in the first space by above-mentioned analysis is 35 decibels, and user
The target loudness value for the loudspeaker being currently located in space should be 46 decibels.Should be specific corresponding to relationship: target loudness
Value=35 decibels of collected sound intensity value+to 5 decibels of the collected attenuation of microphone when user issues voice messaging+is raised
Sound device makes a sound 6 decibels of attenuation that user receives sound.It can specifically be indicated by formula:
S=SM+S1+S2
S indicates target loudness value, SMIndicate the loudness value of the collected voice messaging of microphone, S1Indicate that user issues language
Message cease when the first space in microphone corresponding sound at a distance from user attenuation, S2Indicate that user is currently located space
In loudspeaker corresponding sound at a distance from user attenuation.
Wherein, the relationship of the attenuation and distance of sound are as follows: Si=a*L
Wherein, SiIndicate the attenuation of sound intensity value, a indicates that attenuation coefficient, L indicate distance.
The embodiment of the present invention acquires the voice messaging of user by the microphone being mounted in different spaces;When at least one
When microphone collects voice messaging, the loudness value of all voice messagings of acquisition is obtained, and determine and use according to the loudness value
Space where when family issues the voice messaging, the free token where when the user is issued the voice messaging are the
One space;By the sensor in the first space, user and Mike in the first space when user issues the voice messaging are obtained
The distance of wind;The space that is currently located of confirmation user and user are at a distance from the loudspeaker in the space being currently located;According to
The user at a distance from microphone in the first space, the loudness value of the voice messaging and the user be currently located
The distance of loudspeaker in space obtains target loudness value, and control the loudspeaker in the space that the user is currently located according to
The voice messaging of the target loudness value response user.The embodiment of the present invention, which passes through, determines sky where when user issues voice messaging
Between in microphone at a distance from user, the loudness value of voice messaging and user be currently located loudspeaker and user in space
Distance determine that loudness value when response user speech information can also be adjusted in real time not even if user is mobile in different spaces
The voice messaging of the loudspeaker response user of isospace, and can also in real time governing response user speech information when sound it is big
It is small.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Fig. 3 is the schematic block diagram of the responding device for the user speech that one embodiment of the invention provides, for ease of description, only
Part related to the embodiment of the present invention is shown.
The responding device 3 of the user speech, which can be, to be built in terminal device (such as mobile phone, computer, notebook)
The unit of software unit, hardware cell or soft or hard combination can also be used as independent pendant and be integrated into the terminal device.
The responding device 3 of the user speech includes:
Voice messaging acquisition module 31, the voice for acquiring user for the microphone by being mounted in different spaces are believed
Breath;
The first space of user determining module 32, for obtaining acquisition when at least one microphone collects voice messaging
All voice messagings loudness value, and the space where when determining that user issues the voice messaging according to the loudness value,
Free token where when the user is issued the voice messaging is the first space;
User's first distance determining module 33, for obtaining user and issuing institute's predicate by the sensor in the first space
User is at a distance from microphone in the first space when message ceases;
User's second distance determining module 34, for confirming space that user is currently located and user and being currently located
Space in loudspeaker distance;
Respond module 35, for according to the user at a distance from microphone in the first space, the sound of the voice messaging
Angle value and the user obtain target loudness value at a distance from the loudspeaker in the space being currently located, and control the user
The loudspeaker in space being currently located responds the voice messaging of user according to the target loudness value.
Optionally, first space of user determining module 32 is specifically used for:
Space where microphone corresponding to the maximum voice messaging of loudness value in all voice messagings of acquisition is made
Space where when issuing the voice messaging for user.
Optionally, the responding device 3 further include:
User images acquisition module 36, where when determining that user issues the voice messaging according to the loudness value
Space after, user images are acquired by camera in the first space, and using the user images of acquisition as reference image.
Optionally, user's second distance determining module 34 includes:
User's second space confirmation unit 341, image for currently acquiring the camera of different spaces respectively with institute
It states and carries out the space that match cognization confirmation user is currently located referring to image;
User's second distance confirmation unit 342, the space for being currently located by user sensor confirmation user with
The distance of the loudspeaker in the space being currently located.
Optionally, the microphone, the loudspeaker and the sensor are mounted on the top in each space, the sensing
Device is rotatable sensor.
Optionally, the camera is wide-angle camera or rotatable camera.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., by the internal structure of the responding device of the user speech be divided into different functional unit or
Module, to complete all or part of the functions described above.Each functional unit in embodiment, module can integrate at one
In processing unit, it is also possible to each unit and physically exists alone, a list can also be integrated in two or more units
In member, above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.
In addition, the specific name of each functional unit, module is also only for convenience of distinguishing each other, the protection being not intended to limit this application
Range.The specific work process of unit in above-mentioned apparatus, module, can refer to corresponding processes in the foregoing method embodiment,
This is repeated no more.
Fig. 4 is the schematic block diagram for the terminal device that one embodiment of the invention provides.The terminal device 4 of the embodiment includes:
It one or more processors 40, memory 41 and is stored in the memory 41 and can be run on the processor 40
Computer program 42.The processor 40 realizes the response method of above-mentioned each user speech when executing the computer program 42
Step in embodiment, such as step S101 to S105 shown in FIG. 1.Alternatively, the processor 40 executes the computer journey
The function of each module/unit in above-mentioned terminal device embodiment, such as the function of module 31 to 35 shown in Fig. 3 are realized when sequence 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
It is true to be cut into voice messaging acquisition module, the first space of user determining module, user's first distance determining module, user's second distance
Cover half block, respond module.
The voice messaging acquisition module, the voice for acquiring user for the microphone by being mounted in different spaces are believed
Breath;
First space of user determining module, for when at least one microphone collects voice messaging, acquisition to be adopted
The loudness value of all voice messagings of collection, and the sky where when determining that user issues the voice messaging according to the loudness value
Between, the free token where when the user is issued the voice messaging is the first space;
User's first distance determining module, for obtaining described in user's sending by the sensor in the first space
User is at a distance from microphone in the first space when voice messaging;
User's second distance determining module, for confirming space that user is currently located and user and current institute
Space in loudspeaker distance;
The respond module, for according to the user at a distance from microphone in the first space, the voice messaging
Loudness value and the user obtain target loudness value at a distance from the loudspeaker in the space being currently located, and control the use
The loudspeaker in space that family is currently located responds the voice messaging of user according to the target loudness value.
Other modules or unit can refer to the description in embodiment illustrated in fig. 3, and details are not described herein.
The terminal device includes but are not limited to processor 40, memory 41.It will be understood by those skilled in the art that figure
4 be only an example of terminal device 4, does not constitute the restriction to terminal device 4, may include more more or less than illustrating
Component, perhaps combine certain components or different components, for example, the terminal device can also include input equipment, it is defeated
Equipment, network access equipment, bus etc. out.
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed terminal device, device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of response method of user speech characterized by comprising
The voice messaging of user is acquired by the microphone being mounted in different spaces;
When at least one microphone collects voice messaging, the loudness value of all voice messagings of acquisition is obtained, and according to institute
It states loudness value and determines space where when user issues the voice messaging, where when the user is issued the voice messaging
Free token be the first space;
By the sensor in the first space, user and microphone in the first space when user issues the voice messaging are obtained
Distance;
The space that is currently located of confirmation user and user are at a distance from the loudspeaker in the space being currently located;
According to the user at a distance from microphone in the first space, the loudness value of the voice messaging and the user with work as
The distance of loudspeaker in the space at preceding place obtains target loudness value, and controls raising in the space that the user is currently located
Sound device responds the voice messaging of user according to the target loudness value.
2. the response method of user speech as described in claim 1, which is characterized in that described determined according to the loudness value is used
Space where when family issues the voice messaging specifically:
Using the space where microphone corresponding to the maximum voice messaging of loudness value in all voice messagings of acquisition as use
Space where when family issues the voice messaging.
3. the response method of user speech as described in claim 1, which is characterized in that determining user according to the loudness value
After space where when issuing the voice messaging, further includes:
User images are acquired by the camera in the first space, and using the user images of acquisition as referring to image.
4. the response method of user speech as claimed in claim 3, which is characterized in that the sky that the confirmation user is currently located
Between and user include: at a distance from the loudspeaker in the space being currently located
The image that the camera of different spaces currently acquires is worked as with described referring to image progress match cognization confirmation user respectively
The space at preceding place;
The sensor confirmation user in the space being currently located by user is at a distance from the loudspeaker in the space being currently located.
5. such as the response method of the described in any item user speech of Claims 1-4, which is characterized in that the microphone, described
Loudspeaker and the sensor are mounted on the top in each space, and the sensor is rotatable sensor.
6. such as the response method of the described in any item user speech of claim 3 to 4, which is characterized in that the camera is wide
Angle camera or rotatable camera.
7. a kind of responding device of user speech characterized by comprising
Voice messaging acquisition module acquires the voice messaging of user for the microphone by being mounted in different spaces;
The first space of user determining module, for when at least one microphone collects voice messaging, obtaining all of acquisition
The loudness value of voice messaging, and the space where when determining that user issues the voice messaging according to the loudness value, will be described
Free token where when user issues the voice messaging is the first space;
User's first distance determining module, for obtaining user and issuing the voice messaging by the sensor in the first space
When user at a distance from microphone in the first space;
User's second distance determining module, the space for confirming space that user is currently located and user with being currently located
In loudspeaker distance;
Respond module, for according to the user at a distance from microphone in the first space, the loudness value of the voice messaging with
And the user obtains target loudness value at a distance from the loudspeaker in the space being currently located, and controls the current institute of the user
Space in loudspeaker according to the target loudness value respond user voice messaging.
8. the responding device of user speech as claimed in claim 7, which is characterized in that further include:
User images acquisition module, for the space where when determining that user issues the voice messaging according to the loudness value
Later, user images are acquired by the camera in the first space, and using the user images of acquisition as referring to image;
User's second distance determining module includes:
User's second space confirmation unit, the image for currently acquiring the camera of different spaces is respectively with described referring to figure
The space being currently located as carrying out match cognization confirmation user;
The sensor of user's second distance confirmation unit, the space for being currently located by user confirms user and is currently located
Space loudspeaker distance.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710822746.4A CN107968969B (en) | 2017-09-13 | 2017-09-13 | A kind of response method of user speech, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710822746.4A CN107968969B (en) | 2017-09-13 | 2017-09-13 | A kind of response method of user speech, device and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107968969A CN107968969A (en) | 2018-04-27 |
CN107968969B true CN107968969B (en) | 2019-08-20 |
Family
ID=61997525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710822746.4A Active CN107968969B (en) | 2017-09-13 | 2017-09-13 | A kind of response method of user speech, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107968969B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113568596A (en) * | 2020-04-29 | 2021-10-29 | 阿里巴巴集团控股有限公司 | Electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010103853A (en) * | 2008-10-24 | 2010-05-06 | Panasonic Corp | Sound volume monitoring apparatus and sound volume monitoring method |
CN104335559A (en) * | 2014-04-04 | 2015-02-04 | 华为终端有限公司 | Method for adjusting volume automatically, volume adjusting apparatus and electronic apparatus |
CN105513596A (en) * | 2013-05-29 | 2016-04-20 | 华为技术有限公司 | Voice control method and control device |
CN106448672A (en) * | 2016-10-27 | 2017-02-22 | Tcl通力电子(惠州)有限公司 | Sound system and control method |
-
2017
- 2017-09-13 CN CN201710822746.4A patent/CN107968969B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010103853A (en) * | 2008-10-24 | 2010-05-06 | Panasonic Corp | Sound volume monitoring apparatus and sound volume monitoring method |
CN105513596A (en) * | 2013-05-29 | 2016-04-20 | 华为技术有限公司 | Voice control method and control device |
CN104335559A (en) * | 2014-04-04 | 2015-02-04 | 华为终端有限公司 | Method for adjusting volume automatically, volume adjusting apparatus and electronic apparatus |
CN106448672A (en) * | 2016-10-27 | 2017-02-22 | Tcl通力电子(惠州)有限公司 | Sound system and control method |
Also Published As
Publication number | Publication date |
---|---|
CN107968969A (en) | 2018-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107612968A (en) | The method, equipment and system of its connected device are controlled by intelligent terminal | |
CN109188927A (en) | Appliance control method, device, gateway and storage medium | |
CN109308908A (en) | A kind of voice interactive method and device | |
CN110459222A (en) | Sound control method, phonetic controller and terminal device | |
CN107360387A (en) | Video recording method and device and terminal equipment | |
CN108269567A (en) | For generating the method, apparatus of far field voice data, computing device and computer readable storage medium | |
CN108536418A (en) | A kind of method, apparatus and wireless sound box of the switching of wireless sound box play mode | |
CN110010125A (en) | Control method and device of intelligent robot, terminal equipment and medium | |
CN110248021A (en) | A kind of smart machine method for controlling volume and system | |
CN109920419A (en) | Sound control method and device, electronic equipment and computer-readable medium | |
CN115775564B (en) | Audio processing method, device, storage medium and intelligent glasses | |
CN106572228A (en) | Volume adjusting method, volume adjusting device and mobile terminal | |
CN112989767B (en) | Medical term labeling method, medical term mapping device and medical term mapping equipment | |
CN109361994A (en) | Speaker control method, mobile terminal and computer readable storage medium | |
CN107342097A (en) | Recording method, recording device, intelligent terminal and computer readable storage medium | |
CN109872723A (en) | Building information processing method and device based on artificial intelligence | |
CN111863020A (en) | Voice signal processing method, device, equipment and storage medium | |
US9042563B1 (en) | System and method to localize sound and provide real-time world coordinates with communication | |
CN109976697A (en) | Method and device for acquiring audio data, equipment and computer-readable storage medium | |
CN115116458B (en) | Voice data conversion method, device, computer equipment and storage medium | |
CN107968969B (en) | A kind of response method of user speech, device and terminal device | |
CN115881118A (en) | Voice interaction method and related electronic equipment | |
CN209606794U (en) | A kind of wearable device, sound-box device and intelligent home control system | |
CN109363660B (en) | Heart rate monitoring method and server based on BP neural network | |
CN111951793B (en) | Method, device and storage medium for awakening word recognition |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |