CN117687595B - Volume adjustment method and device based on Internet of things - Google Patents
Volume adjustment method and device based on Internet of things Download PDFInfo
- Publication number
- CN117687595B CN117687595B CN202410122393.7A CN202410122393A CN117687595B CN 117687595 B CN117687595 B CN 117687595B CN 202410122393 A CN202410122393 A CN 202410122393A CN 117687595 B CN117687595 B CN 117687595B
- Authority
- CN
- China
- Prior art keywords
- volume
- audio
- equipment
- document
- space
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000000295 complement effect Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
Landscapes
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The invention discloses a volume adjustment method and device based on the Internet of things, comprising the following steps: acquiring audio data in a presentation document, and acquiring a document volume threshold and a maximum volume value of first audio equipment; extracting volume data in the audio data to obtain a document audio volume value; obtaining a volume ratio value according to the ratio between the document audio volume value and the document volume threshold; according to the volume ratio value and the maximum volume value of the first audio equipment, the initial equipment volume is obtained; acquiring a scene volume threshold, and adjusting the initial equipment volume according to the scene volume threshold to obtain equipment output volume; and playing the audio data according to the output volume of the equipment. The relative volume of the audio data is judged according to the ratio relation, so that the current volume of the first audio device is adjusted to be the ideal initial device volume, and the playing volume is further adjusted based on the scene where the first audio device is located, so that the optimal device output volume is obtained.
Description
Technical Field
The invention relates to the technical field of audio control, in particular to a volume adjustment method and device based on the Internet of things.
Background
At present, the Internet of things (Internetof Things) is mainly applied to scenes such as intelligent home and intelligent logistics. If the existing software garden and other parks are mainly applied to the internet of things in the directions of realizing security management, energy control, intelligent building and the like. Does not go deep into a specific office scenario and teaching scenario.
Documents with audio, video, such as ppt, are commonly used in office and educational scenes for reporting presentations as well as teaching presentations. When playing audio or video, the initial volume of the audio or video is mainly controlled by the volume of the audio itself and the playing equipment. The current volume of the playing device is not usually noticed when playing audio or demonstration video, and the problems of over-volume or under-volume easily occur. Especially when the volume is too loud, resulting in a reduced experience for the listener.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the volume adjustment method and the volume adjustment device based on the Internet of things are used for adjusting the volume of the documents with the audio and synchronizing the volume of the demonstration system in the Internet of things.
In order to solve the technical problems, the invention adopts the following technical scheme:
The volume adjustment method based on the Internet of things comprises a demonstration system which is arranged in different spaces and connected based on the Internet of things, wherein the demonstration system comprises a camera device, first audio equipment and an intelligent terminal, and the intelligent terminal executes the following steps:
Acquiring audio data in a to-be-played presentation document in the intelligent terminal, wherein the document volume threshold of the to-be-played presentation document and the maximum volume value of the first audio device;
Extracting volume data in the audio data to obtain a document audio volume value;
obtaining a volume ratio value according to the ratio between the document audio volume value and the document volume threshold;
according to the volume ratio value and the maximum volume value of the first audio equipment, the initial equipment volume is obtained;
Acquiring a scene volume threshold, and adjusting the initial equipment volume according to the scene volume threshold to obtain equipment output volume;
playing the audio data according to the output volume of the equipment;
And synchronizing the output volume of the equipment to the audio equipment of at least one other demonstration system through the Internet of things.
In order to solve the technical problems, the invention adopts another technical scheme that:
The volume adjusting device based on the Internet of things comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the steps in the volume adjusting method based on the Internet of things when executing the computer program.
The invention has the beneficial effects that: the method comprises the steps of obtaining a document audio volume value by extracting volume data of audio data in a presentation document, namely obtaining a volume ratio value based on the ratio between the volume of the audio data and a document volume threshold after obtaining the volume of the audio data, namely judging the relative volume of the audio data according to the ratio relation, wherein when the volume of the audio data is large, the ratio value is large, the current volume of first audio equipment is reduced, when the volume of the audio data is small, the ratio value is small, the current volume of the first audio equipment is increased, the current volume of the first audio equipment is adjusted to be ideal initial equipment volume, finally obtaining a scene volume threshold to correct the initial equipment volume to obtain equipment output volume, namely further adjusting the play volume based on a scene where the first audio equipment is located, so that the optimal equipment output volume is obtained and used for playing the audio data, and the problem that the volume is overlarge or the volume is too small is avoided; and synchronizing the output volume of the equipment to the audio equipment of at least one other demonstration system through the Internet of things, so that the volume synchronization of a plurality of demonstration systems in the Internet of things is realized.
Drawings
Fig. 1 is a flowchart of steps of a volume adjustment method based on internet of things in an embodiment of the present invention;
Fig. 2 is a schematic structural diagram of a volume adjusting device based on the internet of things in an embodiment of the invention.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, a volume adjustment method based on the internet of things includes a demonstration system disposed in different spaces and connected based on the internet of things, the demonstration system includes a camera device, a first audio device and an intelligent terminal, and the intelligent terminal executes the following steps:
Acquiring audio data in a to-be-played presentation document in the intelligent terminal, wherein the document volume threshold of the to-be-played presentation document and the maximum volume value of the first audio device;
Extracting volume data in the audio data to obtain a document audio volume value;
obtaining a volume ratio value according to the ratio between the document audio volume value and the document volume threshold;
according to the volume ratio value and the maximum volume value of the first audio equipment, the initial equipment volume is obtained;
Acquiring a scene volume threshold, and adjusting the initial equipment volume according to the scene volume threshold to obtain equipment output volume;
playing the audio data according to the output volume of the equipment;
And synchronizing the output volume of the equipment to the audio equipment of at least one other demonstration system through the Internet of things.
From the above description, the beneficial effects of the invention are as follows: the method comprises the steps of obtaining a document audio volume value by extracting volume data of audio data in a presentation document, namely obtaining a volume ratio value based on the ratio between the volume of the audio data and a document volume threshold after obtaining the volume of the audio data, namely judging the relative volume of the audio data according to the ratio relation, wherein when the volume of the audio data is large, the ratio value is large, the current volume of first audio equipment is reduced, when the volume of the audio data is small, the ratio value is small, the current volume of the first audio equipment is increased, the current volume of the first audio equipment is adjusted to be ideal initial equipment volume, finally obtaining a scene volume threshold to correct the initial equipment volume to obtain equipment output volume, namely further adjusting the play volume based on a scene where the first audio equipment is located, so that the optimal equipment output volume is obtained and used for playing the audio data, and the problem that the volume is overlarge or the volume is too small is avoided; and synchronizing the output volume of the equipment to the audio equipment of at least one other demonstration system through the Internet of things, so that the volume synchronization of a plurality of demonstration systems in the Internet of things is realized.
Further, the initial device volume according to the volume ratio value and the maximum volume value of the first audio device includes:
obtaining a complementary ratio according to the volume ratio value;
and multiplying the complementary ratio value by the maximum volume value of the first audio device to obtain the initial device volume.
As can be seen from the above description, the complementary ratio is obtained based on the volume ratio, that is, the larger the volume ratio is, the smaller the complementary ratio is, so that when the volume of the audio data is larger, the complementary ratio is smaller for reducing the current volume of the first audio device, and when the volume of the audio data is smaller, the complementary ratio is larger for increasing the current volume of the first audio device, so that the current volume of the first audio device is adjusted to the ideal initial device volume.
Further, the method further comprises the following steps:
Acquiring space information of a first space where the first audio device is located and type information of the first audio device;
associating the first space with the first audio device to obtain a spatial audio ID;
Obtaining a classification number according to the space information and the type information;
and storing the classification number and the spatial audio ID in an associated mode.
As can be seen from the above description, by associating the first space with the first audio device to obtain the spatial audio ID and obtaining the classification number according to the spatial information of the first space and the type information of the first audio device, different spatial scenes and audio devices can be classified according to the spatial information and the type information corresponding to different presentation systems, so that different volume control modes can be generated for different spatial scenes and audio device types.
Further, the method further comprises the following steps:
Acquiring a current space audio frequency ID corresponding to a current space where the demonstration document is located, and acquiring an associated current classification number according to the current space audio frequency ID;
acquiring school timetable information, and judging a target space corresponding to the demonstration document according to the school timetable information;
acquiring a target space audio frequency ID corresponding to the target space, and acquiring an associated target classification number according to the target space audio frequency ID;
And if the target classification number is the same as the current classification number, synchronizing the output volume of the device corresponding to the presentation document and the current spatial audio ID to the audio device in the target space through the Internet of things.
According to the description, the corresponding class number is obtained after the current spatial audio ID corresponding to the current space where the demonstration document is located is obtained, meanwhile, the target space corresponding to the demonstration document and the corresponding target spatial audio ID and the target class number are obtained according to the class list information, when the target class number and the current class number are the same, the Internet of things can accurately synchronize the output volume of equipment to audio equipment in the target space based on the target spatial audio ID and the target class number, namely when the same demonstration document is required to be played in another demonstration system in the Internet of things, the output volume of equipment can be synchronized to the corresponding demonstration system through the Internet of things based on the class number and the class list information, so that the corresponding demonstration system does not need to calculate the output volume of equipment, and the calculated amount is reduced.
Further, the method further comprises the following steps:
Judging whether a volume adjustment instruction is received in a preset time period;
if not, recording the document audio volume value, the initial equipment volume, the finally determined equipment output volume and the spatial audio ID to obtain historical volume data;
if yes, the output volume of the equipment is adjusted according to the volume adjustment instruction.
According to the description, when the user does not adjust the output volume of the device after the preset time period passes, the output volume of the current device is indicated to meet the requirement, and the information corresponding to the demonstration document is recorded to obtain the historical volume data, so that the historical volume data is used as a data basis for subsequent volume adjustment, and the precision of volume adjustment is improved.
Further, obtaining the document volume threshold includes:
Acquiring all the document audio volume values and initial equipment volume under the same spatial information in the historical volume data;
Fitting all the document audio volume values and the initial equipment volume to obtain a first corresponding relation;
and obtaining the document volume threshold corresponding to the space information according to the first corresponding relation.
According to the above description, all the document audio volume values under the same spatial information in the historical volume data are fitted with the initial equipment volume to obtain a first corresponding relation, and a document volume threshold is generated through the first corresponding relation, so that a proper volume proportion value can be obtained through the document volume threshold and the self volume of the audio data, and further the ideal initial equipment volume is obtained.
Further, the acquiring the scene volume threshold includes:
Acquiring all initial equipment volume and equipment output volume under the same space information in the historical volume data;
Fitting all the initial equipment volumes and the equipment output volumes to obtain a second corresponding relation;
And obtaining the scene volume threshold corresponding to the space information according to the second corresponding relation.
As can be seen from the above description, fitting is performed on all initial device volumes and device output volumes based on the same spatial information in the historical volume data to obtain a second corresponding relationship, and a scene volume threshold is generated through the second corresponding relationship, so that the initial device volumes can be adjusted through the scene volume threshold to obtain proper device output volumes.
Further, the first audio device includes at least two sub-audio devices, and further includes:
acquiring a space image of a space where the current demonstration system is located;
Identifying personnel and sub-audio equipment in the space image to obtain the number and the positions of the personnel and the number of the sub-audio equipment;
selecting at least one sub-audio device for playing according to the number of people or/and the positions of the people; and adjusting the output volume of the equipment according to the number of people or/and the positions of the people.
As can be seen from the above description, by acquiring the number of persons and the positions of the persons and the number of sub-audio devices in the current space, and selecting the corresponding number of sub-audio devices for playback based on the number of persons and the positions of the persons, and adjusting the device output volume, the most comfortable sound output to the conference participants is given, and unnecessary energy consumption is reduced.
Corresponding space information can be acquired in a mode of acquiring the space image, and related space information can be acquired more conveniently; meanwhile, existing indoor environments such as classrooms, conference rooms and other scenes are usually provided with image pickup devices, and the cost of the devices is not increased.
Further, the spatial information includes length information, width information, and height information;
the acquiring the scene volume threshold value comprises the following steps:
Obtaining an initial scene volume threshold according to the length information, the width information and the height information;
And taking the initial scene volume threshold value as the scene volume threshold value.
From the above description, it can be seen that the scene volume threshold is obtained through the length information, the width information and the height information of the first space where the first audio device is located, that is, the initial scene volume threshold can be obtained based on the space information of the scene, so that the output volume of the device can adapt to the current space scene, and the best audio playing effect can be achieved as much as possible.
The invention further provides a volume adjusting device based on the Internet of things, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps in the volume adjusting method based on the Internet of things when executing the computer program.
The volume adjustment method and the volume adjustment device based on the Internet of things can be applied to conferences and teaching scenes, volume adjustment of audio documents in the conferences and the teaching scenes and volume synchronization of a demonstration system in the Internet of things are realized based on the Internet of things, and the following description is made by a specific embodiment:
Example 1
Referring to fig. 1, a volume adjustment method based on the internet of things includes a demonstration system disposed in different spaces and connected based on the internet of things, the demonstration system includes a camera device, a first audio device and an intelligent terminal, and the intelligent terminal executes the following steps:
S1, acquiring audio data in a to-be-played presentation document in the intelligent terminal, wherein the document volume threshold of the to-be-played presentation document and the maximum volume value of the first audio device; the audio data is audio contained in audio or video in the demonstration document, wherein the audio data comprises PCM (Pulse Code Modulation ) audio data, is uncompressed audio sampling data naked stream, and is standard digital audio data converted by analog signals through sampling, quantization and coding; in an alternative embodiment, the document volume threshold may be based on the document audio volume values extracted from multiple groups of presentation documents as samples, and the average maximum volume value (the larger the waveform amplitude in PCM data is, the larger the representing the volume) is obtained by counting the document audio volume values therein, and the maximum volume value is used as the document volume threshold; the first audio device maximum volume value may be derived from device information of the first audio device.
S2, extracting volume data in the audio data to obtain a document audio volume value; acquiring waveform data in the PCM data to obtain the document audio volume value; wherein, the larger the waveform amplitude in the PCM data is, the larger the volume is represented; the volume data in the audio data can be understood as the volume of the audio data when being collected, that is, the volume data is the attribute of the audio data and cannot be changed by subsequent adjustment.
S3, obtaining a volume proportion value according to the ratio between the document audio volume value and the document volume threshold value; in an alternative embodiment, the document volume threshold may be set to 1; meanwhile, normalizing the document audio volume value after the document audio volume value is acquired, limiting the document audio volume value to be in the range of (0, 1), and then comparing the normalized document audio volume value with the document volume threshold value; if the normalized document audio volume value is 0.4, the volume ratio value is 0.4.
S4, according to the volume ratio value and the maximum volume value of the first audio equipment, the initial equipment volume is obtained; wherein in an alternative embodiment this is achieved by the following steps:
S41, obtaining a complementary ratio according to the volume ratio value; if the document audio volume value is 0.4, the corresponding complementary ratio is 0.6;
S42, multiplying the complementary ratio value by the maximum volume value of the first audio device to obtain the initial device volume; i.e. the complementary ratio is 0.6, multiplied by the maximum volume value of the first audio device to obtain the initial device volume.
S5, acquiring a scene volume threshold, and adjusting the initial equipment volume according to the scene volume threshold to obtain equipment output volume; the method comprises the steps that corresponding scene volume thresholds can be obtained through obtaining space information corresponding to a scene, for example, space images acquired based on a camera are extracted through an image analysis algorithm, the space information in the space images comprises length information, width information and height information, and initial scene volume thresholds are obtained according to the length information, the width information and the height information; taking the initial scene volume threshold value as the scene volume threshold value; the corresponding initial scene volume threshold is determined according to the size of the space scene, if the space scene is a ladder classroom or a large conference hall, the initial scene volume threshold is larger; if the space scene is a common small classroom, the volume threshold of the initial scene is smaller; or may be determined manually at the time of the initial measurement.
S6, playing the audio data according to the output volume of the equipment.
And S7, synchronizing the output volume of the equipment to the audio equipment of at least one other demonstration system through the Internet of things.
Example two
The difference between the present embodiment and the first embodiment is that a specific manner of outputting volume through the internet of things synchronization device is defined, and the specific manner is that: and associating the space scene with the equipment in the space scene, and adjusting the document volume threshold and the scene volume threshold according to the association relation.
Wherein associating the spatial scene with the device in the spatial scene comprises the steps of:
a1, acquiring spatial information of a first space in which the first audio device is located and type information of the first audio device; if the first space is a classroom one or a first meeting room, in this embodiment, the classroom is taken as an example for explanation, and the space information of the classroom one is obtained, including length information, width information and height information; acquiring corresponding type information of a player in a classroom I;
A2, associating the first space with the first audio device to obtain a spatial audio ID; i.e., associating classroom one with player one, obtaining a spatial audio ID, such as 001001; meanwhile, the presentation system of classroom one will record this spatial audio ID: such as 001001.
A3, obtaining a classification number according to the space information and the type information; for example, class number 1/2/3 represents a small space, a medium space and a large space, respectively; classifying the classrooms according to the corresponding space information of the classrooms; meanwhile, the classroom with the same spatial information usually has the matched equipment consistent, namely, the classrooms can be classified according to the spatial information only; if the type information needs to be further classified, it can be set to 11/12/13, which represents different type information in a small space.
A4, storing the classification number in an associated mode and the spatial audio ID; if the spatial audio ID is 001001 and the classification number is 11, storing the spatial audio ID in an associated mode; or combining two groups, e.g., to obtain an integrated ID:11001001, the presentation system will record the syndicated ID:11001001; wherein, the serial numbers of the classification number and the ID can be set according to the actual demands.
Meanwhile, in the playing process of the demonstration document, judging whether a volume adjustment instruction is received in a preset time period; if not, recording the document audio volume value, the initial equipment volume, the finally determined equipment output volume and the spatial audio ID to obtain historical volume data; if yes, the output volume of the equipment is adjusted according to the volume adjustment instruction. When the user does not adjust the output volume of the device after the preset time period, the output volume of the current device is indicated to meet the requirement, the information corresponding to the demonstration document is recorded to obtain the historical volume data, and the historical volume data is used as the data base of the subsequent volume adjustment. Any demonstration system in the internet of things can acquire the historical data of all other demonstration systems in the internet of things, or set a limiting condition, for example, only the historical data of the demonstration system with the same type of the spatial audio ID or the integration ID recorded by the demonstration system can be acquired.
In an optional implementation manner, the volume of the corresponding audio device is further adjusted according to the number of the conference participants, the number of the audio devices and the distance between the audio device and the conference participants in the space, and the volume is specifically:
b1, acquiring a space image of a space where the current demonstration system is located; acquiring the space image by a camera device in the space;
b2, identifying personnel and sub-audio equipment in the space image to obtain the personnel number, the personnel positions and the sub-audio equipment number; after the space image is acquired, identifying the conference participants and audio equipment in the space image, and obtaining the number and positions of the conference participants and the number and positions of sub audio equipment; the number of the sub audio devices can also be realized by the intelligent terminal identifying the number of the sub audio devices in the space, and the intelligent terminal can also directly identify the number of the audio devices in the space because the audio devices are connected with the intelligent terminal;
b3, selecting at least one sub-audio device for playing according to the personnel number or/and the personnel position; and adjusting the output volume of the equipment according to the number of people or/and the positions of the people.
The mode of adjusting the output volume of the equipment is as follows: when a space image is acquired through a camera device in the space, the volume of corresponding audio equipment is adjusted through the position of a conference participant and the position of the corresponding audio equipment; if four groups of audio devices are arranged in the space, the four groups of audio devices are respectively a first audio device, a second audio device, a third audio device and a fourth audio device; calculating the nearest distances among the conference participants, the first audio device, the second audio device, the third audio device and the fourth audio device respectively to obtain a first nearest distance, a second nearest distance, a third nearest distance and a fourth nearest distance;
Respectively correcting the output volume of the corresponding devices of the first audio device, the second audio device, the third audio device and the fourth audio device according to the first nearest distance, the second nearest distance, the third nearest distance and the fourth nearest distance; adjusting the device output volume according to the first closest distance, the second closest distance, the third closest distance, and the ratio between the fourth closest distance and the spatial center distance, for example, by calculating the first audio device, the second audio device, the third audio device, and the fourth audio device to spatial center distance; meanwhile, when the calculated first closest distance, second closest distance, third closest distance and fourth closest distance are larger than the distance from the audio equipment to the space center, the audio equipment does not need to play; if the meeting personnel are all located in front of the meeting room or classroom, then the audio device located behind does not play.
The method for selecting at least one sub-audio device for playing is as follows: for example, when the number of participants is less than a set number threshold, only the front-located audio device is activated; when the number of meeting participants is larger than the set number threshold, all audio devices are started at the same time; the threshold number of people may be set according to a specific size of space.
In an alternative embodiment, the method further comprises the steps of:
C1, acquiring a current space audio frequency ID corresponding to a current space where the demonstration document is located, and acquiring an associated current classification number according to the current space audio frequency ID; if the current space is classroom one, acquiring the audio ID of the current space as 001001 and the associated class number as 11; or directly obtain the syndicated ID:11001001.
C2, acquiring school time table information, and judging a target space corresponding to the demonstration document according to the school time table information; for example, the class list information includes a first class, a second class and a third class, and the obtained corresponding target space is the second class and the third class.
C3, acquiring a target space audio frequency ID corresponding to the target space, and acquiring an associated target classification number according to the target space audio frequency ID; if the spatial audio ID recorded by the presentation system in the second classroom is acquired as follows: 002001, class number 11; the acquired spatial audio ID recorded by the demonstration system in the classroom is as follows: 003001, class number 11;
C4, synchronizing the output volume of the device corresponding to the audio ID of the demonstration document and the current space to the audio device in the target space through the Internet of things if the target classification number is the same as the current classification number; for example: because class numbers of the second class and the third class correspond to class numbers of the first class, the output volume of the equipment corresponding to the demonstration document is synchronized to the second class and the third class through the Internet of things; so that when the presentation document is used in classroom two and classroom three, the corresponding device output volume does not need to be calculated; the internet of things can perform data transmission through a low-power Wide-Area Network (LPWAN); each presentation system may act as a transmission node for data transmission.
The step S1 of acquiring the document volume threshold value comprises the following steps:
s11, acquiring all the document audio volume values and initial equipment volume under the same spatial information in the historical volume data; because the presentation systems in the first classroom, the second classroom and the third classroom are of the same type, the audio volume values and the initial device volume of all documents in the first classroom, the second classroom and the third classroom can be obtained as the historical volume data.
S12, fitting all the document audio volume values and the initial equipment volume to obtain a first corresponding relation; if the document audio volume value is taken as an independent variable, the initial equipment volume is taken as the dependent variable to perform curve fitting to obtain a first corresponding relation function; or reversely pushing the volume values of all the documents and the volume of the initial equipment to obtain corresponding volume proportional values, namely a first corresponding relation;
S13, obtaining the document volume threshold corresponding to the space information according to the first corresponding relation; namely, reversely deducing the volume ratio value (first corresponding relation) and the audio volume value of the document to obtain the volume threshold value of the document; or in an optional implementation manner, when the first corresponding relation function is used as the document volume threshold, step S3 and step S4 are skipped to obtain the initial device volume directly according to the first corresponding relation function;
the step S5 of acquiring the scene volume threshold includes:
s51, acquiring all initial equipment volume and equipment output volume under the same space information in the historical volume data;
S52, fitting all the initial equipment volumes and the equipment output volumes to obtain a second corresponding relation; and performing curve fitting by taking the initial equipment volume as an independent variable and the equipment output volume as the dependent variable to obtain a second corresponding relation function.
S53, obtaining the scene volume threshold corresponding to the space information according to the second corresponding relation; and taking the second corresponding relation function as the scene volume threshold value.
Example III
Referring to fig. 2, a volume adjustment device based on the internet of things includes a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the steps in the volume adjustment method based on the internet of things as described in the first embodiment and the second embodiment when executing the computer program.
In summary, according to the volume adjustment method and device based on the internet of things provided by the invention, the volume data of the audio data in the presentation document is extracted to obtain the document audio volume value, namely, after the volume of the audio data is obtained, the volume ratio value is obtained based on the ratio between the volume of the audio data and the document volume threshold, namely, the relative volume of the audio data can be judged according to the ratio relation, when the volume of the audio data is larger, the ratio value is large, the current volume of the first audio device is reduced, and when the volume of the audio data is smaller, the ratio value is small, the current volume of the first audio device is increased, so that the current volume of the first audio device is adjusted to the ideal initial device volume, finally, the scene volume threshold is obtained to correct the initial device volume to obtain the device output volume, namely, the playing volume can be further adjusted based on the scene where the first audio device is located, so that the optimal device output volume is obtained and used for playing the audio data, and the problem that the volume is overlarge or the volume is too small is avoided; and synchronizing the output volume of the equipment to the audio equipment of at least one other demonstration system through the Internet of things, so that the volume synchronization of a plurality of demonstration systems in the Internet of things is realized.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.
Claims (8)
1. The volume adjustment method based on the Internet of things is characterized by comprising demonstration systems which are arranged in different spaces and are connected based on the Internet of things, wherein each demonstration system comprises a camera device, first audio equipment and an intelligent terminal, and the intelligent terminal executes the following steps:
Acquiring audio data in a to-be-played presentation document in the intelligent terminal, wherein the document volume threshold of the to-be-played presentation document and the maximum volume value of the first audio device;
Extracting volume data in the audio data to obtain a document audio volume value;
obtaining a volume ratio value according to the ratio between the document audio volume value and the document volume threshold;
according to the volume ratio value and the maximum volume value of the first audio equipment, the initial equipment volume is obtained;
Acquiring a scene volume threshold, and adjusting the initial equipment volume according to the scene volume threshold to obtain equipment output volume;
playing the audio data according to the output volume of the equipment;
Synchronizing the device output volume to an audio device of another at least one presentation system through the internet of things;
Classifying different spatial scenes and audio equipment according to the spatial information corresponding to different demonstration systems and the type information of the audio equipment, and specifically: acquiring space information of a first space where the first audio device is located and type information of the first audio device; associating the first space with the first audio device to obtain a spatial audio ID; obtaining a classification number according to the space information and the type information; storing the classification number and the spatial audio ID in an associated mode;
When the same presentation document needs to be played in another presentation system in the Internet of things, synchronizing the output volume of the equipment to the corresponding presentation system through the Internet of things based on the class number and the class list information, and specifically: acquiring a current space audio frequency ID corresponding to a current space where the demonstration document is located, and acquiring an associated current classification number according to the current space audio frequency ID; acquiring school timetable information, and judging a target space corresponding to the demonstration document according to the school timetable information; acquiring a target space audio frequency ID corresponding to the target space, and acquiring an associated target classification number according to the target space audio frequency ID; and if the target classification number is the same as the current classification number, synchronizing the output volume of the device corresponding to the presentation document and the current spatial audio ID to the audio device in the target space through the Internet of things.
2. The method for adjusting the volume based on the internet of things according to claim 1, wherein the obtaining the initial device volume according to the volume ratio value and the maximum volume value of the first audio device comprises:
obtaining a complementary ratio according to the volume ratio value;
and multiplying the complementary ratio value by the maximum volume value of the first audio device to obtain the initial device volume.
3. The volume adjustment method based on the internet of things of claim 1, further comprising:
Judging whether a volume adjustment instruction is received in a preset time period;
if not, recording the document audio volume value, the initial equipment volume, the finally determined equipment output volume and the spatial audio ID to obtain historical volume data;
if yes, the output volume of the equipment is adjusted according to the volume adjustment instruction.
4. The method for adjusting volume based on internet of things according to claim 3, wherein obtaining the document volume threshold comprises:
Acquiring all the document audio volume values and initial equipment volume under the same spatial information in the historical volume data;
Fitting all the document audio volume values and the initial equipment volume to obtain a first corresponding relation;
and obtaining the document volume threshold corresponding to the space information according to the first corresponding relation.
5. The method for adjusting volume based on internet of things according to claim 3, wherein the obtaining the scene volume threshold comprises:
Acquiring all initial equipment volume and equipment output volume under the same space information in the historical volume data;
Fitting all the initial equipment volumes and the equipment output volumes to obtain a second corresponding relation;
And obtaining the scene volume threshold corresponding to the space information according to the second corresponding relation.
6. The method for adjusting volume based on internet of things according to claim 1, wherein the first audio device comprises at least two sub audio devices, further comprising:
acquiring a space image of a space where the current demonstration system is located;
Identifying personnel and sub-audio equipment in the space image to obtain the number and the positions of the personnel and the number of the sub-audio equipment;
selecting at least one sub-audio device for playing according to the number of people or/and the positions of the people; and adjusting the output volume of the equipment according to the number of people or/and the positions of the people.
7. The volume adjustment method based on the internet of things according to claim 1, wherein the spatial information includes length information, width information and height information;
the acquiring the scene volume threshold value comprises the following steps:
Obtaining an initial scene volume threshold according to the length information, the width information and the height information;
And taking the initial scene volume threshold value as the scene volume threshold value.
8. A volume adjustment device based on the internet of things, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of a volume adjustment method based on the internet of things according to any one of claims 1-7 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410122393.7A CN117687595B (en) | 2024-01-30 | 2024-01-30 | Volume adjustment method and device based on Internet of things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410122393.7A CN117687595B (en) | 2024-01-30 | 2024-01-30 | Volume adjustment method and device based on Internet of things |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117687595A CN117687595A (en) | 2024-03-12 |
CN117687595B true CN117687595B (en) | 2024-05-28 |
Family
ID=90135546
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410122393.7A Active CN117687595B (en) | 2024-01-30 | 2024-01-30 | Volume adjustment method and device based on Internet of things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117687595B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917201A (en) * | 2012-07-18 | 2013-02-06 | 北京博惠聚通科技有限责任公司 | Method and system for logistics scheduling based on Internet of things (IOT) and cloud computing |
CN104269182A (en) * | 2014-09-18 | 2015-01-07 | 歌尔声学股份有限公司 | Synchronized audio playing method, device and system |
CN104484190A (en) * | 2014-12-31 | 2015-04-01 | 广东欧珀移动通信有限公司 | Volume adjusting method and audio equipment |
CN105812574A (en) * | 2016-05-03 | 2016-07-27 | 北京小米移动软件有限公司 | Volume adjusting method and device |
CN106775563A (en) * | 2016-12-13 | 2017-05-31 | 珠海市魅族科技有限公司 | The method and device of volume adjusting |
CN107479852A (en) * | 2017-08-18 | 2017-12-15 | 广东欧珀移动通信有限公司 | volume adjusting method, device, terminal device and storage medium |
CN114710732A (en) * | 2022-03-30 | 2022-07-05 | 歌尔科技有限公司 | Audio equipment and audio playing control method, system, equipment and medium |
CN114879929A (en) * | 2022-04-11 | 2022-08-09 | 维沃移动通信有限公司 | Multimedia file playing method and device |
CN115473927A (en) * | 2021-05-25 | 2022-12-13 | Oppo广东移动通信有限公司 | Volume synchronization method and device, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3089363A1 (en) * | 2015-04-29 | 2016-11-02 | Advanced Digital Broadcast S.A. | System and method for audio volume control |
-
2024
- 2024-01-30 CN CN202410122393.7A patent/CN117687595B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917201A (en) * | 2012-07-18 | 2013-02-06 | 北京博惠聚通科技有限责任公司 | Method and system for logistics scheduling based on Internet of things (IOT) and cloud computing |
CN104269182A (en) * | 2014-09-18 | 2015-01-07 | 歌尔声学股份有限公司 | Synchronized audio playing method, device and system |
CN104484190A (en) * | 2014-12-31 | 2015-04-01 | 广东欧珀移动通信有限公司 | Volume adjusting method and audio equipment |
CN105812574A (en) * | 2016-05-03 | 2016-07-27 | 北京小米移动软件有限公司 | Volume adjusting method and device |
CN106775563A (en) * | 2016-12-13 | 2017-05-31 | 珠海市魅族科技有限公司 | The method and device of volume adjusting |
CN107479852A (en) * | 2017-08-18 | 2017-12-15 | 广东欧珀移动通信有限公司 | volume adjusting method, device, terminal device and storage medium |
CN115473927A (en) * | 2021-05-25 | 2022-12-13 | Oppo广东移动通信有限公司 | Volume synchronization method and device, electronic equipment and storage medium |
CN114710732A (en) * | 2022-03-30 | 2022-07-05 | 歌尔科技有限公司 | Audio equipment and audio playing control method, system, equipment and medium |
CN114879929A (en) * | 2022-04-11 | 2022-08-09 | 维沃移动通信有限公司 | Multimedia file playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN117687595A (en) | 2024-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220199121A1 (en) | Automatic video editing method and portable terminal | |
KR102050865B1 (en) | Method and device for synchronizing display of images | |
CN209980508U (en) | Wisdom blackboard, and wisdom classroom's teaching system | |
US8130978B2 (en) | Dynamic switching of microphone inputs for identification of a direction of a source of speech sounds | |
CN100380441C (en) | Estimating signal power in compressed audio | |
Gabrielsson et al. | Perceived sound quality of high-fidelity loudspeakers | |
Patricio et al. | Toward six degrees of freedom audio recording and playback using multiple ambisonics sound fields | |
JP2016100033A (en) | Reproduction control apparatus | |
CN110599835A (en) | Interactive computer remote education system | |
CN117687595B (en) | Volume adjustment method and device based on Internet of things | |
JP2002091291A (en) | Data communication system for piano lesson | |
Zielinski et al. | Effects of down-mix algorithms on quality of surround sound | |
Zielinski et al. | Subjective audio quality trade-offs in consumer multichannel audio-visual delivery systems. Part I: Effects of high frequency limitation | |
CN109076251A (en) | Teleconference transmission | |
US20240064485A1 (en) | Systems and methods for sound-enhanced meeting platforms | |
CN111445742B (en) | Vocal music teaching system based on distance education system | |
WO2021246104A1 (en) | Control method and control system | |
WO2022068570A1 (en) | Audio watermark adding method and device, audio watermark analyzing method and device, and medium | |
CN112071132B (en) | Audio and video teaching equipment and intelligent teaching system | |
US20230353800A1 (en) | Cheering support method, cheering support apparatus, and program | |
Vander Wilt et al. | A new approach to creating and deploying audio description for live theater | |
Sumec | Multi camera automatic video editing | |
DE102020127147A1 (en) | DETERMINATION PROCEDURE AND RELEVANT SYSTEM FOR MUSIC PLAYBACK TO DETERMINE WHETHER MUSIC IS PLAYED ON THE BASIS OF IMAGE INFORMATION | |
US20240179381A1 (en) | Information processing device, generation method, and program | |
CN117591058B (en) | Display method, device and storage medium for multi-person speech |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |