CN112672259A - Loudspeaker control method and device - Google Patents

Loudspeaker control method and device Download PDF

Info

Publication number
CN112672259A
CN112672259A CN201910984621.0A CN201910984621A CN112672259A CN 112672259 A CN112672259 A CN 112672259A CN 201910984621 A CN201910984621 A CN 201910984621A CN 112672259 A CN112672259 A CN 112672259A
Authority
CN
China
Prior art keywords
distance
loudspeaker
speaker
determining
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910984621.0A
Other languages
Chinese (zh)
Other versions
CN112672259B (en
Inventor
丛若男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Horizon Robotics Technology Research and Development Co Ltd
Original Assignee
Beijing Horizon Robotics Technology Research and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Horizon Robotics Technology Research and Development Co Ltd filed Critical Beijing Horizon Robotics Technology Research and Development Co Ltd
Priority to CN201910984621.0A priority Critical patent/CN112672259B/en
Publication of CN112672259A publication Critical patent/CN112672259A/en
Application granted granted Critical
Publication of CN112672259B publication Critical patent/CN112672259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
  • Stereophonic System (AREA)

Abstract

Disclosed are a speaker control method, apparatus, computer-readable storage medium and electronic device, the method comprising: acquiring the current position and the target position of the movable equipment; determining a first distance between the current location and the target location; determining a loudspeaker parameter corresponding to the first distance; and controlling the output of the loudspeaker according to the loudspeaker parameter. According to the technical scheme, the output of the loudspeaker is controlled through the loudspeaker parameter corresponding to the distance between the current position and the target position, so that a user can feel the distance between the current position and the target position, and the user experience is improved.

Description

Loudspeaker control method and device
Technical Field
The present disclosure relates to the field of speaker technologies, and more particularly, to a speaker control method and apparatus.
Background
With the development of intelligent networked automobiles, voice interaction has been widely applied to automobiles, and when a driver navigates, the speaker is usually required to be controlled, so that the driver can conveniently acquire navigation information through hearing, and the driver can concentrate on driving.
At present, the navigation content is mainly subjected to voice synthesis so as to obtain navigation voice, and the navigation voice is used for controlling the output of a loudspeaker.
However, the speaker only conveys the navigation content to the user, and the sound played by the speaker is not greatly changed, thereby reducing the user experience.
Disclosure of Invention
The present application is proposed to solve the above-mentioned technical problems. Embodiments of the present application provide a speaker control method, a speaker control apparatus, a computer-readable storage medium, and an electronic device, which enable a user to feel how far and near a current location is from a target location, thereby improving user experience.
According to an aspect of the present application, there is provided a speaker control method including:
acquiring the current position and the target position of the movable equipment;
determining a first distance between the current location and the target location;
determining a loudspeaker parameter corresponding to the first distance;
and controlling the output of the loudspeaker according to the loudspeaker parameter.
According to a second aspect of the present application, there is provided a speaker control apparatus comprising:
the acquisition module is used for acquiring the current position and the target position of the movable equipment;
a distance determination module for determining a first distance between the current location and the target location;
the first parameter determining module is used for determining the loudspeaker parameter corresponding to the first distance;
and the first control module is used for controlling the output of the loudspeaker according to the loudspeaker parameter.
According to a third aspect of the present application, there is provided a computer-readable storage medium storing a computer program for executing the speaker control method described above.
According to a fourth aspect of the present application, there is provided an electronic apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instructions from the memory and executing the instructions to realize the loudspeaker control method.
Compared with the prior art, the loudspeaker control method, the loudspeaker control device, the computer readable storage medium and the electronic equipment provided by the application at least have the following beneficial effects:
according to the embodiment, the output of the loudspeaker is controlled through the loudspeaker parameter corresponding to the distance between the current position and the target position, so that a user can feel the distance between the current position and the target position, and the user experience is improved.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 is a schematic flowchart of a speaker control method according to an exemplary embodiment of the present application.
Fig. 2 is a schematic flowchart of step 103 in a speaker control method according to an exemplary embodiment of the present application.
Fig. 3 is a schematic flowchart of step 1033 in a speaker control method according to an exemplary embodiment of the present application.
FIG. 4 is a schematic diagram of an application scenario to which an exemplary embodiment of the present application is applicable.
Fig. 5 is a flowchart illustrating a speaker control method according to another exemplary embodiment of the present application.
Fig. 6 is a schematic diagram of an application scenario to which another exemplary embodiment of the present application is applicable.
Fig. 7 is a flowchart illustrating a speaker control method according to another exemplary embodiment of the present application.
FIG. 8 is a schematic illustration of an application scenario to which yet another exemplary embodiment of the present application is applicable.
Fig. 9 is a flowchart illustrating a speaker control method according to still another exemplary embodiment of the present application.
FIG. 10 is a schematic diagram of an application scenario in which yet another exemplary embodiment of the present application is applicable.
Fig. 11 is a first schematic structural diagram of a speaker control apparatus according to an exemplary embodiment of the present application.
Fig. 12 is a schematic structural diagram of a speaker control apparatus according to an exemplary embodiment of the present application.
Fig. 13 is a schematic structural diagram of a parameter determination unit 1133 in a second structural diagram of a speaker control apparatus according to an exemplary embodiment of the present application.
Fig. 14 is a schematic structural diagram of a speaker control apparatus according to another exemplary embodiment of the present application.
Fig. 15 is a schematic structural diagram of a speaker control apparatus according to still another exemplary embodiment of the present application.
Fig. 16 is a block diagram of an electronic device provided in an exemplary embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
Summary of the application
With the development of intelligent internet automobiles, in order to ensure the safety of people and vehicles and facilitate drivers to know navigation information and other information, voice interaction is widely applied to automobiles, so that the drivers generally need to control a loudspeaker in the driving process, and the drivers can conveniently acquire the navigation information and other information through hearing, so that the drivers can concentrate on driving.
At present, the navigation information and other information are mainly subjected to voice synthesis so as to acquire a voice signal, and the acquired voice signal is used for controlling the output of a loudspeaker.
However, the speaker usually only conveys the navigation information and other information to the user, and the sound played by the speaker does not change greatly, thereby reducing the user experience.
According to the method and the device, the output of the loudspeaker is controlled through the loudspeaker parameter corresponding to the distance between the current position and the target position, so that a user can conveniently obtain information through hearing, and the user can feel the distance between the current position and the target position, so that the user experience is improved, the driver's spirit is more concentrated, and the safety of people and vehicles is ensured.
Exemplary method
Fig. 1 is a schematic flowchart of a speaker control method according to a first exemplary embodiment of the present application.
The embodiment can be applied to electronic equipment, and particularly can be applied to a server or a general computer. As shown in fig. 1, a speaker control method according to a first exemplary embodiment of the present application includes at least the following steps:
step 101, acquiring a current position and a target position of a movable device.
The current position specifically refers to coordinates of a position of the movable device at the current time corresponding to the world coordinate system, and the target position specifically refers to coordinates of a destination position to which the movable device is to be moved corresponding to the world coordinate system.
In one possible implementation, the current position and the target position of the mobile device are obtained at preset time intervals or in real time when the mobile device starts to navigate. In another possible implementation manner, user requirements in the mobile device are acquired, whether voice broadcasting is needed or not is determined, and when the voice broadcasting is needed, the current position and the target position of the mobile device are acquired.
A movable device particularly refers to an object capable of moving, such as a car. For example, the mobile device is an automobile, when the automobile has a navigation demand, a driver or a passenger in the automobile inputs a destination on a navigation page of a central control screen of the automobile, and then determines a position of the destination, which corresponds to a high-precision map stored in the automobile, on the automobile, wherein the position is a target position; a global positioning system is usually provided in an automobile, and the current position of the automobile can be determined according to the global positioning system.
Step 102, determining a first distance between the current position and the target position.
The first distance indicates a length of a travel path between the current position to the target position. Specifically, a first driving path planned in advance by the movable equipment is obtained, the starting point of the first driving path is the starting point of navigation, the end point of the first driving path is the destination of navigation, the destination of navigation is the target position, the position of the current position on the first driving path is determined, the driving path between the current position and the target position of the movable equipment in the first driving path is determined as a second driving path, and the length of the second driving path is determined as a first distance.
And 103, determining a loudspeaker parameter corresponding to the first distance.
The speaker parameters indicate one or more variables of the speaker, each of which may control other variables that vary as they vary. Considering that the distance of the mobile device changes rapidly during the driving process, the distances within a certain range may correspond to the same speaker parameters, specifically, a plurality of different distances are determined within a certain distance interval according to a preset data generation rule, and the data generation rule may be an equal interval, an equal difference, an equal product, or other data generation manners. The method comprises the steps of regulating and controlling loudspeaker parameters aiming at each distance, enabling a plurality of different distances to correspond to different loudspeaker parameters respectively, enabling the loudspeaker parameters to indicate the distance, storing the different loudspeaker parameters corresponding to the different distances in the electronic equipment, determining a first distance, determining a second distance closest to the first distance from the different distances, and determining the loudspeaker parameters corresponding to the second distance as the loudspeaker parameters corresponding to the first distance.
Here, the speaker parameter includes, but is not limited to, the sound volume of the speaker, i.e., the sound volume of the speaker is a variable, which may affect the input signal of the speaker, and the input signal may also be a digital sound signal or a digital voice signal. In order to reflect the sound distance, the sound reproduction volume of the speakers corresponding to a plurality of different distances is different, and the distance and the sound reproduction volume are inversely proportional to each other.
And 104, controlling the output of the loudspeaker according to the loudspeaker parameter.
The speaker is usually matched with an audio digital-to-analog converter (audio DAC), and the audio DAC can convert a digital signal into an analog signal, and then amplify the analog signal through an audio amplifier (audio amplifier), so as to drive the speaker to play an analog sound signal. Specifically, an input signal is obtained, where the input signal may be a digital sound signal or a digital voice signal, and when the input signal is a digital sound signal, the input signal is processed through parameters of a speaker, so as to obtain a first digital sound signal, and the first digital sound signal controls output of the speaker through an audio digital-to-analog converter and an audio amplifier. The sound output by the loudspeaker can reflect the distance between the current position and the target position, for example, when the mobile equipment is an automobile, and the distance between the automobile and the target position is long, the sound played by the loudspeaker gives a user the feeling of transmitting from far; when the distance between the automobile and the target position is close, the sound played by the loudspeaker gives a user a feeling of coming from the close distance until the automobile reaches the target position.
It should be noted that the speaker may be an internal speaker of the mobile device, or may be an external speaker used for navigation in the mobile device, for example, an internal speaker of a mobile phone.
Referring to fig. 4, the input signal controls the output of the speaker after passing through the speaker parameter adjustment, the audio digital-to-analog converter, and the audio amplifier.
The sound signal collection method provided by the embodiment has the beneficial effects that:
according to the embodiment, the output of the loudspeaker is controlled through the loudspeaker parameter corresponding to the distance between the current position and the target position, so that a user can feel the distance between the current position and the target position, the experience of the user is improved, the spirit of a driver is more concentrated, and the safety of people and vehicles is ensured.
Fig. 2 shows a flow chart of the step of determining the speaker parameter corresponding to the first distance in the embodiment shown in fig. 1.
As shown in fig. 2, on the basis of the embodiment shown in fig. 1, in an exemplary embodiment of the present application, the step of determining the speaker parameter corresponding to the first distance shown in step 103 may specifically include the following steps:
step 1031, obtaining a start position of the removable device.
The starting position is the coordinate where the position of the movable device at the time of starting the navigation corresponds to the world coordinate system. For example, the mobile device is an automobile, when the automobile has a navigation demand, a driver or a passenger in the automobile inputs a starting location and a destination on a navigation page of a central control screen of the automobile, and then determines a location, corresponding to the starting location, on a high-precision map stored in an electronic device in the automobile, where the location is the starting location; of course, the driver or passenger may simply input the destination, and at this time, the position where the movable device is located is determined as the start position.
Step 1032, determining a second distance between the starting position and the target position.
In order to determine how far and how close the mobile device is from the target location, it is generally necessary to determine a second distance between the starting location and the target location, the second distance indicating the length of the travel path between the starting location and the target location, it being apparent that the travel path between the current location and the target location is part of the travel path between the starting location and the target location.
Specifically, after the start position and the target position of the navigation are determined, the travelable road surface between the start position and the target position may be determined according to the high-precision map stored in the electronic device, the travel path of the mobile device may be planned in the travelable road surface area according to the road condition of the travelable road surface, the length of the travel path is determined as the second distance, the second distance indicates the distance that the mobile device needs to travel from the start position to the target position, that is, the distance when the mobile device travels according to the travel path corresponding to the second distance, and the travel path corresponding to the second distance is the first travel path mentioned in the content specifically described in step 102.
Step 1033, determining a speaker parameter corresponding to the first distance according to a ratio between the first distance and the second distance.
The ratio between the first distance and the second distance indicates the driving progress of the movable device, namely the distance between the movable device and the target position, obviously, the first distance between the current position and the target position cannot accurately reflect the distance between the current position and the target position, and the ratio has scale invariance and is insensitive to the distance, so that the distance between the movable device and the target position can be more accurately reflected by the ratio between the first distance and the second distance.
Specifically, according to a preset data generation rule, a plurality of different ratios are determined, the data generation rule may be an equidistant, an arithmetic or other data generation manner, for each ratio, speaker parameters are determined according to the size of the ratio, so that the plurality of different ratios respectively correspond to different speaker parameters, here, the speaker parameters may indicate the distance, the speaker parameters respectively corresponding to the plurality of different ratios are stored in the electronic device, then, after the ratio of the first distance to the second distance is determined, a third ratio closest to the ratio of the first distance to the second distance may be determined from the plurality of different ratios, and the speaker parameters corresponding to the third ratio are determined as the speaker parameters corresponding to the first distance. The parameters of the loudspeaker include but are not limited to the sound volume, when the parameter of the loudspeaker is the sound volume, the sound volume of the loudspeaker corresponding to a plurality of different ratios is different, the magnitude of the ratio is in inverse proportion to the magnitude of the sound volume, and the sound volume of the loudspeaker reflects the sound distance.
According to the embodiment, the loudspeaker parameters corresponding to the first distance are determined through the first distance between the current position of the movable equipment and the target position and the ratio of the second distance between the initial position of the movable equipment and the target position, and when the output of the loudspeaker is controlled according to the determined loudspeaker parameters, a user can more accurately sense the distance between the current position and the target position, so that the user experience is further improved, the spirit of a driver is more concentrated, and the safety of people and vehicles is ensured.
Fig. 3 is a flow chart illustrating a step of determining a speaker parameter corresponding to the first distance according to a ratio between the first distance and the second distance in the embodiment shown in fig. 2.
As shown in fig. 3, based on the embodiment shown in fig. 2, in an exemplary embodiment of the present application, the step 1033 of determining the speaker parameter corresponding to the first distance according to the ratio between the first distance and the second distance may specifically include the following steps:
step 10331, determining a distance interval of the first distance according to a ratio between the first distance and the second distance, where the distance interval is determined based on a division result of the second distance.
The distance interval may be a simpler indication of how far the current position of the movable apparatus is from the target position relative to the ratio of the first distance, the first distance and the second distance. The second distance is divided to obtain a plurality of distance intervals, for example, the second distance may be equally divided, or of course, the second distance may also be divided according to an arithmetic difference series or an arithmetic product series, and the dividing method is not limited in this embodiment.
For example, the second distance is B, and the second distance can be equally divided to obtain N distance intervals, where the distance intervals include [0, B/N ], [ B/N, 2 × B/N), … …, [ i × B/N, (i +1) × B/N), … …, [ (N-1) × B/N, B ].
Step 10332, determining a speaker parameter corresponding to the first distance according to the distance interval.
And defining the sound distance degree of the distance sections, and determining the loudspeaker parameters according to the sound distance degree corresponding to the defined distance sections for each distance section. And then, determining the loudspeaker parameters corresponding to the distance interval of the first distance as the loudspeaker parameters corresponding to the first distance.
For example, the second distance is 3n, the second distance value is divided into 3 parts, the obtained distance intervals include [0, n ], [ n, 2n ], and [2n, 3n ], where the sound distance degree of the [0, n ] distance interval is defined as near, the sound distance degree of the [ n, 2n) distance interval is defined as medium, the distance degree of the [2n, 3n ] is far, the speaker parameters are playback volumes, the playback volumes of the speakers corresponding to the three distance intervals are determined based on the sound distance degrees, the playback volume corresponding to [0, n) represents the sensation that the sound comes from near, the playback volume corresponding to [2n, 3n ] represents the sensation that the sound comes from far, and the playback volume corresponding to [ n, 2n) represents the sensation that the sound comes from middle. Assuming that the distance interval of the first distance is [2n, 3n ], determining the playback volume of the loudspeaker corresponding to [2n, 3n ] as the loudspeaker parameter corresponding to the first distance, so that the sound output by the loudspeaker shows a feeling of coming from a far place.
According to the embodiment, the distance interval corresponding to the first distance is determined through the first distance between the current position of the movable equipment and the target position and the ratio of the second distance between the initial position of the movable equipment and the target position, the loudspeaker parameter corresponding to the first distance is determined based on the distance interval, the output of the loudspeaker is controlled according to the determined loudspeaker parameter, the distance between the current position of the movable equipment and the target position can be reflected accurately, the user experience is further improved, the spirit of a driver is more concentrated, and the safety of people and vehicles is ensured.
Fig. 5 shows a flowchart of a speaker control method according to another exemplary embodiment of the present application.
As shown in fig. 5, based on steps 101 to 103 shown in fig. 1, in another exemplary embodiment of the present application, at least the following steps are further included:
step 501, determining a reverberation effector parameter corresponding to the first distance, where the reverberation effector is connected to the speaker.
The reverb effector parameter indicates one or more variables of the reverb effector, each of which may control other variables that vary as they vary. The reverberation effector is connected with the loudspeaker, so that the voice signal after the parameter adjustment of the reverberation effector can be used as the input of the loudspeaker, thereby controlling the output of the loudspeaker.
In particular, the reverberation effector parameters include, but are not limited to, reverberation time, tail, stereo width, high frequency decay rate, high low frequency cut-off, early reflected volume, spatial size, early reflected dispersion, delay time between direct and early reflected sound, dry sound, wet sound.
In particular, the reverberation effector is an insert that generates various sound field effects and special sound effects, and can make sound present different spatial and distance senses.
Step 502, controlling the output of the loudspeaker according to the loudspeaker parameter and the reverberation effect parameter.
In one possible implementation, when the input signal is a digital sound signal, the input signal is processed according to the speaker parameter to obtain a second digital sound signal, the second digital sound signal is processed according to the reverberation effect parameter to obtain a third digital sound signal, and the third digital sound signal passes through the audio digital simulator and the audio amplifier to control the output of the speaker.
In another possible implementation manner, when the input signal is a digital sound signal, the input signal is processed according to the reverberation effect parameter to obtain a second digital sound signal, the second digital sound signal is processed according to the speaker parameter to obtain a third digital sound signal, and the third digital sound signal passes through the audio digital simulator and the audio amplifier to control the output of the speaker.
The input information is taken as a digital sound signal as an example, the input signal is processed by utilizing the reverberation effect device parameters, and the sound signal with the spatial sense and the distance sense can be obtained, so that the loudspeaker outputs the sound with the spatial sense and the distance sense, the sound is more real, the user experience is further improved, the spirit of a driver is more concentrated, and the safety of people and vehicles is ensured. The input signal is processed by the reverberation effect parameter in a mode including but not limited to convolution reverberation, algorithm reverberation and simulation reverberation, and the convolution reverberation is convolved with the input signal by using Impulse Responses (IR for short) file to obtain digital sound signal with space sense and distance sense; the algorithm reverberation obtains a digital sound signal with space sense and distance sense by generating complex delay segments, simulating the delay expression of a reverberation sound field and reproducing sound segments in the early stage of sound reflection; the analog reverberation specifically refers to an analog hardware reverberation device, so that a digital sound signal with a spatial sense and a distance sense is obtained.
Referring to fig. 6, the input signal controls the output of the speaker after passing through the speaker parameter adjustment, the reverberation effect parameter adjustment, the audio digital-to-analog converter, and the audio amplifier.
The output of the loudspeaker is controlled through the reverberation effect device parameters and the loudspeaker parameters, so that the loudspeaker outputs sound with spatial sense and distance sense, the sound is more real, a user can feel the distance between the current position and a target position more really, the experience of the user is further improved, the spirit of a driver is more concentrated, and the safety of people and vehicles is ensured.
Fig. 7 shows a flowchart of a speaker control method according to another exemplary embodiment of the present application.
As shown in fig. 7, based on steps 101 to 103 shown in fig. 1, in another exemplary embodiment of the present application, at least the following steps are further included:
and 701, determining a preset voice sample and a corpus corresponding to the first distance.
The corpus refers specifically to language text. The corpus corresponding to the first distance may be navigation information or other information, the navigation information indicates the first distance between the current position and the target position, and the other information may be other requirements of the user, for example, voice interaction information between a passenger in an automobile and a machine. The preset voice sample comprises voice signals corresponding to the voice recording distance, the voice recording distance is the distance between a speaker and the voice collecting device, the speaker speaks at the position corresponding to the voice recording distance, and the voice signals of the speaker collected by the voice collecting device are the voice signals corresponding to the voice recording distance. For example, the second distance is 3n, the second distance value is divided into 3 parts, and the obtained distance interval includes [0, n ], [ n, 2n ], and [2n, 3n ], at this time, it is defined that the sound distance degree of the [0, n) distance interval is near, the sound distance degree of the [ n, 2n) distance interval is medium, and the distance degree of the [2n, 3n ] is far, and accordingly, three different sound recording distances of near, medium, and far are selected to collect the voice signal of the speaker. In order to achieve the best sound receiving effect, a speaker can speak at positions 1 m, 3 m and 5 m away from a microphone respectively, wherein the sound distance degree corresponding to 1 m is near, the sound distance degree corresponding to 3 m is middle, and the sound distance degree corresponding to 5 m is far, at the moment, the sound recording distances corresponding to different sound recording distances are different in distance and proximity, the direction between the speaker and the microphone is not limited, and the sound signals corresponding to the three sound recording distances are stored in a database. If the first distance is 1.5n, the voice sample falls into the range of [ n, 2n), and the corresponding voice distance is middle, at this time, it can be determined that the preset voice sample with the first distance of 1.5n is a voice signal with the voice recording distance of 3 meters.
Step 702, synthesizing voice input data corresponding to the corpus according to the preset voice sample.
Here, the speech synthesis technology may be used to synthesize a digital speech signal corresponding to the corpus according to the preset speech sample, and thus, the speech input data is a digital speech signal synthesized by the corpus and the preset speech sample. Specifically, acoustic features corresponding to the phonetic features are extracted from a preset voice sample, speech synthesis is performed on the speech material according to the acoustic features corresponding to the phonetic features, and digital speech signals corresponding to the speech material are output. After the preset voice sample and the corpus corresponding to the first distance are determined, voice synthesis can be performed by using the preset voice sample and the corpus, and different voice samples have different distance senses, so that voice input data synthesized by using different voice samples also have different distance senses, namely, the synthesized voice input data can more accurately reflect the distance degree between the current position and the target position of the mobile equipment.
And 703, controlling the output of the loudspeaker according to the loudspeaker parameters and the voice input data.
The voice input data are processed through the loudspeaker parameters, so that the voice input data can reflect the distance between the current position and the target position.
Referring to fig. 8, the voice input data is processed by the speaker parameter adjustment, the audio digital-to-analog converter, and the audio amplifier to control the output of the speaker.
The voice input data corresponding to the corpus synthesized according to the preset voice sample is processed through the loudspeaker parameters, so that the loudspeaker outputs the voice reflecting the distance between the current position and the target position, the user experience is further improved, the spirit of a driver is more concentrated, and the safety of people and vehicles is ensured.
Fig. 9 shows a flowchart of a speaker control method according to still another exemplary embodiment of the present application.
As shown in fig. 9, on the basis of steps 101 to 103 shown in fig. 1, step 501 shown in fig. 5, and steps 701 and 702 shown in fig. 7, in yet another exemplary embodiment of the present application, at least the following steps are further included:
step 901, controlling the output of the speaker according to the speaker parameter, the reverberation effect parameter and the voice input data.
In a possible implementation manner, the voice input data is processed according to the speaker parameters to obtain a fourth digital voice signal, the fourth digital voice signal is processed according to the reverberation effect parameter to obtain a fifth digital voice signal, and the fifth digital voice signal controls the output of the speaker after passing through the audio digital simulator and the audio amplifier.
In another possible implementation manner, the voice input data is processed according to the reverberation effect parameter to obtain a fourth digital voice signal, the fourth digital voice signal is processed according to the speaker parameter to obtain a fifth digital voice signal, and the fifth digital voice signal controls the output of the speaker after passing through the audio digital simulator and the audio amplifier.
Referring to fig. 10, the voice input data controls the output of the speaker after passing through the reverberation effect parameter adjustment, the speaker parameter adjustment, the audio digital-to-analog converter, and the audio amplifier.
The embodiment processes voice input data through reverberation effect device parameters and loudspeaker parameters, converts processed digital voice signals into analog voice signals, controls the output of the loudspeaker, enables the loudspeaker to output voices with spatial sense and distance sense, is more real, enables a user to feel the distance between the current position and a target position more truly, further improves user experience, enables the spirit of a driver to be more concentrated, and ensures the safety of people and vehicles.
Exemplary devices
Based on the same concept as the method embodiment of the application, the embodiment of the application also provides a loudspeaker control device.
Fig. 11 is a schematic structural diagram of a speaker control apparatus according to an exemplary embodiment of the present application.
As shown in fig. 11, a speaker control determination apparatus according to an exemplary embodiment of the present application includes:
an obtaining module 111, configured to obtain a current location and a target location of the mobile device;
a distance determination module 112 for determining a first distance between the current location and the target location;
a first parameter determining module 113, configured to determine a speaker parameter corresponding to the first distance;
a first control module 114, configured to control an output of the speaker according to the speaker parameter.
As shown in fig. 12, in an exemplary embodiment, the first parameter determining module 113 includes:
an acquiring unit 1131, configured to acquire a start position of the mobile device;
a distance determining unit 1132, configured to determine a second distance between the starting position and the target position;
a parameter determining unit 1133, configured to determine, according to a ratio between the first distance and the second distance, a speaker parameter corresponding to the first distance.
As shown in fig. 13, in an exemplary embodiment, the parameter determining unit 1133 includes:
a section determining subunit 11331, configured to determine a distance section of the first distance according to a ratio between the first distance and a second distance, where the distance section is determined based on a division result of the second distance;
a parameter determining subunit 11332, configured to determine, according to the distance interval, a speaker parameter corresponding to the first distance.
Fig. 14 is a schematic structural diagram of a speaker control apparatus according to another exemplary embodiment of the present application.
As shown in fig. 14, in another exemplary embodiment, on the basis of the obtaining module 111, the distance determining module 112, and the first parameter determining module 113 in fig. 7, the method further includes:
a second parameter determining module 141, configured to determine a reverberation effector parameter corresponding to the first distance, where the reverberation effector is connected to the speaker;
and a second control module 142, configured to control an output of the speaker according to the speaker parameter and the reverberation effector parameter.
Fig. 15 is a schematic structural diagram of a speaker control apparatus according to still another exemplary embodiment of the present application.
As shown in fig. 15, in another exemplary embodiment, on the basis of the obtaining module 111, the distance determining module 112, and the first parameter determining module 113 in fig. 11, the method further includes:
a sample determining module 151, configured to determine a preset voice sample and a corpus corresponding to the first distance;
a data synthesis module 152, configured to synthesize voice input data corresponding to the corpus according to the preset voice sample;
and a third control module 153 for controlling the output of the speaker according to the speaker parameters and the voice input data.
Exemplary electronic device
Fig. 16 is a block diagram of an electronic device according to an exemplary embodiment of the present application.
As shown in fig. 16, electronic device 160 includes one or more processors 161 and memory 162.
Processor 161 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in electronic device 160 to perform desired functions.
Memory 162 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 161 to implement the speaker control methods of the various embodiments of the present application described above and/or other desired functions.
In one example, the electronic device 160 may further include: an input device 163 and an output device 164, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
Of course, for simplicity, only some of the components of the electronic device 160 relevant to the present application are shown in fig. 16, and components such as buses, input/output interfaces, and the like are omitted. In addition, electronic device 160 may include any other suitable components, depending on the particular application.
Exemplary embodiments of the inventionComputer program product and computer-readable storage medium
In addition to the above-described methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the speaker control method according to various embodiments of the present application described in the "exemplary methods" section of this specification, supra.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the speaker control method according to various embodiments of the present application described in the "exemplary methods" section above in this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (10)

1. A speaker control method comprising:
acquiring the current position and the target position of the movable equipment;
determining a first distance between the current location and the target location;
determining a loudspeaker parameter corresponding to the first distance;
and controlling the output of the loudspeaker according to the loudspeaker parameter.
2. The method of claim 1, the determining speaker parameters corresponding to the first distance comprising:
acquiring a starting position of the movable equipment;
determining a second distance between the starting location and the target location;
and determining the loudspeaker parameter corresponding to the first distance according to the ratio of the first distance to the second distance.
3. The method of claim 2, wherein determining the speaker parameter corresponding to the first distance according to the ratio between the first distance and the second distance comprises:
determining a distance interval of the first distance according to a ratio between the first distance and a second distance, wherein the distance interval is determined based on a division result of the second distance;
and determining the loudspeaker parameter corresponding to the first distance according to the distance interval.
4. The method of claim 1, wherein the method further comprises:
determining a reverberation effect parameter corresponding to the first distance, wherein the reverberation effect is connected with the loudspeaker;
the controlling the output of the speaker according to the speaker parameter includes:
and controlling the output of the loudspeaker according to the loudspeaker parameter and the reverberation effect device parameter.
5. The method of claim 4, wherein the reverberation effector parameters include any one or more of reverberation time, tail, stereo width, high frequency decay rate, high and low frequency cut-off, early reflected volume, spatial size, early reflected dispersion, delay time between direct and early reflected sound, dry sound, wet sound.
6. The method of claim 1, wherein the method further comprises:
determining a preset voice sample and a corpus corresponding to the first distance;
synthesizing voice input data corresponding to the corpus according to the preset voice sample;
the controlling the output of the speaker according to the speaker parameter includes:
and controlling the output of the loudspeaker according to the loudspeaker parameters and the voice input data.
7. The method of any of claims 1-6, the speaker parameter comprising playback volume.
8. A speaker control apparatus comprising:
the acquisition module is used for acquiring the current position and the target position of the movable equipment;
a distance determination module for determining a first distance between the current location and the target location;
the first parameter determining module is used for determining the loudspeaker parameter corresponding to the first distance;
and the first control module is used for controlling the output of the loudspeaker according to the loudspeaker parameter.
9. A computer-readable storage medium storing a computer program for executing the speaker control method according to any one of claims 1 to 7.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the speaker control method according to any one of claims 1 to 7.
CN201910984621.0A 2019-10-16 2019-10-16 Loudspeaker control method and device Active CN112672259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910984621.0A CN112672259B (en) 2019-10-16 2019-10-16 Loudspeaker control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910984621.0A CN112672259B (en) 2019-10-16 2019-10-16 Loudspeaker control method and device

Publications (2)

Publication Number Publication Date
CN112672259A true CN112672259A (en) 2021-04-16
CN112672259B CN112672259B (en) 2023-03-10

Family

ID=75400387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910984621.0A Active CN112672259B (en) 2019-10-16 2019-10-16 Loudspeaker control method and device

Country Status (1)

Country Link
CN (1) CN112672259B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103575288A (en) * 2012-07-25 2014-02-12 昆达电脑科技(昆山)有限公司 Navigation method and device thereof for video broadcast situations
CN105792090A (en) * 2016-04-27 2016-07-20 华为技术有限公司 Method and device of increasing reverberation
CN207106342U (en) * 2017-07-20 2018-03-16 德尔福电子(苏州)有限公司 A kind of voice auxiliary parking system
US20180208112A1 (en) * 2015-07-22 2018-07-26 Shuichi Tayama Automobile proximity warning system
CN109195081A (en) * 2018-08-20 2019-01-11 北京小米移动软件有限公司 The control method and vehicle of horn assembly
CN109285536A (en) * 2018-11-23 2019-01-29 北京羽扇智信息科技有限公司 Voice special effect synthesis method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103575288A (en) * 2012-07-25 2014-02-12 昆达电脑科技(昆山)有限公司 Navigation method and device thereof for video broadcast situations
US20180208112A1 (en) * 2015-07-22 2018-07-26 Shuichi Tayama Automobile proximity warning system
CN105792090A (en) * 2016-04-27 2016-07-20 华为技术有限公司 Method and device of increasing reverberation
CN207106342U (en) * 2017-07-20 2018-03-16 德尔福电子(苏州)有限公司 A kind of voice auxiliary parking system
CN109195081A (en) * 2018-08-20 2019-01-11 北京小米移动软件有限公司 The control method and vehicle of horn assembly
CN109285536A (en) * 2018-11-23 2019-01-29 北京羽扇智信息科技有限公司 Voice special effect synthesis method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112672259B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
US10481858B2 (en) Generating personalized audio content based on mood
US20210142783A1 (en) Method and system for generating synthetic speech for text through user interface
JP4304952B2 (en) On-vehicle controller and program for causing computer to execute operation explanation method thereof
KR102388992B1 (en) Text rule based multi-accent speech recognition with single acoustic model and automatic accent detection
JP4260788B2 (en) Voice recognition device controller
WO2021083071A1 (en) Method, device, and medium for speech conversion, file generation, broadcasting, and voice processing
JP6604151B2 (en) Speech recognition control system
JP2010102163A (en) Vehicle interior voice interaction device
WO2019198123A1 (en) Navigation device and navigation method
CN102640522A (en) Audio data processing device, audio device, audio data processing method, program, and recording medium that has recorded said program
US20070256435A1 (en) Air Conditioner Control Device and Air Conditioner Control Method
EP3958577A2 (en) Voice interaction method, voice interaction system, server and storage medium
KR20220000655A (en) Driving sound library, apparatus for generating driving sound library and vehicle comprising driving sound library
KR20210022567A (en) Voice signal processing device, mobile device and method, and program
CN112672259B (en) Loudspeaker control method and device
RU2705769C1 (en) Vehicle speech recognition together with portable device
Kawaguchi et al. Multi-Dimensional Data Acquisition for Integrated Acoustic Information Research.
US11996099B2 (en) Dialogue system, vehicle, and method of controlling dialogue system
CN115938340A (en) Voice data processing method based on vehicle-mounted voice AI and related equipment
US20220369059A1 (en) Active sound design (asd) tuning device of vehicle and method thereof
JP2021103329A (en) Audio recognition method, audio recognition device, electronic apparatus, storage medium, and program
CN111627417B (en) Voice playing method and device and electronic equipment
JP2006084664A (en) Speech recognition device and program
US20240190443A1 (en) Apparatus and method for providing vehicle sound
JP7069730B2 (en) Information processing equipment, methods, and programs

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