CN108733341A - A kind of voice interactive method and device - Google Patents

A kind of voice interactive method and device Download PDF

Info

Publication number
CN108733341A
CN108733341A CN201810479491.0A CN201810479491A CN108733341A CN 108733341 A CN108733341 A CN 108733341A CN 201810479491 A CN201810479491 A CN 201810479491A CN 108733341 A CN108733341 A CN 108733341A
Authority
CN
China
Prior art keywords
volume
feedback
voice
interval
environmental
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.)
Granted
Application number
CN201810479491.0A
Other languages
Chinese (zh)
Other versions
CN108733341B (en
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 CN201810479491.0A priority Critical patent/CN108733341B/en
Publication of CN108733341A publication Critical patent/CN108733341A/en
Application granted granted Critical
Publication of CN108733341B publication Critical patent/CN108733341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

An embodiment of the present invention provides a kind of voice interactive method and device, this method includes:When detecting voice messaging input by user, environmental volume information is acquired;Feedback interval and feedback volume are determined according to the environmental volume information;Voice feedback is carried out to the voice messaging according to the feedback interval and the feedback volume.Therefore, scheme provided by the invention can improve interactive voice as local environment changes the ability adaptively adjusted.

Description

A kind of voice interactive method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of voice interactive method and device.
Background technology
Smart machine (such as intelligent toy, smart television, intelligent sound box etc.) due to can with user carry out interactive voice, Technology sense is stronger, therefore is applied in daily life more and more extensive.
Currently, smart machine with user carry out interactive voice when, usually after receiving the voice of user, according to pre- If feedback system (the feedback volume of setting or feedback duration) voice is fed back.But since smart machine is being applied When, may there are music, the presence of the noises such as user spoken utterances talk in residing environment.With preset feedback system When being fed back to voice, since the presence of noise in environment may cause user that the effect for getting feedback may be listened poor.
Invention content
In view of this, the present invention proposes a kind of voice interactive method and device, main purpose are that voice can be improved Interaction changes the ability adaptively adjusted with local environment.
In a first aspect, the present invention provides a kind of voice interactive method, which includes:
When detecting voice messaging input by user, environmental volume information is acquired;
Feedback interval and feedback volume are determined according to the environmental volume information;
Voice feedback is carried out to the voice messaging according to the feedback interval and the feedback volume.
Optionally,
The environmental volume information includes first environment volume;
Before acquisition environmental volume information, further comprise when detecting voice messaging input by user described:
At least one volume section is set, wherein each described volume section respectively correspond to a sample volume and One sample time interval;
It is described that feedback interval and feedback volume are determined according to the environmental volume information, including:
The target volume section for including the first environment volume is selected at least one volume section;
The corresponding sample volume in the target volume section is determined as the feedback volume;
The corresponding sample time interval in the target volume section is determined as the feedback interval.
Optionally,
It is described that voice feedback, packet are carried out to the voice messaging according to the feedback interval and the feedback volume It includes:
From detecting the voice messaging, the duration of the voice messaging is recorded;
Determine the corresponding feedback voice of the voice messaging;
Judge whether the duration is equal to the feedback interval, if so, playing the feedback voice, and broadcasts The volume for putting the feedback voice is the feedback volume.
Optionally,
The acquisition environmental volume information, including:
A1:When getting the voice messaging, the current second environment volume in environment is acquired;
A2:Judge whether the current second environment volume is more than preset volume threshold, if so, executing A3;Otherwise, Execute A4;
A3:After prefixed time interval, continue to acquire next second environment volume, and judge the number of accumulative acquisition Whether preset frequency threshold value is reached, if so, executing A4;Otherwise, current collected second environment volume is used as currently Second environment volume executes A2;
A4:Current collected second environment volume is determined as the environmental volume information.
Optionally,
It is described that voice feedback, packet are carried out to the voice messaging according to the feedback interval and the feedback volume It includes:
From determining the environmental volume information, the accumulative duration of the environmental volume information is recorded;
Determine the corresponding feedback voice of the voice messaging;
Judge whether the accumulative duration is equal to the feedback interval, if so, the feedback voice is played, And the volume for playing the feedback voice is the feedback volume.
Second aspect, the present invention provides a kind of voice interaction device, which includes:
Acquisition module, for when detecting voice messaging input by user, acquiring environmental volume information;
Determining module, the environmental volume information for being acquired according to the acquisition module determine feedback interval And feedback volume;
Feedback module, the feedback interval for being determined according to the determining module and the feedback volume pair The voice messaging that the acquisition module obtains carries out voice feedback.
Optionally,
The environmental volume information includes first environment volume;
Further comprise:Setup module;
The setup module, at least one volume section to be arranged, wherein each described volume section corresponds to respectively One sample volume and a sample time interval;
The determining module, for selected at least one volume section that the setup module is arranged including The target volume section of the first environment volume;The corresponding sample volume in the target volume section is determined as the feedback sound Amount;The corresponding sample time interval in the target volume section is determined as the feedback interval.
Optionally,
The feedback module, including:First record sub module and the first feedback submodule;
First record sub module, for from detecting the voice messaging, recording continuing for the voice messaging Duration;
The first feedback submodule, for determining the corresponding feedback voice of the voice messaging;Judge described first Whether the duration of record sub module record is equal to the feedback interval, if so, the feedback voice is played, And the volume for playing the feedback voice is the feedback volume.
The third aspect, the present invention provides a kind of storage medium, the storage medium includes the program of storage, wherein Equipment described program controls the storage medium when running where execute it is any one of above-mentioned described in voice interactive method.
Fourth aspect, the present invention provides a kind of electronic equipment, the electronic equipment includes processor, memory and total Line;The processor, the memory complete mutual communication by the bus;The processor is for calling described deposit Program instruction in reservoir, with execute it is any one of above-mentioned described in voice interactive method.
An embodiment of the present invention provides a kind of voice interactive method and devices, when detecting voice messaging input by user Acquire the environmental volume information in local environment (the environmental volume information may include environmental volume).Then according to collected Environmental volume information determines feedback interval and feedback volume.It is last according to the feedback interval determined and anti- It presents volume and carries out voice feedback for voice messaging input by user.By above-mentioned it is found that in embodiments of the present invention to user When voice messaging carries out voice feedback required feedback interval and feedback volume be with environmental volume information change, It is not fixed.Therefore, scheme provided in an embodiment of the present invention can improve interactive voice and be carried out as local environment changes The ability adaptively adjusted.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 shows a kind of flow chart of voice interactive method provided by one embodiment of the present invention;
Fig. 2 shows a kind of flow charts for voice interactive method that another embodiment of the present invention provides;
Fig. 3 shows a kind of structural schematic diagram of voice interaction device provided by one embodiment of the present invention;
Fig. 4 shows that a kind of structure of voice interaction device including setup module provided by one embodiment of the present invention is shown It is intended to;
Fig. 5 shows that one kind provided by one embodiment of the present invention includes the first record sub module and the first feedback submodule The structural schematic diagram of the voice interaction device of block;
Fig. 6 shows that one kind provided by one embodiment of the present invention includes the second record sub module and the second feedback submodule The structural schematic diagram of the voice interaction device of block;
Fig. 7 shows the structural schematic diagram of a kind of electronic equipment provided by one embodiment of the present invention.
Specific implementation mode
It is described more fully the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing this public affairs in attached drawing The exemplary embodiment opened, it being understood, however, that may be realized in various forms the disclosure without the implementation that should be illustrated here Example is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the model of the disclosure It encloses and is completely communicated to those skilled in the art.
As shown in Figure 1, an embodiment of the present invention provides a kind of voice interactive method, this method may include steps of:
Step 101:When detecting voice messaging input by user, environmental volume information is acquired;
Step 102:Feedback interval and feedback volume are determined according to the environmental volume information;
Step 103:It is anti-that voice is carried out to the voice messaging according to the feedback interval and the feedback volume Feedback.
Embodiment according to figure 1 acquires the environment in local environment when detecting voice messaging input by user Information volume (the environmental volume information may include environmental volume).Then it is determined instead according to collected environmental volume information Present time interval and feedback volume.The feedback interval and feedback sound metering pin that last basis is determined are to input by user Voice messaging carries out voice feedback.By above-mentioned it is found that carrying out voice feedback to user speech information in embodiments of the present invention The feedback interval and feedback volume of Shi Suoxu is with environmental volume information change, is not fixed.Therefore, originally The scheme that inventive embodiments provide can improve interactive voice as local environment changes the ability adaptively adjusted.
In an embodiment of the invention, when user needs to carry out interactive voice with smart machine, intelligence can be set Standby input voice information.The input method of the voice messaging can include but is not limited to:Speech recognition of the user in smart machine In the range of provide voice signal (for example, speaking), then smart machine to voice signal carry out speech recognition (speech recognition Process can be by speech recognition conversion be text, then determine effective keyword in the text), to get use The voice messaging of family input.
In an embodiment of the invention, environmental volume information involved in step 101 in flow chart shown in above-mentioned Fig. 1 It can include but is not limited to environmental volume.The environmental volume can reflect the size of noise in environment.
In an embodiment of the invention, the environmental volume information in environment can be acquired by sound collector.
In an embodiment of the invention, environmental volume involved in step 101 in the flow chart shown in above-mentioned Fig. 1 letter When breath includes first environment volume, adopted when step 101 detects voice messaging input by user in the flow chart shown in above-mentioned Fig. 1 Before collecting environmental volume information, following steps are may further include:
At least one volume section is set, wherein each described volume section respectively correspond to a sample volume and One sample time interval;
Then, the step 102 in flow chart shown in above-mentioned Fig. 1 determines feedback interval according to the environmental volume information And feedback volume, may include:
The target volume section for including the first environment volume is selected at least one volume section;
The corresponding sample volume in the target volume section is determined as the feedback volume;
The corresponding sample time interval in the target volume section is determined as the feedback interval.
In the present embodiment, the quantity in volume section and the range in each volume section can be according to business needs It determines.And the corresponding sample volume in each volume section and sample time interval can be determined according to following rule:Volume The corresponding volume in section is higher, and corresponding sample volume is higher, and corresponding sample time interval is longer.
Specifically, when first environment volume is higher, illustrate that environment is more noisy, then need higher feedback volume and Longer feedback interval.Wherein, higher feedback volume is in order to which user can also in the larger environment of noise Clearly hear voice feedback.Longer feedback interval is to consider that noise may be after feedback interval in environment There may be the probability that noise becomes smaller, so that user may hear voice feedback in the smaller environment of noise.
Specifically, when first environment volume is relatively low, illustrate that environment is more quiet, then need lower feedback volume and Shorter feedback interval.Wherein, lower feedback volume is in order to which user can be in the smaller environment of noise clearly Hear voice feedback, and simultaneously can be to avoid causing the situation of ear discomfort to occur greatly due to sound.Between shorter feedback time Every being in order to allow user to be quickly obtained voice feedback, the time of user's waiting voice feedback is reduced.
In the present embodiment, it illustrates:Volume section 1 [0,40], volume section 2 [41,60], volume section 3 are set [61,90].Wherein, the unit of each numerical value is decibel in each volume section.And 1 corresponding sample time of volume section Between be divided into that 2S and sample volume are 30 decibels, to be divided into 3S and sample volume between 2 corresponding sample time of volume section be 50 It is 70 decibels that 4S and sample volume are divided between decibel, 3 corresponding sample time of volume section.For example, the ambient sound determined Amount is 45 decibels, due to including 45 decibels in volume section 2, is then determined 2 corresponding sample time interval 3S of volume section For feedback volume and by sample volume 50 decibels be determined as feedback interval.
According to above-described embodiment, since setting one or more volumes section can after determining environmental volume Quickly to select the volume section including environmental volume, and by it is selected go out the corresponding sample volume of volume and sample Time interval is identified as feedback volume and feedback interval.It therefore, can be quick when receiving voice messaging Determine feedback volume corresponding with environmental volume and feedback interval.
In an embodiment of the invention, the step 103 in flow chart shown in above-mentioned Fig. 1 is according to the feedback interval And the feedback volume carries out voice feedback to the voice messaging, may include:
From detecting the voice messaging, the duration of the voice messaging is recorded;
Determine the corresponding feedback voice of the voice messaging;
Judge whether the duration is equal to the feedback interval, if so, playing the feedback voice, and broadcasts The volume for putting the feedback voice is the feedback volume.
In the present embodiment, it when getting voice messaging input by user, begins to record and gets voice messaging Duration.The duration of recording voice message can decide whether to play feedback response.Judging that duration do not have When equal to feedback interval, illustrate that current time does not arrive the reproduction time of feedback voice also.Judging that duration is equal to When feedback interval, then illustrate that current time has reached the reproduction time of feedback voice, then feedback voice is played out.It needs It should be noted that the volume for playing feedback voice should be feedback volume, so that user can clearly hear feedback voice.
In the present embodiment, the method for determining the corresponding feedback voice of voice messaging at least may include the following two kinds:
The voice that voice messaging includes directly is determined as feeding back voice by the first in voice repeat pattern.Than Such as, voice messaging is Good For You, due to being that voice repeat pattern is then good as feedback voice by you.
Second, in voice dialogue pattern, the keyword in voice messaging is analyzed, according to determining keyword advance The corresponding sample voice of keyword is determined in the sample voice library of setting, and feedback voice is determined according to sample voice.For example, Voice messaging is present remaining capacity is how many, it is determined that the keyword gone out is remaining capacity.Corresponding sample voice is residue Electricity is.Then it is 80% to obtain current electric quantity residue percentage, then is residue according to the feedback voice that sample voice is determined Electricity is 80%.
In the present embodiment, it illustrates:Feedback interval is 2S, feedback volume is 30 decibels, feedback voice is for you It is good.Then it is equal to feedback interval 2S in the duration for judging to get voice messaging, then plays feedback voice " hello ", And the volume for playing " hello " is 30 decibels.
According to above-described embodiment, when getting voice messaging, just record gets the duration of voice messaging.And When judging that duration is equal to feedback interval, the corresponding feedback voice of voice messaging is played to feed back volume.It therefore can To ensure that feedback voice is accurately played according to feedback interval.
In an embodiment of the invention, the acquisition environmental volume involved by the step 101 in flow chart shown in above-mentioned Fig. 1 Information may include:
A1:When getting the voice messaging, the current second environment volume in environment is acquired;
A2:Judge whether the current second environment volume is more than preset volume threshold, if so, executing A3;Otherwise, Execute A4;
A3:After prefixed time interval, continue to acquire next second environment volume, and judge the number of accumulative acquisition Whether preset frequency threshold value is reached, if so, executing A4;Otherwise, current collected second environment volume is used as currently Second environment volume executes A2;
A4:Current collected second environment volume is determined as the environmental volume information.
In the present embodiment, volume threshold can be determined according to business need.For example, the volume threshold can be to define ring The noisy volume value (such as 60 decibels) in border.
In the present embodiment, frequency threshold value can be determined according to business need.For example, the frequency threshold value can be according to voice Feedback speed is determined.When requiring voice feedback speed, the frequency threshold value is smaller.Require voice feedback speed compared with When slow, which can be arranged larger.
In the present embodiment, when getting the voice messaging, the current environment volume in environment is acquired, judges to deserve Whether preceding environmental volume is more than volume threshold.
Then illustrate that environment is more quiet when judging no more than volume threshold, carries out the related behaviour of feedback voice at this moment User can also clearly receive feedback voice when making.
Then illustrate that environment is more noisy when judging more than volume threshold, if carrying out the correlation of feedback voice at this moment Operation, then user receives the less effective of feedback voice.It should then continue to acquire in environment after prefixed time interval at this time Environmental volume, and judge whether current collected environmental volume reaches frequency threshold value.If reaching frequency threshold value, when illustrating Between it is too long, in order to ensure feedback speed then directly as environmental volume information.If not up to frequency threshold value, cycle is held The above-mentioned correlated process for judging the current environment volume and whether being more than volume threshold of row.
In the present embodiment, it illustrates:Volume threshold is 60 decibels, frequency threshold value 2, time interval 0.5S.It is obtaining When getting voice messaging, it is 70 decibels to acquire the current environment volume in environment.Then judge that current environment volume is 70 decibels big In 60 decibels of volume threshold, then continue to acquire 59 decibels of next environmental volume after 0.5S.And judge accumulative acquisition Number 2 has had reached frequency threshold value 2, then is determined as environmental volume information by 59 decibels.
According to above-described embodiment, due to utilizing the conditions such as volume threshold and frequency threshold value to collected each ambient sound Amount carries out preliminary screening, accordingly, it is determined that the environmental volume information gone out can more meet the needs of voice feedback.
In an embodiment of the invention, the step 103 in flow chart shown in above-mentioned Fig. 1 is according to the feedback interval And the feedback volume carries out voice feedback to the voice messaging, may include:
From determining the environmental volume information, the accumulative duration of the environmental volume information is recorded;
Determine the corresponding feedback voice of the voice messaging;
Judge whether the accumulative duration is equal to the feedback interval, if so, the feedback voice is played, And the volume for playing the feedback voice is the feedback volume.
In the present embodiment, institute's table in the corresponding method for feeding back voice of the voice messaging and above-described embodiment is determined That states is almost the same, will not be described in great detail here.
In the present embodiment, when determining environmental volume information, record determines the accumulative lasting of environmental volume information Duration.
In the present embodiment, it illustrates:Feedback interval is 2S, feedback volume is 30 decibels, feedback voice is for you It is good.Then when judging to determine that the accumulative duration of environmental volume information is equal to feedback interval 2S, then feedback is played Voice " hello ", and the volume for playing " hello " is 30 decibels.
According to above-described embodiment, when determining environmental volume information, record determines that the accumulative of environmental volume information is held Continuous duration, and when judging that accumulative duration is equal to feedback interval, it is corresponding to feed back volume broadcasting voice messaging Feed back voice.Therefore it can ensure that feed back voice is accurately played according to feedback interval.
In an embodiment of the invention, it can be seen that the voice interactive method can be applied from the above embodiments In various smart machines.Smart machine can not include but not limited to smart television, intelligent refrigerator, intelligent robot, intelligent hand Table, intelligent sound box, intelligent air condition, intelligent toy.
Below by taking smart machine is speaker as an example, voice interactive method is illustrated.As shown in Fig. 2, the interactive voice Method may include steps of:
Step 201:At least one volume section is set, wherein each volume section corresponds to a sample volume respectively An and sample time interval.
In this step, volume section 1 [0,40], volume section 2 [41,60], volume section 3 [61,90] are set.Its In, the unit of each numerical value is decibel in each volume section.And be divided between 1 corresponding sample time of volume section 2S with And sample volume is 30 decibels, 3S and sample volume are divided between 2 corresponding sample time of volume section is 50 decibels, volume area Between 4S and sample volume are divided between 3 corresponding sample times is 70 decibels.
Step 202:It detects whether there are voice messaging input by user, if so, executing step 203;Otherwise, continue to hold This step of row.
In this step, obtain voice messaging input by user is " present remaining capacity is how many ".
Step 203:When detecting voice messaging, the current environment volume in environment is acquired.
In this step, when getting voice messaging, it is 70 points to acquire the current environment volume in speaker local environment Shellfish.
Step 204:Judge whether current environment volume is more than preset volume threshold, if so, executing step 205;It is no Then, step 206 is executed.
In this step, volume threshold is 60 decibels, then judges that 70 decibels of current environment volume is greater than volume threshold 60 decibels, execute step 205.
Step 205:After prefixed time interval, continue to acquire next environmental volume, and judge time of accumulative acquisition Whether number reaches preset frequency threshold value, if so, executing step 206;Otherwise, using current collected environmental volume as working as Preceding environmental volume executes step 204.
In this step, frequency threshold value is 2 and time interval 0.5S.
In this step, continue to acquire 59 decibels of next environmental volume after 0.5S, and judge accumulative acquisition Number 2 has had reached frequency threshold value 2, executes step 206.
Step 206:Current collected environmental volume is determined as environmental volume information.
In this step, it is determined as environmental volume information by 59 decibels.
Step 207:The target volume section including environmental volume is selected in each volume section.
In this step, it is sound that the target volume section including 59 decibels of environmental volume is selected in each volume section Measure section 2.
Step 208:The corresponding sample volume in target volume section is determined as to feed back volume.
In this step, 2 50 decibels of corresponding sample volume of volume section is determined as feeding back volume.
Step 209:The corresponding sample time interval in target volume section is determined as feedback interval.
In this step, 2 corresponding sample time interval 3S of volume section is determined as feedback interval.
Step 210:From determining the environmental volume information, the accumulative duration of environmental volume information is recorded.
In this step, record determines the accumulative duration of 50 decibels of environmental volume information.
Step 211:Determine the corresponding feedback voice of voice messaging.
In this step, determine that the corresponding feedback voice of voice messaging is " remaining capacity 80% ".
Step 212:Judge to add up whether duration is equal to feedback interval, if so, executing step 213;Otherwise, Continue to execute step 210.
In this step, when judging that accumulative duration is equal to feedback interval 3S, step 213 is executed.
Step 213:The volume for playing feedback voice, and playing feedback voice is feedback volume.
In this step, volume when playing feedback voice " remaining capacity 80% ", and playing is that feedback volume 50 is divided Shellfish.
As shown in figure 3, an embodiment of the present invention provides a kind of voice interaction device, which includes:
Acquisition module 301, for when detecting voice messaging input by user, acquiring environmental volume information;
Determining module 302, when the environmental volume information for being acquired according to the acquisition module 301 determines feedback Between be spaced and feedback volume;
Feedback module 303, the feedback interval for being determined according to the determining module 302 and the feedback Volume carries out voice feedback to the voice messaging that the acquisition module 301 obtains.
Embodiment according to Fig.3, starts to acquire institute when detecting voice messaging input by user in acquisition module Locate the environmental volume information in environment (the environmental volume information may include environmental volume).Then determining module is according to collecting Environmental volume information determine feedback interval and feedback volume.Last feedback module is according to the feedback time determined Interval and feedback sound metering pin carry out voice feedback to voice messaging input by user.By above-mentioned it is found that implementing in the present invention When feedback module carries out voice feedback to user speech information in example required feedback interval and feedback volume be with Environmental volume information change is not fixed.Therefore, scheme provided in an embodiment of the present invention can improve interactive voice with Local environment changes the ability adaptively adjusted.
In an embodiment of the invention, the specific pattern of acquisition module 301 can be determined according to business need, for example, It can be with sound collector.
In an embodiment of the invention, as shown in figure 4, when the environmental volume information includes first environment volume, Voice interaction device may further include setup module 304;
The setup module 304, at least one volume section to be arranged, wherein each described volume section difference A corresponding sample volume and a sample time interval;
The determining module 302, for being selected at least one volume section that the setup module 304 is arranged Go out the target volume section for including the first environment volume;The corresponding sample volume in the target volume section is determined as described Feed back volume;The corresponding sample time interval in the target volume section is determined as the feedback interval.
In an embodiment of the invention, as shown in figure 5, the feedback module 303 may include:First record sub module 3031 and first feedback submodule 3032;
First record sub module 3031, for from detecting the voice messaging, recording the voice messaging Duration;
The first feedback submodule 3032, for determining the corresponding feedback voice of the voice messaging;Described in judgement Whether the duration of the first record sub module 3031 record is equal to the feedback interval, if so, described in playing Voice is fed back, and the volume for playing the feedback voice is the feedback volume.
In an embodiment of the invention, the acquisition module 301, for executing A1 to A4:
A1:When getting the voice messaging, the current second environment volume in environment is acquired;
A2:Judge whether the current second environment volume is more than preset volume threshold, if so, executing A3;Otherwise, Execute A4;
A3:After prefixed time interval, continue to acquire next second environment volume, and judge the number of accumulative acquisition Whether preset frequency threshold value is reached, if so, executing A4;Otherwise, current collected second environment volume is used as currently Second environment volume executes A2;
A4:Current collected second environment volume is determined as the environmental volume information.
In an embodiment of the invention, as shown in fig. 6, the feedback module 303 may include:Second record sub module 3033 and second feedback submodule 3034;
Second record sub module 3033, for from determining the environmental volume information, recording the ambient sound Measure the accumulative duration of information;
The second feedback submodule 3034, for determining the corresponding feedback voice of the voice messaging;Described in judgement Whether the accumulative duration of the second record sub module 3033 record is equal to the feedback interval, if so, playing The feedback voice, and the volume for playing the feedback voice is the feedback volume.
A kind of storage medium is provided in one embodiment of the invention, the storage medium includes the program of storage, wherein Equipment where controlling the storage medium when described program is run execute it is any one of above-mentioned described in voice interactive method.
A kind of electronic equipment is provided in one embodiment of the invention, as shown in fig. 7, the electronic equipment includes processing Device 401, memory 402 and bus 403;The processor 401 and the memory 402 are completed mutually by the bus 403 Between communication;The processor 401 is used to call the program instruction in the memory 403, any one of above-mentioned to execute The voice interactive method.
The contents such as the information exchange between each unit, implementation procedure in above-mentioned apparatus, due to implementing with the method for the present invention Example is based on same design, and particular content can be found in the narration in the method for the present invention embodiment, and details are not described herein again.
The each embodiment of the present invention at least has the advantages that:
1, in embodiments of the present invention, the ambient sound in local environment is acquired when detecting voice messaging input by user Measure information (the environmental volume information may include environmental volume).Then it determines to feed back according to collected environmental volume information Time interval and feedback volume.The feedback interval and feedback sound metering pin that last basis is determined are to language input by user Message breath carries out voice feedback.By above-mentioned it is found that when carrying out voice feedback to user speech information in embodiments of the present invention Required feedback interval and feedback volume is with environmental volume information change, is not fixed.Therefore, this hair The scheme that bright embodiment provides can improve interactive voice as local environment changes the ability adaptively adjusted.
2, in embodiments of the present invention, due to the one or more volume sections of setting, determine environmental volume it Afterwards, can quickly select the volume section including environmental volume, and by it is selected go out the corresponding sample volume of volume with And sample time interval is identified as feedback volume and feedback interval.It therefore, can be with when receiving voice messaging Quickly determine feedback volume corresponding with environmental volume and feedback interval.
3, in embodiments of the present invention, when getting voice messaging, just record gets the duration of voice messaging. And when judging that duration is equal to feedback interval, the corresponding feedback voice of voice messaging is played to feed back volume.Cause This can ensure that feed back voice is accurately played according to feedback interval.
4, in embodiments of the present invention, due to utilizing the conditions such as volume threshold and frequency threshold value to collected each ring Border volume carries out preliminary screening, accordingly, it is determined that the environmental volume information gone out can more meet the needs of voice feedback.
5, in embodiments of the present invention, when determining environmental volume information, record determines the tired of environmental volume information Duration is counted, and when judging that accumulative duration is equal to feedback interval, voice messaging pair is played to feed back volume The feedback voice answered.Therefore it can ensure that feed back voice is accurately played according to feedback interval.
6, in embodiments of the present invention, when acquisition module gets voice messaging input by user, acquisition module starts Acquire the environmental volume information in local environment (the environmental volume information may include environmental volume).Then determining module according to Collected environmental volume information determines feedback interval and feedback volume.Last feedback module is anti-according to what is determined It presents time interval and feedback sound metering pin and voice feedback is carried out to voice messaging input by user.By above-mentioned it is found that in we When feedback module carries out voice feedback to user speech information in case required feedback interval and feedback volume be with Environmental volume information change is not fixed.Therefore, scheme provided by the invention can improve interactive voice with residing ring Border changes the ability adaptively adjusted.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non- It is exclusive to include, so that the process, method, article or equipment including a series of elements includes not only those elements, But also include other elements that are not explicitly listed, or further include solid by this process, method, article or equipment Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged Except there is also other identical factors in the process, method, article or apparatus that includes the element.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in computer-readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light In the various media that can store program code such as disk.
Finally, it should be noted that:The foregoing is merely presently preferred embodiments of the present invention, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention, Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.

Claims (10)

1. a kind of voice interactive method, which is characterized in that including:
When detecting voice messaging input by user, environmental volume information is acquired;
Feedback interval and feedback volume are determined according to the environmental volume information;
Voice feedback is carried out to the voice messaging according to the feedback interval and the feedback volume.
2. according to the method described in claim 1, it is characterized in that,
The environmental volume information includes first environment volume;
Before acquisition environmental volume information, further comprise when detecting voice messaging input by user described:
At least one volume section is set, wherein each described volume section corresponds to a sample volume and one respectively Sample time interval;
It is described that feedback interval and feedback volume are determined according to the environmental volume information, including:
The target volume section for including the first environment volume is selected at least one volume section;
The corresponding sample volume in the target volume section is determined as the feedback volume;
The corresponding sample time interval in the target volume section is determined as the feedback interval.
3. method according to claim 1 or 2, which is characterized in that
It is described that voice feedback is carried out to the voice messaging according to the feedback interval and the feedback volume, including:
From detecting the voice messaging, the duration of the voice messaging is recorded;
Determine the corresponding feedback voice of the voice messaging;
Judge whether the duration is equal to the feedback interval, if so, playing the feedback voice, and plays institute The volume for stating feedback voice is the feedback volume.
4. according to the method described in claim 1, it is characterized in that,
The acquisition environmental volume information, including:
A1:When getting the voice messaging, the current second environment volume in environment is acquired;
A2:Judge whether the current second environment volume is more than preset volume threshold, if so, executing A3;Otherwise, it executes A4;
A3:After prefixed time interval, continue to acquire next second environment volume, and whether judge the accumulative number acquired Reach preset frequency threshold value, if so, executing A4;Otherwise, by current collected second environment volume as current second Environmental volume executes A2;
A4:Current collected second environment volume is determined as the environmental volume information.
5. according to the method described in claim 4, it is characterized in that,
It is described that voice feedback is carried out to the voice messaging according to the feedback interval and the feedback volume, including:
From determining the environmental volume information, the accumulative duration of the environmental volume information is recorded;
Determine the corresponding feedback voice of the voice messaging;
Judge whether the accumulative duration is equal to the feedback interval, if so, playing the feedback voice, and broadcasts The volume for putting the feedback voice is the feedback volume.
6. a kind of voice interaction device, which is characterized in that including:
Acquisition module, for when detecting voice messaging input by user, acquiring environmental volume information;
Determining module, the environmental volume information for being acquired according to the acquisition module determine feedback interval and Feed back volume;
Feedback module, the feedback interval and the feedback volume for being determined according to the determining module are to described The voice messaging that acquisition module obtains carries out voice feedback.
7. device according to claim 6, which is characterized in that
The environmental volume information includes first environment volume;
Further comprise:Setup module;
The setup module, at least one volume section to be arranged, wherein each described volume section corresponds to one respectively Sample volume and a sample time interval;
The determining module, for being selected including described at least one volume section that the setup module is arranged The target volume section of first environment volume;The corresponding sample volume in the target volume section is determined as the feedback volume; The corresponding sample time interval in the target volume section is determined as the feedback interval.
8. the device described according to claim 6 or 7, which is characterized in that
The feedback module, including:First record sub module and the first feedback submodule;
First record sub module, for from detecting the voice messaging, recording the duration of the voice messaging;
The first feedback submodule, for determining the corresponding feedback voice of the voice messaging;Judge first record Whether the duration of submodule record is equal to the feedback interval, if so, playing the feedback voice, and broadcasts The volume for putting the feedback voice is the feedback volume.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require 1 to the interactive voice side described in any one of claim 5 Method.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor, memory and bus;The processing Device, the memory complete mutual communication by the bus;The processor is used to call the journey in the memory Sequence instructs, with the voice interactive method described in any one of perform claim requirement 1 to claim 5.
CN201810479491.0A 2018-05-18 2018-05-18 Voice interaction method and device Active CN108733341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810479491.0A CN108733341B (en) 2018-05-18 2018-05-18 Voice interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810479491.0A CN108733341B (en) 2018-05-18 2018-05-18 Voice interaction method and device

Publications (2)

Publication Number Publication Date
CN108733341A true CN108733341A (en) 2018-11-02
CN108733341B CN108733341B (en) 2021-09-14

Family

ID=63937655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810479491.0A Active CN108733341B (en) 2018-05-18 2018-05-18 Voice interaction method and device

Country Status (1)

Country Link
CN (1) CN108733341B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113497A (en) * 2019-04-12 2019-08-09 深圳壹账通智能科技有限公司 Voice calling-out method, device and terminal based on interactive voice
CN110224904A (en) * 2019-06-06 2019-09-10 腾讯科技(深圳)有限公司 Method of speech processing, device, computer readable storage medium and computer equipment
CN112162639A (en) * 2020-10-12 2021-01-01 上海大学 Electronic warfare equipment simulation training man-machine interaction collaboration system
CN112447181A (en) * 2020-11-16 2021-03-05 珠海格力电器股份有限公司 Voice interaction method and device, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075606A (en) * 2010-12-09 2011-05-25 深圳桑菲消费通信有限公司 Method for automatically changing mobile phone ring volume according to environment noise volume
CN102761721A (en) * 2011-04-27 2012-10-31 海尔集团公司 Volume control method and system for TV
US20140088955A1 (en) * 2012-09-24 2014-03-27 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN105227741A (en) * 2015-08-19 2016-01-06 上海海漾软件技术有限公司 A kind of smart machine carries out method and the device of volume prompting
CN106970774A (en) * 2017-03-29 2017-07-21 广州阿里巴巴文学信息技术有限公司 A kind of volume adjustment device and method, a kind of terminal
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal
CN107766030A (en) * 2017-11-13 2018-03-06 百度在线网络技术(北京)有限公司 Volume adjusting method, device, equipment and computer-readable medium
CN107908388A (en) * 2017-11-17 2018-04-13 珠海市魅族科技有限公司 Method for controlling volume and device, computer installation and computer-readable recording medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075606A (en) * 2010-12-09 2011-05-25 深圳桑菲消费通信有限公司 Method for automatically changing mobile phone ring volume according to environment noise volume
CN102761721A (en) * 2011-04-27 2012-10-31 海尔集团公司 Volume control method and system for TV
US20140088955A1 (en) * 2012-09-24 2014-03-27 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN105227741A (en) * 2015-08-19 2016-01-06 上海海漾软件技术有限公司 A kind of smart machine carries out method and the device of volume prompting
CN106970774A (en) * 2017-03-29 2017-07-21 广州阿里巴巴文学信息技术有限公司 A kind of volume adjustment device and method, a kind of terminal
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal
CN107766030A (en) * 2017-11-13 2018-03-06 百度在线网络技术(北京)有限公司 Volume adjusting method, device, equipment and computer-readable medium
CN107908388A (en) * 2017-11-17 2018-04-13 珠海市魅族科技有限公司 Method for controlling volume and device, computer installation and computer-readable recording medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113497A (en) * 2019-04-12 2019-08-09 深圳壹账通智能科技有限公司 Voice calling-out method, device and terminal based on interactive voice
WO2020207025A1 (en) * 2019-04-12 2020-10-15 深圳壹账通智能科技有限公司 Outbound voice calling method and device employing voice interaction, and terminal
CN110113497B (en) * 2019-04-12 2022-01-11 深圳壹账通智能科技有限公司 Voice call-out method, device, terminal and storage medium based on voice interaction
CN110224904A (en) * 2019-06-06 2019-09-10 腾讯科技(深圳)有限公司 Method of speech processing, device, computer readable storage medium and computer equipment
CN112162639A (en) * 2020-10-12 2021-01-01 上海大学 Electronic warfare equipment simulation training man-machine interaction collaboration system
CN112162639B (en) * 2020-10-12 2021-11-30 上海大学 Electronic warfare equipment simulation training man-machine interaction collaboration system
CN112447181A (en) * 2020-11-16 2021-03-05 珠海格力电器股份有限公司 Voice interaction method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN108733341B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN108733341A (en) A kind of voice interactive method and device
CN102907077B (en) For the system and method for the intelligent audio record of mobile device
JP2019117623A (en) Voice dialogue method, apparatus, device and storage medium
EP3611724A1 (en) Voice response method and device, and smart device
CN107580113B (en) Reminding method, device, storage medium and terminal
CN101313483B (en) Configuration of echo cancellation
CN104756473B (en) Handle concurrent voice
CN109977218B (en) A kind of automatic answering system and method applied to session operational scenarios
CN107995360B (en) Call processing method and related product
US20040186712A1 (en) Apparatus and method for providing voice recognition for multiple speakers
US11587560B2 (en) Voice interaction method, device, apparatus and server
US20200265843A1 (en) Speech broadcast method, device and terminal
MX2008016354A (en) Detecting an answering machine using speech recognition.
CN111294471B (en) Intelligent telephone answering method and system
CN107870759A (en) A kind of audio control method and device
CN107591150A (en) Audio recognition method and device, computer installation and computer-readable recording medium
CN107656977A (en) The acquisition of multimedia file and player method and device
CN110349579A (en) Voice wakes up processing method and processing device, electronic equipment and storage medium
CN104092809A (en) Communication sound recording method and recorded communication sound playing method and device
CN101867742A (en) Television system based on sound control
CN111833875B (en) Embedded voice interaction system
CN109686372B (en) Resource playing control method and device
CN106953962A (en) A kind of call recording method and device
EP4289129A1 (en) Systems and methods of handling speech audio stream interruptions
CN109584877B (en) Voice interaction control method and device

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