CN108810739A - A kind of speech playing method and device, storage medium, electronic equipment - Google Patents
A kind of speech playing method and device, storage medium, electronic equipment Download PDFInfo
- Publication number
- CN108810739A CN108810739A CN201810497190.0A CN201810497190A CN108810739A CN 108810739 A CN108810739 A CN 108810739A CN 201810497190 A CN201810497190 A CN 201810497190A CN 108810739 A CN108810739 A CN 108810739A
- Authority
- CN
- China
- Prior art keywords
- voice
- sample
- adjustment parameter
- volume
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000007613 environmental effect Effects 0.000 claims description 22
- 230000005856 abnormality Effects 0.000 claims description 21
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 241000208340 Araliaceae Species 0.000 claims description 5
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 5
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 5
- 235000008434 ginseng Nutrition 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 2
- 230000005611 electricity Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 239000007787 solid Substances 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
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The present invention provides a kind of speech playing method and device, storage medium, electronic equipment, this method is applied in voice playing equipment, and this method includes:When determination needs to play voice, voice adjustment parameter is acquired;The voice adjustment parameter is for the case where describing the external environment being presently in;Broadcast sound volume is determined according to the voice adjustment parameter;The broadcasting voice is played according to the broadcast sound volume.Therefore, scheme provided by the invention can improve the ability that speech play volume adaptively adjusts.
Description
Technical field
The present embodiments relate to field of computer technology, more particularly to a kind of speech playing method and device, storage
Medium, electronic equipment.
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 can play oneself state information and can engage in the dialogue with user, but either broadcast
When putting oneself state information and still engaging in the dialogue with user, the voice played out is usually constant volume.And smart machine is usual
It applies in different scenes, since different scenes has varying environment factor (such as time, environmental noise etc.), in difference
Scene in using constant volume play voice when, may in the scene having user listen the effect for getting voice it is poor (for example,
In the scene having, the constant volume is comparatively larger, may cause to frighten to user;The constant volume in the scene having
Comparatively smaller, user, which cannot clearly listen, gets voice).
During carrying out innovation and creation, inventor has found the energy that existing mode speech play volume adaptively adjusts
Power is poor.
Invention content
In view of this, the embodiment of the present invention proposes a kind of speech playing method and device, storage medium, electronic equipment,
Main purpose is that the ability that speech play volume adaptively adjusts can be improved.
In a first aspect, an embodiment of the present invention provides a kind of speech playing method, it is applied in voice playing equipment, the party
Method may include steps of:
When determination needs to play voice, voice adjustment parameter is acquired;The voice adjustment parameter is for describing current institute
The case where external environment at place;
Broadcast sound volume is determined according to the voice adjustment parameter;
The broadcasting voice is played according to the broadcast sound volume.
Optionally,
It is described that broadcast sound volume is determined according to the voice adjustment parameter when the voice adjustment parameter is a kind of, including:
According to the voice adjustment parameter, determination includes that the voice adjusts ginseng in several first sample parameter sections
Several target first sample parameter sections;Wherein, several described first sample parameter sections are to be adjusted to join according to the voice
It is several and pre-set, the range for describing the voice adjustment parameter, each first sample parameter section difference
A corresponding sample volume;
The corresponding sample volume in the target first sample parameter section is determined as the broadcast sound volume.
Optionally,
It is described that broadcast sound volume is determined according to the voice adjustment parameter when the voice adjustment parameter is at least two,
Including:
According to the voice adjustment parameter, determination includes the voice tune in several N the second sample parameters of grade sections
Save target N the second sample parameters of grade section of parameter;Wherein, several described N the second sample parameters of grade sections are according to
Voice adjustment parameter and pre-set, the range for describing the voice adjustment parameter, each N grades of second sample
Parameter section corresponds to a sample volume respectively, and the N is used for the type of description sound adjustment parameter;
The corresponding sample volume in the second sample parameter of target N grades section is determined as the broadcast sound volume.
Optionally,
The determination needs to play voice, including:
When the object component in detecting the speech ciphering equipment is abnormal, it is determined that need to play the object component
Corresponding preset abnormality voice;The abnormality voice is in abnormality for describing the object component.
Optionally,
The determination needs to play voice, including:
Voice messaging input by user is being carried out to parse and after determining corresponding feedback voice, it is determined that need to play institute
State feedback voice.
Optionally,
At least one voice adjustment parameter, including:At least one of light intensity value, environmental volume and time or
It is a variety of.
Second aspect, an embodiment of the present invention provides a kind of voice playing device, which includes:
Acquisition module, for when determination needs to play voice, acquiring voice adjustment parameter;The voice adjustment parameter is used
In description be presently in external environment the case where;
Volume determining module, the voice adjustment parameter for being acquired according to the acquisition module determine broadcast sound volume;
Playing module, it is true that the broadcast sound volume for being determined according to the volume determining module plays the acquisition module
The broadcasting voice made.
Optionally,
When the voice adjustment parameter is a kind of,
The volume determining module is used for according to the voice adjustment parameter, in several first sample parameter sections
Determination includes the target first sample parameter section of the voice adjustment parameter;Wherein, several described first sample parameter regions
Between be pre-set, the range for describing the voice adjustment parameter, each institute according to the voice adjustment parameter
It states first sample parameter section and corresponds to a sample volume respectively;By the corresponding sample sound in the target first sample parameter section
Amount is determined as the broadcast sound volume.
Optionally,
When the voice adjustment parameter is at least two,
The volume determining module is used for according to the voice adjustment parameter, in several N the second sample parameters of grade sections
Middle determination includes target N the second sample parameters of grade section of the voice adjustment parameter;Wherein, several described N second samples of grade
This parameter section is pre-set, the range for describing the voice adjustment parameter according to the voice adjustment parameter,
Each N grades of second sample parameter section corresponds to a sample volume respectively, and the N is used for description sound adjustment parameter
Type;The corresponding sample volume in the second sample parameter of target N grades section is determined as the broadcast sound volume.
The third aspect, an embodiment of the present invention provides a kind of storage medium, the storage medium includes the program of storage,
In, equipment where the storage medium is controlled when described program is run execute it is any one of above-mentioned described in speech play side
Method.
Fourth aspect, an embodiment of the present invention provides a kind of electronic equipment, the electronic equipment includes processor, storage
Device and bus;The processor, the memory complete mutual communication by the bus;The processor is for calling
Program instruction in the memory, with execute it is any one of above-mentioned described in speech playing method.
An embodiment of the present invention provides a kind of speech playing method and device, storage medium, electronic equipments, are needed determining
When playing voice, one or more voice adjustment parameters (extraneous ring that the voice adjustment parameter is used to describe to be presently in is acquired
The case where border, and voice adjustment parameter can be light intensity value, environmental volume and one or more in the time).Then root
Broadcast sound volume is determined according to voice adjustment parameter is collected, and voice is played according to broadcast sound volume.By it is above-mentioned it is found that
The broadcast sound volume that voice is played in the embodiment of the present invention is changed as voice adjustment parameter changes, and is not fixed.
Therefore, scheme provided in an embodiment of the present invention can improve the ability that speech play volume adaptively adjusts.
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 speech playing method provided by one embodiment of the present invention;
Fig. 2 shows a kind of flow charts for speech playing method that another embodiment of the present invention provides;
Fig. 3 shows a kind of structural schematic diagram of voice playing device provided by one embodiment of the present invention;
Fig. 4 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 speech playing method, this method may include steps of:
Step 101:When determination needs to play voice, voice adjustment parameter is acquired;The voice adjustment parameter is for retouching
The case where stating the external environment being presently in;
Step 102:Broadcast sound volume is determined according to the voice adjustment parameter;
Step 103:The broadcasting voice is played according to the broadcast sound volume.
Embodiment according to figure 1 acquires one or more voice adjustment parameters when determination needs to play voice
(the voice adjustment parameter for the external environment being presently in describe the case where, and voice adjustment parameter can for light intensity value,
Environmental volume and one or more in the time).Then basis collects voice adjustment parameter and determines broadcast sound volume, and root
Voice is played according to broadcast sound volume.By it is above-mentioned it is found that in embodiments of the present invention play voice broadcast sound volume be with
Voice adjustment parameter change and change, be not fixed.Therefore, scheme provided in an embodiment of the present invention can improve voice
The ability that broadcast sound volume adaptively adjusts.
In an embodiment of the invention, realize that the step 101 in flow chart shown in above-mentioned Fig. 1 determines the side for playing voice
Method includes at least the following two kinds:
Method one, in an embodiment of the invention, the step 101 in flow chart shown in above-mentioned Fig. 1, which determines, plays voice,
May include:
When the object component in detecting the speech ciphering equipment is abnormal, it is determined that need to play the object component
Corresponding preset abnormality voice;The abnormality voice is in abnormality for describing the object component
In the present embodiment, the type of element to be monitored can be determined according to specific business need.For example, in the voice
When playback method is applied in smart machine, element to be monitored is the element in smart machine.Each element to be monitored corresponds to
Abnormality voice can also be determined according to business need.
Specifically, it illustrates:When the speech playing method is applied in intelligent sound box, element to be monitored may include
But be not limited to main control chip, accumulator etc..For example, the abnormality voice of main control chip is " temperature anomaly ";Accumulator it is different
Normal state is " electricity is low ".For example it in power threshold of the electricity for monitoring element " accumulator " to be monitored less than setting, determines
Go out accumulator exception, it is determined that need to play the corresponding abnormality voice " electricity is low " of accumulator.
According to above-described embodiment, each element to be monitored is monitored, at monitoring when element exception to be monitored, by member to be monitored
The corresponding abnormality voice of part is determined as playing voice.It can be seen that playing the determination of voice and the abnormality of element to be monitored has
It closes, it is thereby achieved that the early warning of element to be monitored.
Method two, the step 101 in flow chart shown in above-mentioned Fig. 1, which determines, plays voice, may include:
Voice messaging input by user is being carried out to parse and after determining corresponding feedback voice, it is determined that need to play institute
State feedback voice.
In the present embodiment, it parses the voice messaging, and according to the voice messaging after parsing determines to be directed to described
The method of the broadcasting voice of voice messaging at least exists following two:
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 you are then determined as well feeding back voice by voice repeat pattern, and determination needs to play you
It is good.
Second, in voice dialogue pattern, voice messaging can be converted to text, language is then parsed from text
Message ceases the keyword for including.Then the corresponding sample of keyword is determined in preset sample voice library according to keyword
This voice determines that sample voice is feedback voice.For example, voice messaging is present remaining capacity is how many, it is determined that the pass gone out
Key word is remaining capacity.Corresponding sample voice is " remaining capacity is ".Then it is 80% to obtain current electric quantity residue percentage,
Then need to play voice " remaining capacity 80% " according to sample voice determination.
According to above-described embodiment, due to can determine to be directed to voice messaging according to voice messaging input by user
Voice is played, to realize human-computer dialogue.Therefore higher with the interaction capabilities of user.
In an embodiment of the invention, at least one voice involved by the step 102 in flow chart shown in above-mentioned Fig. 1
Adjustment parameter may include:At least one of light intensity value, environmental volume and time are a variety of.
In the present embodiment, at least one voice adjustment parameter can include but is not limited to light intensity value, environmental volume with
And at least one of time or a variety of.Light intensity value, environmental volume and time are preferred mode, can also be according to tool
The business need of body is accordingly increased and is deleted.
According to above-described embodiment, determine that voice adjustment parameter may include light intensity value, ambient sound according to business need
At least one of amount and time are a variety of.Therefore, business is with strong applicability.
In an embodiment of the invention, the voice adjustment parameter in the flow chart described in above-mentioned Fig. 1 involved by step 102
When being a kind of, the step 103 in flow chart shown in above-mentioned Fig. 1 is determined to play sound according at least one voice adjustment parameter
It measures, may include:
According to the voice adjustment parameter, determination includes that the voice adjusts ginseng in several first sample parameter sections
Several target first sample parameter sections;Wherein, several described first sample parameter sections are to be adjusted to join according to the voice
It is several and pre-set, the range for describing the voice adjustment parameter, each first sample parameter section difference
A corresponding sample volume;
The corresponding sample volume in the target first sample parameter section is determined as the broadcast sound volume.In the present embodiment
In, when voice adjustment parameter is only the time, at least one sample time section can be set, wherein each sample time
Section corresponds to first sample volume respectively.For example sample time section is divided according to the period of day and night,
Wherein, the corresponding sample volume in the sample time section on daytime can be higher.User may rest when in view of night, therefore
The corresponding sample volume in sample time section at night can be relatively low.
It illustrates:Provided with sample time section 1 [9:00-22:00] and sample time section 2 (22:00-9:
00).Wherein, 1 corresponding sample volume of sample time section is 50 decibels, and 2 corresponding sample volume of sample time section is 30
Decibel.Collected current time is 11:00, it is seen that 11:00 is included in sample time section 1.Then by sample time section 1
It is determined as target sample time interval, and 1 50 decibels of corresponding sample volume of sample time section is determined as broadcast sound volume.
In the present embodiment, when voice adjustment parameter is only environmental volume, at least one sample volume area can be set
Between.Wherein, each sample volume section corresponds to first sample volume respectively.Sample sound is divided according to volume
Measure section, wherein the corresponding volume in sample volume section is higher, and corresponding first sample volume is higher.
It illustrates:Provided with sample volume section 1 [0,40], sample volume section 2 [41,60], sample volume section 3
[61,90].Wherein, the unit of each numerical value is decibel in each sample volume section.And sample volume section 1 is corresponding
Sample volume is 30 decibels, 2 corresponding sample volume of sample volume section is 50 decibels, 3 corresponding sample of sample volume section
Volume is 70 decibels.Collected current environment volume is 43 decibels, it is seen that 43 decibels are included in sample volume section 2, then
Sample volume section 2 is determined as target sample volume section, and 50 decibels of 2 corresponding sample volume of sample volume section is true
It is set to broadcast sound volume.
In the present embodiment, when voice adjustment parameter is only light intensity value, at least one sample luminous intensity can be set
It is worth section, wherein each sample light intensity value section corresponds to first sample volume respectively.According to light intensity value size
To divide sample volume section, wherein the corresponding light intensity value in sample light intensity value section is higher, corresponding first sample sound
Amount is higher.When light intensity value is high, explanation opens the lighting apparatus such as lamp in daytime or user, and user is in such luminous intensity
The possibility rested under value is relatively low, therefore the setting of corresponding first sample volume is higher.Illustrate when light intensity value is low
Curtain in the spaces such as the room that night or user close, the possibility that user rests under such light intensity value
It is higher, therefore the setting of corresponding first sample volume is relatively low.
It illustrates:Provided with sample light intensity value section 1 [0.001,5] and sample light intensity value section 2 (5,
109].Wherein, the unit of each numerical value is lux in each sample light intensity value section.And sample light intensity value section 1
Corresponding sample volume is 30 decibels, 2 corresponding sample volume of sample light intensity value section is 50 decibels.It is collected to work as front ring
Border volume is 3 luxs, it is seen that 3 luxs are included in sample light intensity value section 1, then sample light intensity value section 1 is true
It is set to target sample light intensity value section, and 1 30 decibels of corresponding sample volume of sample light intensity value section is determined as playing
Volume.
According to above-described embodiment, when due to voice adjustment parameter being a kind of, according to voice adjustment parameter, several first
Determination includes the target first sample parameter section of voice adjustment parameter in sample parameter section.Therefore voice adjusting is being collected
After parameter (one kind in light intensity value, time and environmental volume), can quickly it select including voice adjustment parameter
Sample parameter section, and by it is selected go out the corresponding sample volume in sample parameter section be determined as broadcast sound volume.Therefore, exist
Broadcast sound volume corresponding with voice adjustment parameter can be quickly determined when collecting voice adjustment parameter.
In an embodiment of the invention, the voice adjustment parameter in the flow chart described in above-mentioned Fig. 1 involved by step 102
When being at least two, the step 103 in flow chart shown in above-mentioned Fig. 1 is determined to broadcast according at least one voice adjustment parameter
Playback amount may include:
According to the voice adjustment parameter, determination includes the voice tune in several N the second sample parameters of grade sections
Save target N the second sample parameters of grade section of parameter;Wherein, several described N the second sample parameters of grade sections are according to
Voice adjustment parameter and pre-set, the range for describing the voice adjustment parameter, each N grades of second sample
Parameter section corresponds to a sample volume respectively, and the N is used for the type of description sound adjustment parameter;
The corresponding sample volume in the second sample parameter of target N grades section is determined as the broadcast sound volume.
In the present embodiment, when voice adjustment parameter includes time and light intensity value, the time can correspond at least one
Sample time section;Light intensity value can correspond at least one sample light intensity value section.Wherein, each sample time section
There are corresponding at least one sample light intensity value section at least one sample light intensity value section, and each sample light
There are corresponding at least one sample time sections at least one sample time section in intensity value section.There are correspondences
Sample time section and sample light intensity value section correspond to the same sample volume, and there are the sample times of correspondence
Section and sample light intensity value section form several times and the second sample parameter of light intensity level section.
It illustrates:Provided with sample time section 1 [9:00-22:00] and sample time section 2 (22:00-9:
00), be provided with this light intensity value section 1 [0.001,5], sample light intensity value section 2 (5,50], sample light intensity value section 3
(50,109].Corresponding relationship between each sample time section and each sample light intensity value section is as shown in Table-1.
Table -1
For example, collected current time is 11:00, current light intensity angle value is 45 luxs, then according to shown in table -1
Correspondence determines that sample time section 1 and sample light intensity value section 2 are target interval, then by sample volume 40
Decibel is determined as broadcast sound volume.
In the present embodiment, when voice adjustment parameter includes time and environmental volume, the time can correspond at least one
Sample time section;Environmental volume can correspond at least one sample volume section.Wherein, each sample time section is extremely
There are corresponding at least one sample volume sections in a few sample volume section, and each sample volume section is at least
There are corresponding at least one sample time sections in one sample time section.There are the sample time section of correspondence and
Sample volume section corresponds to the same sample volume, and there are the sample time sections of correspondence and sample volume value section
Form several " time and volume " second sample parameter of grade sections.
It illustrates:Provided with sample time section 1 [9:00-22:00] and sample time section 2 (22:00-9:
00) sample volume section 1 [0,30], sample volume section 2 [31,60], sample volume section 3 [61,90], are provided with.It is each
Corresponding relationship between sample time section and each sample volume section is as shown in table -2.
Table -2
For example, collected current time is 11:00, current light intensity angle value environmental volume is 50 decibels, then according to table -2
Shown in correspondence, determine that sample time section 1 and sample volume section 2 are target interval, then by sample volume
40 decibels are determined as broadcast sound volume.
In the present embodiment, when voice adjustment parameter includes light intensity value and environmental volume, light intensity value can correspond to
At least one sample light intensity value section;Environmental volume can correspond at least one sample volume section.Wherein, each sample
Time interval at least one sample volume section there are corresponding at least one sample volume section, and each sample sound
Measuring section, there are corresponding at least one sample light intensity value sections at least one sample light intensity value section.There are correspondences
The sample light intensity value section and sample volume section of relationship correspond to the same sample volume, and there are the samples of correspondence
Light intensity value section and sample volume value section form several " light intensity value and volume " second sample parameter of grade sections.
It illustrates:
Table -3
For example, collected current light intensity angle value is 45 luxs, current environment volume is 50 decibels, then according to -3 institute of table
The correspondence shown determines that sample light intensity value section 2 and sample volume section 2 are target interval, then by sample sound
40 decibels of amount is determined as broadcast sound volume.
In the present embodiment, when voice adjustment parameter includes time, light intensity value and environmental volume,
Time can correspond at least one sample time section;Environmental volume can correspond at least one sample volume area
Between;Light intensity value can correspond at least one sample light intensity value section.Wherein, each sample time section is at least one
There are corresponding at least one sample volume section and at least one sample light intensity value section in sample volume section
There are corresponding at least one sample light intensity value sections.Each sample volume section is at least one sample time section
There are corresponding at least one sample time section and at least one sample light intensity value section there are it is corresponding at least
One sample light intensity value section.There are corresponding at least one sample time section in each sample light intensity value section
At least one sample time section and there are corresponding at least one sample volume areas at least one sample volume section
Between.There are sample light intensity value section, sample volume section and the sample luminous intensities of correspondence to correspond to the same sample
Volume, and there are sample light intensity value section, sample volume value section and the sample time section of correspondence formed it is several
A " time, light intensity value and volume " the second sample parameter of grade section.
It illustrates:Provided with sample time section 1 [9:00-22:00] and sample time section 2 (22:00-9:
00), be provided with this light intensity value section 1 [0.001,5], sample light intensity value section 2 (5,50], sample light intensity value section 3
(50,109].Provided with sample volume section 1 [0,30], sample volume section 2 [31,60], sample volume section 3 [61,90].
Corresponding relationship between each sample time section, each sample light intensity value section and each sample volume section is such as
Shown in table -4.
Table -4
For example, collected current light intensity angle value is 45 luxs, current environment volume is 50 decibels, current time is
11:00, then according to correspondence shown in table -4, determine sample time section 1, sample light intensity value section 2 and sample
Volume section 2 is target interval, then by sample volume 50 decibels be determined as broadcast sound volume.
According to above-described embodiment, due to when voice adjustment parameter is two or more, according to voice adjustment parameter,
Determination includes target N the second sample parameters of grade section of voice adjustment parameter in several N the second sample parameters of grade sections.It can
See and considered various voice adjustment parameters when determining broadcast sound volume, therefore, broadcast sound volume can more meet current environment item
The requirement of part.
In an embodiment of the invention, it can be seen that the speech playing 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 voice adjustment parameter include light intensity value, environmental volume and for the time, to speech playing method into
Row explanation.As shown in Fig. 2, the speech playing method may include steps of:
Step 201:Successively using each element to be monitored as current element to be monitored.
In this step, using accumulator as current element to be monitored.
In this step, each element to be monitored is respectively present corresponding preset abnormality voice.Such as the party
Method is applied in intelligent sound box, and there are element accumulators to be monitored, and is that the corresponding preset abnormality voice of accumulator is
" electricity is low ".
Step 202:Whether the current element to be monitored of monitoring is abnormal, if so, executing step 203;Otherwise, step is executed
204。
In this step, the electricity for monitoring accumulator is less than preset power threshold, determines accumulator exception, then will work as
Preceding element accumulator to be monitored is determined as object component, and executes step 203.
Step 203:It is determined as the currently corresponding preset abnormality voice of element to be monitored to play voice, and executes
Step 205.
In this step, the corresponding abnormality voice " electricity is low " of accumulator is determined as playing voice, and executes step
Rapid 205.
Step 204:Judge whether current element to be monitored is the last one element to be monitored, if so, terminating current stream
Journey;Otherwise, step 201 is executed.
Step 205:Determine need to play voice when, acquisition current light intensity angle value, current environment volume and it is current when
Between.
In this step, collected current light intensity angle value is 45 luxs, current environment volume is 50 decibels, when current
Between be 11:00.
Step 206:According to collected voice adjustment parameter " light intensity value, environmental volume and time ", preset
Determination includes target N the second sample parameters of grade section of voice adjustment parameter in several N the second sample parameters of grade sections.
In this step, several " time, light intensity value and volume " second sample parameter of grade sections, as shown in table -4.
In this step, determine that sample time section 1, sample light intensity value section 2 and sample volume section 2 are mesh
Mark N the second sample parameters of grade section.
Step 207:The corresponding sample volume in target N the second sample parameters of grade section is determined as the broadcast sound volume.
In this step, corresponding 50 decibels of the sample volume in target N the second sample parameters of grade section is determined as playing sound
Amount.
Step 208:Voice is played according to broadcast sound volume.
In this step, speaker plays voice " electricity is low " with 50 decibels of volume, to inform user's speaker needs
Charging.
As shown in figure 3, an embodiment of the present invention provides a kind of voice playing device, it is applied in voice playing equipment, it should
Device includes:
Acquisition module 301, for when determination needs to play voice, acquiring voice adjustment parameter;The voice adjusts ginseng
Number is for the case where describing the external environment being presently in;
Volume determining module 302, the voice adjustment parameter for being acquired according to the acquisition module 301, which determines, to be played
Volume;
Playing module 303, the broadcast sound volume for being determined according to the volume determining module 302 play the acquisition
The broadcasting voice that module is determined.
Embodiment according to Fig.3, acquires one or more voice tune when acquisition module determination needs to play voice
(the voice adjustment parameter is used for the case where describing the external environment being presently in section parameter, and voice adjustment parameter can be light
Intensity value, environmental volume and one or more in the time).Then volume determining module is according to collecting voice adjustment parameter
Determine that broadcast sound volume, last playing module play voice according to broadcast sound volume.By above-mentioned it is found that implementing in the present invention
The broadcast sound volume that voice is played in example is changed as voice adjustment parameter changes, and is not fixed.Therefore, of the invention
The scheme that embodiment provides can improve the ability that speech play volume adaptively adjusts.
In an embodiment of the invention, when the voice adjustment parameter is a kind of,
The volume determining module 302 is used for according to the voice adjustment parameter, in several first sample parameter sections
Middle determination includes the target first sample parameter section of the voice adjustment parameter;Wherein, several described first sample parameters
Section is pre-set, the range for describing the voice adjustment parameter according to the voice adjustment parameter, each
First sample parameter section corresponds to a sample volume respectively;By the corresponding sample in the target first sample parameter section
Volume is determined as the broadcast sound volume.
In an embodiment of the invention, when the voice adjustment parameter is at least two,
The volume determining module 302 is used for according to the voice adjustment parameter, in several N the second sample parameters of grade
Determination includes target N the second sample parameters of grade section of the voice adjustment parameter in section;Wherein, several described N grades
Two sample parameter sections are pre-set, the model for describing the voice adjustment parameter according to the voice adjustment parameter
It encloses, each N grades of second sample parameter section corresponds to a sample volume respectively, and the N is used for description tone section
The type of parameter;The corresponding sample volume in the second sample parameter of target N grades section is determined as the broadcast sound volume.
In an embodiment of the invention, the acquisition module 301, for the target in detecting the speech ciphering equipment
When element is abnormal, it is determined that need to play the corresponding preset abnormality voice of the object component;The exception shape
State voice is in abnormality for describing the object component.
In an embodiment of the invention, the acquisition module 301, for being solved to voice messaging input by user
After analysing and determining corresponding feedback voice, it is determined that need to play the feedback voice.
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 speech playing method.
A kind of electronic equipment is provided in one embodiment of the invention, as shown in figure 4, the electronic equipment includes processing
Device 401, memory 402 and bus 403;The processor 401, the memory 402 are completed each other by the bus 403
Communication;The processor 401 is used to call the program instruction in the memory 402, to execute any one of above-mentioned institute
The speech playing method stated.
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, determining that acquiring one or more voice adjustment parameters (should when needing to play voice
Voice adjustment parameter is for the case where describing the external environment being presently in, and voice adjustment parameter can be light intensity value, ring
Border volume and one or more in the time).Then broadcast sound volume is determined according to collecting voice adjustment parameter, and according to
Broadcast sound volume plays voice.By above-mentioned it is found that the broadcast sound volume for playing voice in embodiments of the present invention is with language
Tone section Parameters variation and change, be not fixed.Therefore, scheme provided in an embodiment of the present invention can improve voice and broadcast
The ability that playback amount adaptively adjusts.
2, in embodiments of the present invention, each element to be monitored is monitored, at monitoring when element exception to be monitored, will wait supervising
The corresponding abnormality voice of control element is determined as playing voice.It can be seen that playing the abnormal shape of the determination and element to be monitored of voice
State is related, it is thereby achieved that the early warning of element to be monitored.
3, in embodiments of the present invention, due to can determine to be directed to voice letter according to voice messaging input by user
The broadcasting voice of breath, to realize human-computer dialogue.Therefore higher with the interaction capabilities of user.
4, in embodiments of the present invention, determine that voice adjustment parameter may include light intensity value, ring according to business need
At least one of border volume and time are a variety of.Therefore, business is with strong applicability.
5, in embodiments of the present invention, due to voice adjustment parameter be it is a kind of when, according to voice adjustment parameter, at several
Determination includes the target first sample parameter section of voice adjustment parameter in first sample parameter section.Therefore voice is being collected
After adjustment parameter (one kind in light intensity value, time and environmental volume), it can quickly select and be adjusted including voice
The sample parameter section of parameter, and by it is selected go out the corresponding sample volume in sample parameter section be determined as broadcast sound volume.Cause
This, broadcast sound volume corresponding with voice adjustment parameter can be quickly determined when collecting voice adjustment parameter.
6, in embodiments of the present invention, due to when voice adjustment parameter is two or more, being adjusted according to voice
Parameter, determination includes target N the second sample parameters of grade area of voice adjustment parameter in several N the second sample parameters of grade sections
Between.It can be seen that having considered various voice adjustment parameters when determining broadcast sound volume, therefore, broadcast sound volume can more meet and work as front ring
The requirement of border condition.
7, in embodiments of the present invention, after acquisition module is determined to play voice, acquisition module acquisition is a kind of or more
Kind of voice adjustment parameter (voice adjustment parameter can be light intensity value, environmental volume and one or more in the time).So
Volume determining module determines that broadcast sound volume, playing module are broadcast according to broadcast sound volume according to various voice adjustment parameters are collected afterwards
Put broadcasting voice.By above-mentioned it is found that the broadcast sound volume for playing voice in this programme is as various voice adjustment parameters become
Change and change, be not fixed.Therefore, scheme provided by the invention can improve what speech play volume adaptively adjusted
Ability.
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 speech playing method is applied in voice playing equipment, which is characterized in that including:
When determination needs to play voice, voice adjustment parameter is acquired;What the voice adjustment parameter was used to describe to be presently in
The case where external environment;
Broadcast sound volume is determined according to the voice adjustment parameter;
The broadcasting voice is played according to the broadcast sound volume.
2. according to the method described in claim 1, it is characterized in that,
It is described that broadcast sound volume is determined according to the voice adjustment parameter when the voice adjustment parameter is a kind of, including:
According to the voice adjustment parameter, determination includes the voice adjustment parameter in several first sample parameter sections
Target first sample parameter section;Wherein, several described first sample parameter sections be according to the voice adjustment parameter and
Pre-set, the range for describing the voice adjustment parameter, each first sample parameter section corresponds to respectively
One sample volume;
The corresponding sample volume in the target first sample parameter section is determined as the broadcast sound volume.
3. according to the method described in claim 1, it is characterized in that,
It is described that broadcast sound volume is determined according to the voice adjustment parameter when the voice adjustment parameter is at least two, including:
According to the voice adjustment parameter, determination includes that the voice adjusts ginseng in several N the second sample parameters of grade sections
Several target N the second sample parameters of grade sections;Wherein, several described N the second sample parameters of grade sections are according to the voice
Adjustment parameter and pre-set, the range for describing the voice adjustment parameter, each N grades of second sample parameter
Section corresponds to a sample volume respectively, and the N is used for the type of description sound adjustment parameter;
The corresponding sample volume in the second sample parameter of target N grades section is determined as the broadcast sound volume.
4. according to any method in claims 1 to 3, which is characterized in that
The determination needs to play voice, including:
When the object component in detecting the speech ciphering equipment is abnormal, it is determined that need to play the object component correspondence
Preset abnormality voice;The abnormality voice is in abnormality for describing the object component;
And/or
The determination needs to play voice, including:
Voice messaging input by user is being carried out to parse and after determining corresponding feedback voice, it is determined that need to play described anti-
Present voice.
5. according to any method in claims 1 to 3, which is characterized in that
At least one voice adjustment parameter, including:At least one of light intensity value, environmental volume and time are more
Kind.
6. a kind of voice playing device, which is characterized in that including:
Acquisition module, for when determination needs to play voice, acquiring voice adjustment parameter;The voice adjustment parameter is for retouching
The case where stating the external environment being presently in;
Volume determining module, the voice adjustment parameter for being acquired according to the acquisition module determine broadcast sound volume;
Playing module, the broadcast sound volume for being determined according to the volume determining module play the acquisition module and determine
The broadcasting voice.
7. voice playing device according to claim 6, which is characterized in that
When the voice adjustment parameter is a kind of,
The volume determining module, for according to the voice adjustment parameter, being determined in several first sample parameter sections
Target first sample parameter section including the voice adjustment parameter;Wherein, several described first sample parameter sections are
Pre-set, the range for describing the voice adjustment parameter according to the voice adjustment parameter, each described
A sample volume is corresponded between one sample parameter region respectively;The corresponding sample volume in the target first sample parameter section is true
It is set to the broadcast sound volume.
8. voice playing device according to claim 6, which is characterized in that
When the voice adjustment parameter is at least two,
The volume determining module is used for according to the voice adjustment parameter, in several N the second sample parameters of grade sections really
Surely include target N the second sample parameters of grade section of the voice adjustment parameter;Wherein, several N second samples of grade ginseng
Number interval is pre-set, the range for describing the voice adjustment parameter according to the voice adjustment parameter, each
A N grades of second sample parameter section corresponds to a sample volume respectively, and the N is used for the kind of description sound adjustment parameter
Class;The corresponding sample volume in the second sample parameter of target N grades section is determined as the broadcast sound 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 speech play 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 speech playing method described in any one of perform claim requirement 1 to claim 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810497190.0A CN108810739A (en) | 2018-05-22 | 2018-05-22 | A kind of speech playing method and device, storage medium, electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810497190.0A CN108810739A (en) | 2018-05-22 | 2018-05-22 | A kind of speech playing method and device, storage medium, electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108810739A true CN108810739A (en) | 2018-11-13 |
Family
ID=64091473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810497190.0A Pending CN108810739A (en) | 2018-05-22 | 2018-05-22 | A kind of speech playing method and device, storage medium, electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108810739A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109410936A (en) * | 2018-11-14 | 2019-03-01 | 广东美的制冷设备有限公司 | Air-conditioning equipment sound control method and device based on scene |
CN110418243A (en) * | 2019-07-25 | 2019-11-05 | 深圳市捷扬讯科电子有限公司 | A kind of intelligent sound box control system and control method |
CN110677776A (en) * | 2019-09-26 | 2020-01-10 | 恒大智慧科技有限公司 | Volume adjusting method and device, intelligent sound box and storage medium |
CN113064576A (en) * | 2021-04-09 | 2021-07-02 | 北京云迹科技有限公司 | Volume adjusting method and device, mobile equipment and storage medium |
CN113467747A (en) * | 2021-06-01 | 2021-10-01 | 荣耀终端有限公司 | Volume adjustment method, electronic device, storage medium, and computer program product |
CN113905076A (en) * | 2021-09-27 | 2022-01-07 | 海信视像科技股份有限公司 | Terminal device and volume adjusting method |
CN116431098A (en) * | 2023-06-12 | 2023-07-14 | 深圳市爱保护科技有限公司 | Intelligent watch voice output method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100184487A1 (en) * | 2009-01-16 | 2010-07-22 | Oki Electric Industry Co., Ltd. | Sound signal adjustment apparatus and method, and telephone |
CN104728994A (en) * | 2013-12-19 | 2015-06-24 | 珠海格力电器股份有限公司 | Control method and control device of air conditioner and air conditioner |
CN105135631A (en) * | 2015-10-16 | 2015-12-09 | 珠海格力电器股份有限公司 | Air conditioner voice broadcasting device, air conditioner and voice broadcasting method |
US9648410B1 (en) * | 2014-03-12 | 2017-05-09 | Cirrus Logic, Inc. | Control of audio output of headphone earbuds based on the environment around the headphone earbuds |
CN107339786A (en) * | 2017-07-10 | 2017-11-10 | 绵阳美菱软件技术有限公司 | A kind of air-conditioning, regulation and control air-conditioning loudspeaker report the system and method for volume |
CN206807743U (en) * | 2017-06-22 | 2017-12-26 | 佛山市顺德区美的电热电器制造有限公司 | Device and cooking apparatus for the automatic regulating volume of cooking apparatus |
CN107888782A (en) * | 2017-12-25 | 2018-04-06 | 出门问问信息科技有限公司 | A kind of control method and device of volume |
-
2018
- 2018-05-22 CN CN201810497190.0A patent/CN108810739A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100184487A1 (en) * | 2009-01-16 | 2010-07-22 | Oki Electric Industry Co., Ltd. | Sound signal adjustment apparatus and method, and telephone |
CN104728994A (en) * | 2013-12-19 | 2015-06-24 | 珠海格力电器股份有限公司 | Control method and control device of air conditioner and air conditioner |
US9648410B1 (en) * | 2014-03-12 | 2017-05-09 | Cirrus Logic, Inc. | Control of audio output of headphone earbuds based on the environment around the headphone earbuds |
CN105135631A (en) * | 2015-10-16 | 2015-12-09 | 珠海格力电器股份有限公司 | Air conditioner voice broadcasting device, air conditioner and voice broadcasting method |
CN206807743U (en) * | 2017-06-22 | 2017-12-26 | 佛山市顺德区美的电热电器制造有限公司 | Device and cooking apparatus for the automatic regulating volume of cooking apparatus |
CN107339786A (en) * | 2017-07-10 | 2017-11-10 | 绵阳美菱软件技术有限公司 | A kind of air-conditioning, regulation and control air-conditioning loudspeaker report the system and method for volume |
CN107888782A (en) * | 2017-12-25 | 2018-04-06 | 出门问问信息科技有限公司 | A kind of control method and device of volume |
Non-Patent Citations (2)
Title |
---|
熊庆宇: "《软件工程 实训项目案例II》", 31 March 2014, 重庆大学出版社 * |
魏斌: "《人工情感 原理及其应用》", 31 January 2017, 华中科技大学出版社 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109410936A (en) * | 2018-11-14 | 2019-03-01 | 广东美的制冷设备有限公司 | Air-conditioning equipment sound control method and device based on scene |
CN110418243A (en) * | 2019-07-25 | 2019-11-05 | 深圳市捷扬讯科电子有限公司 | A kind of intelligent sound box control system and control method |
CN110418243B (en) * | 2019-07-25 | 2021-02-26 | 深圳华强电子网集团股份有限公司 | Intelligent sound box control system and control method |
CN110677776A (en) * | 2019-09-26 | 2020-01-10 | 恒大智慧科技有限公司 | Volume adjusting method and device, intelligent sound box and storage medium |
CN110677776B (en) * | 2019-09-26 | 2021-08-17 | 星络智能科技有限公司 | Volume adjusting method and device, intelligent sound box and storage medium |
CN113064576A (en) * | 2021-04-09 | 2021-07-02 | 北京云迹科技有限公司 | Volume adjusting method and device, mobile equipment and storage medium |
CN113467747A (en) * | 2021-06-01 | 2021-10-01 | 荣耀终端有限公司 | Volume adjustment method, electronic device, storage medium, and computer program product |
CN113905076A (en) * | 2021-09-27 | 2022-01-07 | 海信视像科技股份有限公司 | Terminal device and volume adjusting method |
CN116431098A (en) * | 2023-06-12 | 2023-07-14 | 深圳市爱保护科技有限公司 | Intelligent watch voice output method and system |
CN116431098B (en) * | 2023-06-12 | 2023-09-19 | 深圳市爱保护科技有限公司 | Intelligent watch voice output method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108810739A (en) | A kind of speech playing method and device, storage medium, electronic equipment | |
CN107564518B (en) | Intelligent device control method and device and computer device | |
CN101552595B (en) | Electronic product volume regulating method and device thereof | |
CN102635999B (en) | Method for managing refrigerators through voices | |
CN106814639A (en) | Speech control system and method | |
CN103986839A (en) | Method for automatically setting contextual model and mobile terminal | |
CN109360564A (en) | Method and device for selecting language identification mode and household appliance | |
CN109688036A (en) | Control method and device of intelligent household appliance, intelligent household appliance and storage medium | |
CN103543699A (en) | Smart home management system based on smart box | |
CN112034726A (en) | Scene-based control method, device, equipment and storage medium | |
WO2020048217A1 (en) | Sound effect adjustment method, apparatus, electronic device, and storage medium | |
CN108196888A (en) | A kind of control method and system of scene lamp | |
CN106910496A (en) | Intelligent electrical appliance control and device | |
CN109712644A (en) | Method based on speech recognition emotional change control LED display effect, the apparatus and system for controlling LED display effect | |
CN113676382B (en) | IOT voice command control method, system and computer readable storage medium | |
CN118859741A (en) | A smart home Internet of Things control system | |
WO2006044914A3 (en) | Method, system and storage medium for managing automated system events | |
CN107833573B (en) | Machine learning-based family scene semantic understanding auxiliary method | |
CN104281249B (en) | A kind of state switching method and electronic equipment of multimedia file | |
CN114449713B (en) | Intelligent audio frequency recognition light control system | |
CN205957260U (en) | Intelligence lampblack absorber controlling means | |
CN111295017B (en) | Light control method, control system and equipment | |
CN106341527A (en) | Emotion adjustment method and mobile terminal | |
CN109497626A (en) | Electronic cigarette device, system, smoking amount control method and storage medium | |
CN106444499A (en) | Speech prompt system and method for mobile power supply and mobile power supply |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181113 |
|
RJ01 | Rejection of invention patent application after publication |