CN111818223A - Mode switching method, device, equipment, medium and sound production system for sound playing - Google Patents

Mode switching method, device, equipment, medium and sound production system for sound playing Download PDF

Info

Publication number
CN111818223A
CN111818223A CN202010585108.7A CN202010585108A CN111818223A CN 111818223 A CN111818223 A CN 111818223A CN 202010585108 A CN202010585108 A CN 202010585108A CN 111818223 A CN111818223 A CN 111818223A
Authority
CN
China
Prior art keywords
sound
environment
mode
preset
classifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010585108.7A
Other languages
Chinese (zh)
Inventor
王洪兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AAC Technologies Pte Ltd
Original Assignee
AAC Technologies Pte 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 AAC Technologies Pte Ltd filed Critical AAC Technologies Pte Ltd
Priority to CN202010585108.7A priority Critical patent/CN111818223A/en
Priority to PCT/CN2020/099755 priority patent/WO2021258415A1/en
Publication of CN111818223A publication Critical patent/CN111818223A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a mode switching method for sound amplification, which comprises the following steps: acquiring a current environment parameter value within a preset time period; determining a current environment type corresponding to a current environment parameter value through a preset environment classifier, wherein an output result of the preset environment classifier is a first environment or a second environment; if the current environment type is a first environment, setting the mode of sound playing of the sound system to be a first playing mode; if the current environment type is the second environment, the mode of the sound playing of the sound system is set to be the second playing mode, automatic real-time switching of the sound playing mode of the sound system is achieved, convenience of switching of the sound playing mode is improved, and privacy risks caused by the fact that a user manually switches the sound playing mode untimely or manually and randomly switch the sound playing mode are avoided. The user can naturally enjoy the sound to be played outside without disturbing the surrounding people, the privacy of the user is protected, and the user experience is improved.

Description

Mode switching method, device, equipment, medium and sound production system for sound playing
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of computers, in particular to a mode switching method, device, equipment, medium and sound production system for sound playing.
[ background of the invention ]
In the current society, the civilization degree is higher and higher, and people pay more attention to the civilization element of privacy. With the progress of technology, the smart phone becomes an essential part in life, study and work of people, particularly various short videos greatly enrich the perhaps life of people, and an excellent time-making mode is provided for people who travel by public transport, particularly the short videos are more attractive due to the music or the dubbing of the short videos. However, many people often have no habit of carrying earphones with them, and in such a case, in order to naturally enjoy short videos with sounds, users press a specific key to turn down the volume or pause playing the short videos, and then the users may forget to reduce the volume or turn off the sound playing without self-awareness to cause unnecessary troubles, thereby bringing unpleasant use experience to the users.
In view of this, how to find a scheme for facilitating a user to change a sound play mode becomes a problem to be solved urgently by those skilled in the art.
[ summary of the invention ]
In view of this, the present invention provides a method, an apparatus, a device, a medium, and a sound system for switching a sound playback mode, so as to solve the problem that in the prior art, a sound playback mode cannot be automatically switched, and thus it is difficult to ensure user privacy.
The specific technical scheme of the embodiment of the invention is as follows:
in a first aspect, an embodiment of the present invention provides a mode switching method for sound playing, including:
acquiring a current environment parameter value in a preset time period;
determining a current environment type corresponding to the current environment parameter value through a preset environment classifier, wherein the output result of the preset environment classifier is a first environment or a second environment;
if the current environment type is the first environment, setting a sound playing mode of the sound system to be the first playing mode;
and if the current environment type is the second environment, setting the sound playing mode of the sound system to be the second playing mode.
Further, the current environmental parameter values include: at least one of a vibration value, a brightness value, a sound value, and a position value of the current environment.
Further, the mode switching method for sound playing further comprises the following steps:
acquiring a training sample set, wherein the training sample set comprises sample environment parameter values and corresponding sample environment types;
and taking the sample environment parameter value as the input of a preset classifier, taking the sample environment type as the expected output, and training the preset classifier to obtain the trained environment classifier.
Further, before obtaining the trained preset environment classifier, the method further includes:
obtaining a test sample set, wherein the test sample set comprises test environment parameter values and corresponding test environment types;
inputting the testing environment parameter values into the preset classifier to obtain the output training environment type,
and acquiring an error between the training environment type and the testing environment type, and determining that the preset classifier is trained to obtain the preset environment classifier under the condition that the error is smaller than a preset error.
Further, before training the preset classifier to obtain the trained preset environment classifier, the method further includes:
and acquiring the training times of the preset classifier, and determining that the preset classifier is completely trained to obtain the preset environment classifier under the condition that the training times reach the maximum preset times.
Further, determining a current environment type corresponding to the current environment parameter value through a preset environment classifier, including:
taking the current environment parameter value as the input of the preset environment classifier;
and acquiring the current environment type output by the preset environment classifier.
Further, the step of setting the sound play-out mode of the sound system to the first play-out mode and setting the sound play-out mode of the sound system to the second play-out mode further includes:
when the sound play-out mode is switched to the first play-out mode, sound signal propagation propagates at a first directional angle, and when the sound play-out mode is switched to the second play-out mode, sound signal propagation propagates at a second directional angle, and the first directional angle is larger than the second directional angle.
In a second aspect, embodiments of the present invention further provide a sound generating system, where the sound generating system is a sound generating system with sound field reconstruction adjustment, and includes one or more sound generating units;
in the case where the sound emission unit is plural, the sound emission units are distributed in an array form or a distribution form.
In a third aspect, an embodiment of the present invention further provides a mode switching device for sound playing, which is applied to a sound system, where the sound system is provided with a first playing mode and a second playing mode, and includes:
the parameter acquisition module is used for acquiring the current environmental parameter value in a preset time period;
the judging module is used for determining a current environment type corresponding to the current environment parameter value through a preset environment classifier, and the output result of the preset environment classifier is a first environment or a second environment;
the first switching module is used for setting the sound playing mode of the sound system to be the first playing mode if the current environment type is the first environment;
and the second switching module is used for setting the sound playing mode of the sound system to be the second playing mode if the current environment type is the second environment.
In a fourth aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the mode switching method for sound playing as described above when executing the computer program.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which includes computer instructions, and when the computer instructions are executed on a computer, the computer executes the steps of the mode switching method for sound playing.
The embodiment of the invention has the following beneficial effects:
after the sound playing mode switching method, device, equipment, medium and sound system are adopted, the current environmental parameter value is obtained within a preset time period; determining a current environment type corresponding to a current environment parameter value through a preset environment classifier, wherein an output result of the preset environment classifier is a first environment or a second environment; if the current environment type is a first environment, setting the mode of sound playing of the sound system to be a first playing mode; if the current environment type is the second environment, the mode of the sound playing of the sound system is set to be the second playing mode, automatic real-time switching of the sound playing mode of the sound system is achieved, convenience of switching of the sound playing mode is improved, and privacy risks caused by the fact that a user manually switches the sound playing mode untimely or manually and randomly switch the sound playing mode are avoided. The user can naturally enjoy the sound to be played outside without disturbing the surrounding people, the privacy of the user is protected, and the user experience is improved.
[ description of the drawings ]
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flow chart illustrating a mode switching method for audio playback according to an embodiment;
fig. 2 is a schematic flow chart illustrating a mode switching method for audio playback according to another embodiment;
FIG. 3a is a flowchart illustrating a method for training an environment classifier according to an embodiment;
FIG. 3b is a schematic flow chart illustrating a method for training the environment classifier in one embodiment;
FIG. 4 is a flowchart illustrating a method for determining a current environment type corresponding to a current environment parameter value in one embodiment;
FIG. 5 is a schematic diagram of a first pointing angle and a second pointing angle in one embodiment;
FIG. 6 is a schematic diagram of a sound system in one embodiment;
FIG. 7 is a schematic structural diagram of a mode switching device for sound reproduction according to an embodiment;
fig. 8 is a schematic internal configuration diagram of a computer device for operating the above-described mode switching method for sound reproduction in one embodiment.
[ detailed description ] embodiments
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In view of the above problem, in the present embodiment, a mode switching method for sound reproduction is particularly proposed. The method may be implemented in dependence on a computer program which is executable on a computer system based on the von neumann architecture.
As shown in fig. 1, the mode switching method for sound playing out provided in this embodiment is applied to a sound system, where the sound system is provided with a first playing out mode and a second playing out mode, and the mode switching method for sound playing out specifically includes the following steps:
step 102: and acquiring the current environmental parameter value in a preset time period.
The first external playing mode and the second external playing mode are two preset sound external playing modes of a sound system, more specifically, the first external playing mode refers to a sound external playing mode which can be applied to public occasions, namely a sharing external playing mode, in the first external playing mode, a user and people around the user can hear external playing sound, the second external playing mode refers to a sound external playing mode which needs to pay attention to privacy or places sensitive to sound disturbance, namely a privacy external playing mode, in the second external playing mode, only the user can hear obvious external playing sound, and people around the user cannot hear the external playing sound, or the external playing sound is very small. The current environment parameter value is index data for reflecting the sensitivity of the current environment to sound, and may be one or a combination of multiple kinds of information such as vibration (intensity, frequency), brightness of ambient light, ambient sound (loudness, frequency), location (position, and location change speed), and the like of the current environment. The current environmental parameter value is obtained once every other specific time within a preset time period, which may be 5 minutes, 6 minutes, 7 minutes, or the like, and may be determined specifically according to an actual application, and is not specifically limited herein. It is understood that, by obtaining the current environmental parameter value within a preset time period, the sound play mode switching decision is made subsequently based on the current environmental parameter value.
Step 104: and determining the current environment type corresponding to the current environment parameter value through a preset environment classifier, wherein the output result of the preset environment classifier is the first environment or the second environment.
The preset environment classifier of the embodiment is used for classifying different current environment parameter values into one of a first environment and a second environment. In particular, a classifier that can be classified using at least one machine learning model. The machine learning model may be one or more of the following: neural networks (e.g., convolutional neural networks, BP neural networks, etc.), logistic regression models, support vector machines, decision trees, random forests, perceptrons, and other machine learning models. As part of the training of such a machine learning model, the training input is various environmental feature quantities, such as temperature, vibration, sound, brightness, and the like, and a relational classifier is established by training the environmental feature quantities and the environmental types. And the preset environment classifier is enabled to have the capability of judging whether the current environment type corresponding to the input current environment parameter value is the first environment or the second environment. In this embodiment, the classifier is a classifier, and two classification results, that is, the first environment or the second environment, are obtained.
For example, a branch model of the machine learning model may be added, and the environment feature amount corresponding to the first environment may be subjected to classification training, and the classification result is the first a environment, the first B environment, the first C environment, or the like, or the environment feature amount corresponding to the second environment may be subjected to classification training, and the classification result is the second a environment, the second B environment, the second C environment, or the like. Or directly adopting a preset multi-stage classifier to determine the current environment type corresponding to the current environment parameter value. Understandably, the current environment type corresponding to the current environment parameter value is subjected to machine learning, the automatic detection of the environment state corresponding to the current environment parameter value is realized, the time and labor consumption of a user for judging the environment are avoided, the current environment parameter value is comprehensively considered by means of the classifier model of machine learning, the respective first environment A, the first environment B, the first environment C and the like of the first environment and the second environment can be more comprehensively and accurately realized, the second environment A, the second environment B, the second environment C and the like are distinguished, and the efficiency of switching the subsequent sound playback modes is favorably improved.
Step 106: and if the current environment type is the first environment, setting the mode of sound playing of the sound system to be the first playing mode.
Specifically, after the current environment type corresponding to the current environment parameter value is judged to be the first environment, the sound playing mode of the sound system is set to be the sound playing mode corresponding to the first environment, namely, the first playing mode, so that automatic switching of the sound playing mode of the sound system is achieved, and the situation that a user needs to manually switch or set the sound playing mode is avoided. Under first environment, the user can carry out sound amplification with sharing amplification mode for the user can enjoy sound amplification naturally, has promoted user experience.
Step 108: and if the current environment type is the second environment, setting the sound play-out mode of the sound system to be the second play-out mode.
Specifically, after the current environment type corresponding to the current environment parameter value is judged to be the second environment, the sound playing mode of the sound generating system is set to be the sound playing mode corresponding to the second environment, namely the second playing mode, so that automatic real-time switching of the sound playing mode of the sound generating system is achieved, and convenience in switching of the sound playing mode is improved. Further, under the second environment, the user can play sound in the privacy play-out mode, so that the user can naturally enjoy the sound play-out without disturbing people around, the privacy of the user is protected, and the user experience is improved. Moreover, privacy risks caused by untimely manual switching of a user or manual random switching of the sound playing mode are avoided.
It should be noted that the first environment and the second environment in this embodiment may also be continuously divided into a plurality of first sub-environments and second sub-environments, such as a first a environment, a first B environment, a first C environment, and the like, a second a environment, a second B environment, a second C environment, and the like, and accordingly, the first play mode and the second play mode may be correspondingly divided into a first a-level play mode, a first B-level play mode, a third C-level play mode, and the like, a second a-level play mode, a second B-level play mode, a second C-level play mode, and the like. Further, the first environment and the second environment, and the first play-out mode and the second play-out mode in this embodiment are only examples, and do not serve as grounds for limiting the present application.
According to the mode switching method for sound playing, the current environmental parameter value is obtained within a preset time period; determining a current environment type corresponding to a current environment parameter value through a preset environment classifier, wherein an output result of the preset environment classifier is a first environment or a second environment; if the current environment type is a first environment, setting the mode of sound playing of the sound system to be a first playing mode; if the current environment type is the second environment, the mode of the sound playing of the sound system is set to be the second playing mode, automatic real-time switching of the sound playing mode of the sound system is achieved, convenience of switching of the sound playing mode is improved, and privacy risks caused by the fact that a user manually switches the sound playing mode untimely or manually and randomly switch the sound playing mode are avoided. The user can naturally enjoy the sound to be played outside without disturbing the surrounding people, the privacy of the user is protected, and the user experience is improved.
In one embodiment, the current environmental parameter values include: at least one of a vibration value, a brightness value, a sound value, and a position value of the current environment.
Specifically, the vibration value of the current environment can be sensed through a gyroscope and an accelerometer which are installed on the intelligent device and calculated by an intelligent device processor, the brightness value of the current environment can be sensed through an ambient light sensor which is installed on the intelligent device and calculated by the intelligent device processor, the sound value of the current environment can capture ambient sound through a microphone which is installed on the intelligent device and calculate a sound loudness through a sound signal, and the brightness value of the current environment can be sensed through a GPS sensor which is installed on the intelligent device and calculated by the intelligent device processor. It can be understood that the current environment parameter value contains data of at least four dimensions, which can ensure the comprehensiveness and accuracy of the current environment parameter value.
As shown in fig. 2, in an embodiment, the mode switching method for sound playing further includes:
step 110: acquiring a training sample set, wherein the training sample set comprises sample environment parameter values and corresponding sample environment types;
step 112: and taking the sample environment parameter value as the input of a preset classifier, taking the sample environment type as the expected output, and training the preset classifier to obtain the trained environment classifier.
Specifically, a sample determined to belong to a first environment, for example, at least one of a vibration value, a brightness value, a sound value, and a position value of an environment type such as a subway, a bus station, an airport, and the like, is obtained, a sample determined to belong to a second environment, for example, at least one of a vibration value, a brightness value, a sound value, and a position value of an environment type such as a library, a park, and the like, is obtained, a current environment parameter value is used as an input of a preset classifier, a sample environment type is used as an expected output, the preset classifier is trained, an environment type corresponding to a sample environment parameter value in a training sample set can be generated, and thus the preset classifier is trained according to the expected output corresponding to the sample environment parameter value, and the trained preset environment classifier is obtained.
In this embodiment, the training sample set includes first environment and the environmental parameter value and the second environment that correspond and the environmental parameter value that corresponds, has guaranteed the comprehensiveness of training sample set, utilizes the environmental classification ware that training sample set trained out like this can learn more comprehensive accurate environmental classification rule, has improved the efficiency that the classifier was predetermine in training machine learning to can further improve the efficiency of distinguishing first environment and second environment.
The above steps 110 and 112 describe a training process of the environment classifier, and in practical applications, the environment classifier can be obtained by a plurality of training methods, as shown in fig. 3a, which is a flowchart of a possible implementation manner of the training method of the environment classifier, including:
step 112A: acquiring a training sample set, wherein the training sample set comprises sample environment parameter values and corresponding sample environment types;
step 112B: taking the current sample environment parameter value as the input of a preset classifier, taking the sample environment type as the expected output, and training the preset classifier;
step 112C: obtaining a test sample set, wherein the test sample set comprises test environment parameter values and corresponding test environment types;
step 112D: inputting the test environment parameter values into a preset classifier, and acquiring the output training environment type;
step 112E: and acquiring an error between the training environment type and the testing environment type, and determining that the training of the preset classifier is finished under the condition that the error is smaller than a preset error to obtain the preset environment classifier.
Specifically, a test sample set is obtained, the test sample set comprises test environment parameter values and corresponding test environment types, the test sample set is predicted by a trained machine learning preset classifier, a known classification result of the test sample set, namely the test environment type, is obtained, the predicted result is compared with the known classification result, the classification prediction accuracy of the corresponding machine learning classifier is obtained, an error between the training environment type and the test environment type is obtained, and the preset classifier training is determined to be finished under the condition that the error is smaller than the preset error.
As shown in fig. 3b, a flowchart of another possible implementation manner of the training method for the environment classifier includes:
step 112A: acquiring a training sample set, wherein the training sample set comprises sample environment parameter values and corresponding sample environment types;
step 112B: taking the current sample environment parameter value as the input of a preset classifier, taking the sample environment type as the expected output, and training the preset classifier;
and 112F, acquiring the training times of the preset classifier, and determining that the preset classifier is completely trained to obtain the preset environment classifier under the condition that the training times reach the maximum preset times.
Specifically, training times corresponding to a preset classifier are obtained, when the training times reach the maximum preset times, it is determined that the preset classifier is trained completely, and a parameter value used by the preset classifier for machine learning is obtained, otherwise, the obtained parameter value and a test sample set are used for continuing training the preset classifier for machine learning.
In this embodiment, the parameter value is roughly positioned by using the test sample set, and the most appropriate parameter value can be found as far as possible by obtaining the training times of the preset classifier, so that the parameter value and the test sample set are used for training, and the trained preset environment classifier for machine learning can distinguish the environment types to achieve higher accuracy.
As shown in fig. 4, in an embodiment, determining, by a preset environment classifier, a current environment type corresponding to a current environment parameter value includes:
step 104A: taking the current environment parameter value as the input of a preset environment classifier;
step 104B: and acquiring the current environment type output by the preset environment classifier.
Specifically, after a preset environment classifier is obtained through training, the current environment parameter value can be used as the input of the preset environment classifier, and then the corresponding environment type is predicted through the preset environment classifier. After the preset environment classifier is trained, the preset environment type classification rule is determined, and the current environment type can be obtained according to the current environment parameter value according to the environment type classification rule.
In one embodiment, the step of setting the mode of sound play-out of the sound generating system to a first play-out mode and setting the mode of sound play-out of the sound generating system to a second play-out mode further comprises:
when the sound play-out mode is switched to the first play-out mode, the sound signal is propagated at a first directional angle, and when the sound play-out mode is switched to the second play-out mode, the sound signal is propagated at a second directional angle, wherein the first directional angle is larger than the second directional angle.
In this embodiment, the sound play-out mode is determined by setting the pointing angle, the larger the pointing angle, the more the sound play-out mode tends to the play-out sharing mode, and the smaller the pointing angle, the more the sound play-out mode tends to the play-out privacy mode. Fig. 5 is a schematic diagram of a first pointing angle and a second pointing angle. When the sound play-out mode is switched to the first play-out mode, the sound signal propagates at a first directional angle, and when the sound play-out mode is switched to the second play-out mode, the sound signal propagates at a second directional angle, thereby ensuring that the user naturally uses sound play-out in the first play-out mode set under the first environment and naturally uses sound play-out in the second play-out mode set under the second environment, and protecting the privacy of the user.
Further, if the first play mode and the second play mode are respectively and correspondingly divided into a first a-level play mode, a first B-level play mode, a third C-level play mode, and the like, and when the second a-level play mode, the second B-level play mode, and the second C-level play mode are used, the sound signal propagation can be performed through sound waves of configured pointing angles by configuring the pointing angles of the respective play modes in advance, so that the sound play mode is switched to the corresponding play mode.
The present embodiment provides a sound production system, which includes a sound production system 600 that is a sound production system with sound field reconstruction adjustment, including one or more sound production units 601; in the case where the sound emission unit is plural, the sound emission units are distributed in an array form or a distribution form.
As shown in fig. 6, the sound generating system including the sound generating system 600 is a sound generating system with sound field reconstruction adjustment, and specifically, the sound field reconstruction can be realized by a speaker array (loudspeaker array), that is, the magnitude or the magnitude of directivity is controlled, and illustratively, for the first play mode, an omni-directional mode is set, and for the second play mode, a strong-directional mode is set. Specifically, the intelligent device may be provided with a plurality of micro-speakers to form an array, and the directivity of the micro-speaker array may be adjusted by controlling the delay and phase relationship of each micro-speaker in the array. The sound emitting system 600 includes one or more sound emitting units 601. As a preference of the present embodiment, a plurality of sound emission units are employed so as to adjust and control the sound emission direction of the sound emission units in a plurality of directions, and in the case where the sound emission units are plural, they are distributed in an array form or a distribution form.
Based on the same inventive concept, an embodiment of the present invention provides a mode switching apparatus 700 for sound reproduction, as shown in fig. 7, including: a parameter obtaining module 702, configured to obtain a current environment parameter value within a preset time period; a determining module 704, configured to determine, through a preset environment classifier, a current environment type corresponding to the current environment parameter value, where an output result of the preset environment classifier is a first environment or a second environment; a first switching module 706, configured to set a mode of sound playing out of the sound generating system to the first playing out mode if the current environment type is the first environment; a second switching module 708, configured to set a sound play-out mode of the sound generating system to the second play-out mode if the current environment type is the second environment.
Specifically, the mode switching device 700 for sound reproduction of the present embodiment, as shown in fig. 7, includes: a parameter obtaining module 702, configured to obtain a current environment parameter value within a preset time period; a determining module 704, configured to determine, through a preset environment classifier, a current environment type corresponding to the current environment parameter value, where an output result of the preset environment classifier is a first environment or a second environment; a first switching module 706, configured to set a mode of sound playing out of the sound generating system to the first playing out mode if the current environment type is the first environment; a second switching module 708, configured to set a sound play-out mode of the sound generating system to the second play-out mode if the current environment type is the second environment. Through the automatic real-time switching of the sound playing mode, the convenience of switching the sound playing mode is improved, and privacy risks caused by untimely manual switching of a user or manual random switching of the sound playing mode are avoided. The user can enjoy the sound to be played outside without disturbing the surrounding people, the privacy of the user is protected, and the user experience is improved.
It should be noted that, in this embodiment, implementation of the device for switching the mode of the sound output is consistent with the implementation idea of the method for switching the mode of the sound output, and the implementation principle is not described herein again, and specific reference may be made to corresponding contents in the method.
FIG. 8 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server or a terminal. As shown in fig. 8, the computer device 800 includes a processor 810, a memory 820, and a network interface 830 connected by a system bus. The memory 820 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by the processor, may cause the processor to implement a method of mode switching for sound reproduction. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform a method of mode switching for sound reproduction. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as a particular computing device may include more or less components than those shown in fig. 8, or may combine certain components, or have a different arrangement of components.
In one embodiment, the method for switching the mode of sound playing may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 8. The memory of the computer device may store therein the individual program modules constituting the means for mode switching of the sound reproduction. For example, the parameter obtaining module 702, the determining module 704, the first switching module 706, and the second switching module 708.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of: acquiring a current environment parameter value in a preset time period; determining a current environment type corresponding to the current environment parameter value through a preset environment classifier, wherein the output result of the preset environment classifier is a first environment or a second environment; if the current environment type is the first environment, setting a sound playing mode of the sound system to be the first playing mode; and if the current environment type is the second environment, setting the sound playing mode of the sound system to be the second playing mode.
In one embodiment, a computer-readable storage medium is proposed, which stores a computer program, characterized in that the computer program realizes the following steps when executed by a processor: acquiring a current environment parameter value in a preset time period; determining a current environment type corresponding to the current environment parameter value through a preset environment classifier, wherein the output result of the preset environment classifier is a first environment or a second environment; if the current environment type is the first environment, setting a sound playing mode of the sound system to be the first playing mode; and if the current environment type is the second environment, setting the sound playing mode of the sound system to be the second playing mode.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (11)

1. A mode switching method for sound playing is characterized by being applied to a sound production system, wherein the sound production system is provided with a first playing mode and a second playing mode, and the method comprises the following steps:
acquiring a current environment parameter value in a preset time period;
determining a current environment type corresponding to the current environment parameter value through a preset environment classifier, wherein the output result of the preset environment classifier is a first environment or a second environment;
if the current environment type is the first environment, setting a sound playing mode of the sound system to be the first playing mode;
and if the current environment type is the second environment, setting the sound playing mode of the sound system to be the second playing mode.
2. The mode switching method for sound reproduction according to claim 1, wherein the current environment parameter value includes: at least one of a vibration value, a brightness value, a sound value, and a position value of the current environment.
3. The mode switching method for sound reproduction according to claim 2, further comprising:
acquiring a training sample set, wherein the training sample set comprises sample environment parameter values and corresponding sample environment types;
and taking the sample environment parameter value as the input of a preset classifier, taking the sample environment type as the expected output, and training the preset classifier to obtain the trained preset environment classifier.
4. The method for switching the mode of sound output according to claim 3, wherein before the training of the preset classifier to obtain the trained preset environment classifier, the method further comprises:
obtaining a test sample set, wherein the test sample set comprises test environment parameter values and corresponding test environment types;
inputting the test environment parameter values into the preset classifier, and acquiring an output training environment type; and acquiring an error between the training environment type and the testing environment type, and determining that the preset classifier is trained to obtain the preset environment classifier under the condition that the error is smaller than a preset error.
5. The method for switching the mode of sound output according to claim 3, wherein before the training of the preset classifier to obtain the trained preset environment classifier, the method further comprises:
and acquiring the training times of the preset classifier, and determining that the preset classifier is completely trained to obtain the preset environment classifier under the condition that the training times reach the maximum preset times.
6. The method for switching the mode of sound playing out according to claim 1, wherein the determining the current environment type corresponding to the current environment parameter value by a preset environment classifier comprises:
taking the current environment parameter value as the input of the preset environment classifier;
and acquiring the current environment type output by the preset environment classifier.
7. The mode switching method for sound play-out according to claim 1, wherein the step of setting the mode of sound play-out of the sound system to the first play-out mode and setting the mode of sound play-out of the sound system to the second play-out mode further comprises:
when the sound play-out mode is switched to the first play-out mode, sound signals are spread at a first directional angle, when the sound play-out mode is switched to the second play-out mode, sound signals are spread at a second directional angle, and the first directional angle is larger than the second directional angle.
8. A sound production system, wherein the sound production system is a sound production system with sound field reconstruction adjustment, comprising one or more sound production units;
in the case where the sound emission unit is plural, the sound emission units are distributed in an array form or a distribution form.
9. The utility model provides a mode switching device that sound was put outward, is applied to the sound production system, the sound production system is provided with first mode and the second mode of putting outward, its characterized in that, the device includes:
the parameter acquisition module is used for acquiring the current environmental parameter value in a preset time period;
the judging module is used for determining a current environment type corresponding to the current environment parameter value through a preset environment classifier, and the output result of the preset environment classifier is a first environment or a second environment;
the first switching module is used for setting the sound playing mode of the sound system to be the first playing mode if the current environment type is the first environment;
and the second switching module is used for setting the sound playing mode of the sound system to be the second playing mode if the current environment type is the second environment.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the mode switching method for sound reproduction according to any one of claims 1 to 7.
11. A computer readable storage medium comprising computer instructions which, when run on a computer, cause the computer to perform the steps of the mode switching method for sound loudspeaking according to any one of claims 1 to 7.
CN202010585108.7A 2020-06-24 2020-06-24 Mode switching method, device, equipment, medium and sound production system for sound playing Pending CN111818223A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010585108.7A CN111818223A (en) 2020-06-24 2020-06-24 Mode switching method, device, equipment, medium and sound production system for sound playing
PCT/CN2020/099755 WO2021258415A1 (en) 2020-06-24 2020-07-01 Audio playback mode switching method, device, apparatus, medium, and acoustic emission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010585108.7A CN111818223A (en) 2020-06-24 2020-06-24 Mode switching method, device, equipment, medium and sound production system for sound playing

Publications (1)

Publication Number Publication Date
CN111818223A true CN111818223A (en) 2020-10-23

Family

ID=72845535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010585108.7A Pending CN111818223A (en) 2020-06-24 2020-06-24 Mode switching method, device, equipment, medium and sound production system for sound playing

Country Status (2)

Country Link
CN (1) CN111818223A (en)
WO (1) WO2021258415A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021258466A1 (en) * 2020-06-24 2021-12-30 瑞声声学科技(深圳)有限公司 Mode switching method and apparatus for external sound playback, and device, medium and sound production system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150230041A1 (en) * 2011-05-09 2015-08-13 Dts, Inc. Room characterization and correction for multi-channel audio
CN107360500A (en) * 2017-08-17 2017-11-17 三星电子(中国)研发中心 A kind of method of outputting acoustic sound and device
CN107729092A (en) * 2016-08-12 2018-02-23 北京泰克贝思科技股份有限公司 A kind of automatic page turning method and system for e-book
CN107770368A (en) * 2017-09-28 2018-03-06 努比亚技术有限公司 A kind of based reminding method and terminal of the alarm clock application based on terminal
CN109919244A (en) * 2019-03-18 2019-06-21 北京字节跳动网络技术有限公司 Method and apparatus for generating scene Recognition model
CN110087156A (en) * 2018-01-25 2019-08-02 哈曼国际工业有限公司 Wearable sound system with configurable privacy mode

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110042315A (en) * 2008-07-18 2011-04-26 코닌클리케 필립스 일렉트로닉스 엔.브이. Method and system for preventing overhearing of private conversations in public places
GB201604295D0 (en) * 2016-03-14 2016-04-27 Univ Southampton Sound reproduction system
CN107318067A (en) * 2017-05-24 2017-11-03 广东小天才科技有限公司 Audio directional playing method and device of terminal equipment
CN110995933A (en) * 2019-12-12 2020-04-10 Oppo广东移动通信有限公司 Volume adjusting method and device of mobile terminal, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150230041A1 (en) * 2011-05-09 2015-08-13 Dts, Inc. Room characterization and correction for multi-channel audio
CN107729092A (en) * 2016-08-12 2018-02-23 北京泰克贝思科技股份有限公司 A kind of automatic page turning method and system for e-book
CN107360500A (en) * 2017-08-17 2017-11-17 三星电子(中国)研发中心 A kind of method of outputting acoustic sound and device
CN107770368A (en) * 2017-09-28 2018-03-06 努比亚技术有限公司 A kind of based reminding method and terminal of the alarm clock application based on terminal
CN110087156A (en) * 2018-01-25 2019-08-02 哈曼国际工业有限公司 Wearable sound system with configurable privacy mode
CN109919244A (en) * 2019-03-18 2019-06-21 北京字节跳动网络技术有限公司 Method and apparatus for generating scene Recognition model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021258466A1 (en) * 2020-06-24 2021-12-30 瑞声声学科技(深圳)有限公司 Mode switching method and apparatus for external sound playback, and device, medium and sound production system

Also Published As

Publication number Publication date
WO2021258415A1 (en) 2021-12-30

Similar Documents

Publication Publication Date Title
CN109644314B (en) Method of rendering sound program, audio playback system, and article of manufacture
US10123140B2 (en) Dynamic calibration of an audio system
US9437194B2 (en) Electronic device and voice control method thereof
US10080088B1 (en) Sound zone reproduction system
US20190295569A1 (en) Processing voice
CN114822512B (en) Audio data processing method and device, electronic equipment and storage medium
US20230300532A1 (en) Fully customizable ear worn devices and associated development platform
CN108346433A (en) A kind of audio-frequency processing method, device, equipment and readable storage medium storing program for executing
US10044733B2 (en) System and method for controlling a rendering device based upon detected user proximity
CN110288997A (en) Equipment awakening method and system for acoustics networking
CN114245271B (en) Audio signal processing method and electronic equipment
WO2018208483A1 (en) Spatializing audio data based on analysis of incoming audio data
CN111756928A (en) Mode switching method, device, equipment, medium and sound production system for sound playing
CN109800724A (en) A kind of loudspeaker position determines method, apparatus, terminal and storage medium
CN113439447A (en) Room acoustic simulation using deep learning image analysis
WO2019013820A1 (en) Alerting users to events
CN111818223A (en) Mode switching method, device, equipment, medium and sound production system for sound playing
EP2614631A1 (en) User device, server, and operating conditions setting system
CN114546325A (en) Audio processing method, electronic device and readable storage medium
CN108124213A (en) A kind of method of adjustment, device and the electronic equipment of earphone music
JPWO2018190099A1 (en) Voice providing device, voice providing method, and program
CN115396784A (en) Remote tuning method and system
CN105828135B (en) Control method for playing back, device and playback equipment in audio-video frequency playing system
US20210082391A1 (en) Sound effect synthesis
KR102650763B1 (en) Psychoacoustic enhancement based on audio source directivity

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: 20201023

RJ01 Rejection of invention patent application after publication