CN108668203A - Audio frequency playing method, system and device - Google Patents

Audio frequency playing method, system and device Download PDF

Info

Publication number
CN108668203A
CN108668203A CN201710203965.4A CN201710203965A CN108668203A CN 108668203 A CN108668203 A CN 108668203A CN 201710203965 A CN201710203965 A CN 201710203965A CN 108668203 A CN108668203 A CN 108668203A
Authority
CN
China
Prior art keywords
audio
loud speaker
dsp
sound card
sent
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
CN201710203965.4A
Other languages
Chinese (zh)
Other versions
CN108668203B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710203965.4A priority Critical patent/CN108668203B/en
Priority to PCT/CN2018/079461 priority patent/WO2018177148A1/en
Publication of CN108668203A publication Critical patent/CN108668203A/en
Application granted granted Critical
Publication of CN108668203B publication Critical patent/CN108668203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0421Multiprocessor system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21137Analog to digital conversion, ADC, DAC
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/22Pc multi processor system
    • G05B2219/2214Multicontrollers, multimicrocomputers, multiprocessing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25252Microprocessor
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2615Audio, video, tv, consumer electronics device

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a kind of audio frequency playing method, system and devices, belong to Audio Signal Processing technical field.This method includes:Receive the play instruction of the first audio;It is applied according to the source of the first audio, determines that the first sound card, the first sound card are the sound card of the first Audio Matching in electronic equipment;By the first sound card, the digital signal of the first audio is sent to the digital signal processor DSP in electronic equipment, after carrying out digital-to-analogue conversion by DSP, obtains the analog signal of the first audio;The analog signal of first audio is sent to the first loud speaker by control DSP, and the broadcasting of the first audio is carried out by the first loud speaker, and the first loud speaker is to apply matched loud speaker with source in electronic equipment.The present invention, which realizes the case where playing multiple audios at the same time next loud speaker, can play an audio so that the identification of the audio is high, improves sense of hearing efficiency.

Description

Audio frequency playing method, system and device
Technical field
The present invention relates to Audio Signal Processing technical field, more particularly to a kind of audio frequency playing method, system and device.
Background technology
Nowadays, audio is widely used in various scenes.For example, in order to enrich experience of the passenger in vehicle travel, The audio etc. of pop music, the audio of network radio station or Traffic Announcement would generally be played on vehicle.And it is led to be provided to driver Boat prompts, and navigating audio may also be played simultaneously on vehicle.
When playing audio, the CPU (Central Processing Unit, central processing unit) on vehicle can be obtained The digital audio and video signals of each audio to be played, each audio may include navigating audio, pop music etc., in turn, CPU Each digital audio and video signals are carried out audio mixing by the configured transmission that can be indicated according to driver of sound card, control sound card, and will be after audio mixing Digital audio and video signals be transmitted to I2S (Inter-Integrated Circuit Sound, integrated circuit built-in audio be total Line), the digital audio and video signals after audio mixing are transmitted to DSP (Digital Signal Processing, number letter by I2S buses Number processor) so that the digital audio and video signals after audio mixing can be converted into analog audio signal by DSP, and analogue audio frequency is believed The each loud speaker number being transmitted on vehicle realizes that audio plays by each loud speaker.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
Loud speaker can play each audio simultaneously, and each audio is caused mutually to mix, each audio which is played Identification it is low, sense of hearing efficiency is low.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of audio frequency playing method, system and devices. The technical solution is as follows:
In a first aspect, a kind of audio frequency playing method is provided, the method includes:
Receive the play instruction of the first audio;
It is applied according to the source of first audio, determines that the first sound card, first sound card are in the electronic equipment The sound card of first Audio Matching;
By first sound card, the digital signal of first audio is sent to the number in the electronic equipment and is believed Number processor DSP obtains the analog signal of first audio after carrying out digital-to-analogue conversion by the DSP;
It controls the DSP and the analog signal of first audio is sent to the first loud speaker, by first loud speaker The broadcasting of the first audio is carried out, first loud speaker is to apply matched loud speaker with the source in the electronic equipment.
Second aspect provides a kind of audio frequency broadcast system, and the system comprises the electronics for being integrated at least two sound cards Equipment and multiple loud speakers, the electronic equipment further include central processor CPU, digital signal processor DSP, the DSP It being connect with the multiple loud speaker, each sound card on the CPU is connect by one group of audio transmission bus with the DSP, and The CPU is also connect by controlling bus with the DSP, and every group of audio transmission bus is used to the digital signal of transmission audio, The controlling bus is used for transmission control signal;
The CPU is used to receive the play instruction of the first audio;It is applied according to the source of first audio, determines first Sound card, first sound card are the sound card of the first Audio Matching described in the electronic equipment;
The number that first sound card is used to the digital signal of first audio being sent in the electronic equipment is believed Number processor DSP;
The DSP is used to carry out digital-to-analogue conversion to the digital signal of first audio, obtains the mould of first audio Quasi- signal;The analog signal of first audio is sent to the first loud speaker by the control based on the CPU, and described first raises one's voice Device is to apply matched loud speaker with the source in the electronic equipment;
First loud speaker is used to carry out the broadcasting of the first audio.
The third aspect, provides a kind of audio playing apparatus, and described device is applied to be integrated with the electricity of at least two sound cards Sub- equipment, described device include:
Receiving module, the play instruction for receiving the first audio;
Determining module determines that the first sound card, first sound card are institute for being applied according to the source of first audio State the sound card of the first Audio Matching described in electronic equipment;
Sending module, for by first sound card, the digital signal of first audio to be sent to the electronics Digital signal processor DSP in equipment obtains the analog signal of first audio after carrying out digital-to-analogue conversion by the DSP;
The analog signal of first audio is sent to the first loud speaker, by institute by control module for controlling the DSP State the first loud speaker carry out the first audio broadcasting, first loud speaker be the electronic equipment in the source application The loud speaker matched.
The embodiment of the present invention is applied according to the source of the first audio, is determined and the first Audio Matching at least two sound cards The first sound card, and the digital signal of the first audio is sent to by DSP by the first sound card so that after DSP carries out digital-to-analogue conversion The analog signal that can obtain the first audio plays the first audio by loud speaker so that the number of the audio of separate sources application Signal can be transmitted on different sound cards, and individually be handled by DSP to obtain the analog signal of each audio, in turn So that play the audio using matched loud speaker with source, realize that the case where playing multiple audios at the same time is next to raise one's voice Device can play an audio so that the identification of the audio is high, improves sense of hearing efficiency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Figure 1A is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Figure 1B is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of audio frequency playing method provided in an embodiment of the present invention;
Fig. 3 is a kind of audio playing flow figure provided in an embodiment of the present invention;
Fig. 4 A are a kind of block diagrams of audio frequency broadcast system provided in an embodiment of the present invention;
Fig. 4 B are a kind of block diagrams of audio frequency broadcast system provided in an embodiment of the present invention;
Fig. 5 is a kind of block diagram of audio playing apparatus provided in an embodiment of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Figure 1A is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.Referring to Figure 1A, electronic equipment A Including processing component 122, further comprise one or more processors, and provided by the memory representated by memory 132 Source, can be by the instruction of the execution of processing component 122, such as application program for storing.The application program stored in memory 132 May include it is one or more each correspond to one group of instruction module.In addition, processing component 122 is configured as holding Row instruction, to execute the method that following embodiment CPU or DSP are executed.
Electronic equipment A can also include that a power supply module 126 is configured as executing the power management of electronic equipment A, One wired or wireless network interface 150 is configured as electronic equipment A being connected to network and an input and output (I/O) connects Mouth 158.Electronic equipment A can be operated based on the operating system for being stored in memory 132, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr it is similar.
Based on the electronic equipment A that Figure 1A is provided, referring to Figure 1B, an embodiment of the present invention provides the structures of a kind of electronic equipment Schematic diagram.At least two sound cards are integrated on electronic equipment B, at the central processor CPU and digital signal of electronic equipment B Reason device DSP can correspond to the processing component in electronic equipment A, and the upper each sound cards of CPU are connected by one group of audio transmission bus and DSP It connects, and CPU is also connect by controlling bus with DSP, every group of audio transmission bus is used to the digital signal of transmission audio, control Bus is used for transmission control signal.Moreover, electronic equipment B can with external multiple loud speakers, or with multiple loud speaker structure Integral machine, DSP can be connect with multiple loud speakers.
Wherein, CPU is used to that the digital signal of audio to be sent to DSP by audio transmission bus, and passes through controlling bus DSP is controlled.DSP carries out digital-to-analogue conversion, volume or audio for the control based on CPU to the digital signal received Adjusting or the selection of input/output interface.Loud speaker plays for realizing audio.
Electronic equipment B can be applied to various scenes, for example, the different direction in a space carries out audio broadcasting Scene.Specifically, electronic equipment B can be vehicle control apparatus, then the loud speaker 1 can be the loud speaker of driver's side, raise Sound device 2-4 can be respectively the loud speaker of passenger side.Electronic equipment B may be meeting-place control device, then loud speaker 1-4 can To be respectively the loud speaker in each orientation in meeting-place.
Fig. 2 is a kind of flow chart of audio frequency playing method provided in an embodiment of the present invention, and referring to Fig. 2, this method can answer For any electronic equipment for being integrated at least two sound cards, by taking the electronic equipment is onboard control device as an example, this method can To include the following steps:
201, onboard control device receives the play instruction of the first audio.
Voice applications there are many being installed on the onboard control device, for example, navigation application, broadcasted application, pop music Using etc..First audio can derive from any voice applications.For example, first audio is the navigation from navigation application Audio, alternatively, first audio is the pop music applied from pop music.The play instruction can carry first sound The source application identities of frequency.In the step, when needing to play the first audio, it can generate and receive the play instruction.This When inventive embodiments are to needing the first audio of broadcasting not limit.For example, first audio be navigating audio, current road conditions or When user's operation triggers configured navigating audio, it can generate and receive the play instruction.In another example first audio is Pop music can generate when receiving pop music application above when choosing operation of the pop music and receive this and broadcast Put instruction.
Certainly, in the operational process of voice applications, onboard control device may also play to discontinuous the voice applications The audio of offer, the audio such as navigating audio.Therefore, in order to reduce the number that switching audio plays, onboard control device is reduced Operation burden, can be when receiving to the application of the source of the first audio when choosing operation, determination needs to play first sound Frequently, it generates and receives the play instruction.
In actual application scenarios, the play instruction of the first audio can be received by the CPU in vehicle control apparatus.
202, onboard control device is applied according to the source of the first audio, determines that the first sound card, the first sound card are vehicle-mounted control The sound card of first Audio Matching in control equipment.
In the step, the embodiment of the present invention is to determining that the detailed process of the first sound card does not limit.Such as:Vehicle-mounted control is set The standby source application identities for obtaining play instruction and carrying;According to source application identities, preset application identities and sound card mark are inquired Correspondence between knowledge obtains the first sound card mark corresponding with source application identities;First sound card is identified into corresponding sound Card is used as the first sound card.
Wherein, application identities are not limited to Apply Names, and sound card mark is not limited to sound card title.The embodiment of the present invention is to default Application identities and sound card mark between correspondence do not limit.For example, the correspondence is as shown in table 1:
Table 1
Application identities Sound card identifies
AA navigation, CA navigation First sound card identifies
UU pop musics, 77 broadcast Second sound card identifies
Referring to table 1, by taking source application identities are AA navigation as an example, onboard control device can be in application identities and sound card mark Inquiry and the identical application identities of AA navigation in the correspondence of knowledge, and the corresponding first sound card mark of the application identities is obtained, First sound card is identified into corresponding sound card as the first sound card.
In fact, if the application identities and sound card mark between correspondence in do not inquire the source apply Configured acquiescence sound card can also be determined as the first sound card by mark, onboard control device, for example, the acquiescence sound card is first Sound card identifies corresponding sound card.
In actual application scenarios, can the step 202 be executed by the CPU of onboard control device.
203, the digital signal of the first audio is sent in onboard control device by onboard control device by the first sound card Digital signal processor DSP, by DSP carry out digital-to-analogue conversion after, obtain the analog signal of the first audio.
In the step, onboard control device can obtain the digital signal of the first audio, by the first sound card, according to first The digital signal of first audio is sent to the vehicle by the configured transmissions such as sample rate and digit indicated by the driver of sound card of sound card The DSP in control device is carried, discrete digital signal is converted into continuous analog signal by DSP.
It should be noted that the embodiment of the present invention does not limit the process for obtaining the digital signal of the first audio.For example, Onboard control device obtains the digital signal of the compressed format of first audio, and is by the digital signal decoding of the starting type The digital signal of lossless format.Usually, the digital signal of lossless format refers to PCM (Pulse Code Modulation, arteries and veins Rush coded modulation) digital signal of format, the digital signal of compressed format is not limited to MP3 (Moving Picture Experts Group Audio Layer 3, dynamic image expert's compression standard audio level 3) format digital signal or AAC The digital signal of (Advanced Audio Coding, Advanced Audio Coding) format.
204, the analog signal of the first audio is sent to the first loud speaker by onboard control device control DSP, is raised by first Sound device carries out the broadcasting of the first audio, and the first loud speaker is to apply matched loud speaker with source in onboard control device.
Wherein, controlling the process of DSP can also be specially:Onboard control device is believed according to the number of upper first audios of DSP Number input interface and the output interface that is connect with the first loud speaker, generate control signal, which is used to indicate DSP will The analog signal of first audio is sent to the first loud speaker;Control signal is sent to DSP, which can carry the first sound The output interface mark that the input interface of the digital signal of frequency is identified and connect with the first loud speaker.Certainly, the control signal Transmission timing is not later than the transmission timing of the digital signal of the first audio.It, can be according to control when DSP receives control signal Input interface mark in signal and output interface mark, will identify the simulation that corresponding input interface obtains from the input interface Signal is sent to the output interface and identifies corresponding output interface so that the loud speaker being connect with the output interface receives first The analog signal of audio, and play the first audio.
In actual scene, can DSP be sent control signals to by the CPU in onboard control device.
It should be noted that it can be provided with multiple bus between CPU and DSP in onboard control device, such as at least two Group audio transmission bus and controlling bus, every group of audio transmission bus can connect a certain sound card and DSP on CPU one are defeated Incoming interface, is used for transmission the digital signal of audio, this group of audio transmission bus can be I2S buses;Controlling bus can connect An input interface on an output interface and DSP of CPU, is used for transmission control signal, which can be I2C (Inter-Integrated Circuit, bus built in integrated circuit).
The embodiment of the present invention is applied according to the source of the first audio, is determined and the first Audio Matching at least two sound cards The first sound card, and the digital signal of the first audio is sent to by DSP by the first sound card so that after DSP carries out digital-to-analogue conversion The analog signal that can obtain the first audio plays the first audio by loud speaker so that the number of the audio of separate sources application Signal can be transmitted on different sound cards, and individually be handled by DSP to obtain the analog signal of each audio, in turn So that play the audio using matched loud speaker with source, realize that the case where playing multiple audios at the same time is next to raise one's voice Device can play an audio so that the identification of the audio is high, improves sense of hearing efficiency.
The broadcast mode of above-mentioned first audio can correspond to any broadcasting scene, e.g., play the scene of navigating audio.In conjunction with The playing process of first audio, practical there is likely to be a variety of audio broadcast modes.For example, the embodiment of the present invention is at least four It is illustrated for broadcast mode.
If the second audio of playing when broadcast mode 1, onboard control device receive the play instruction of the first audio, control DSP processed stops the analog signal of the second audio being sent to the first loud speaker, and the analog signal of the second audio is sent to the Two loud speakers, the second loud speaker are the loud speaker in addition to the first loud speaker on onboard control device, are carried out by the second loud speaker The broadcasting of second audio.
Second audio can derive from any voice applications, but from the source of the first audio application it is different, therefore this second The sound card of Audio Matching is different from the sound card of the first Audio Matching.When realizing the broadcast mode, onboard control device according to During the driver of sound card of second sound card plays the second audio, if receiving the play instruction of the first audio, sent out to DSP The input interface mark of the digital signal of second audio can also be carried in the control signal sent and is connect with the second loud speaker Output interface mark so that DSP can according to control signal to the second loud speaker send the second audio analog signal.Second Sound card refers to the sound card with the second Audio Matching.
If the corresponding scene that plays of the broadcast mode is the field for starting to play navigating audio when playing non-navigational audio Scape, then first loud speaker could be provided as the loud speaker of driver's side, the second loud speaker could be provided as the loud speaker of passenger side, Not only driver is allow clearly to hear navigating audio, is led it is also possible that passenger can clearly hear that pop music etc. is non- It navigates audio so that the broadcasting of each audio more meets each Man's Demands on vehicle, and playing process is more intelligent, hommization.
Based on broadcast mode 1, referring to Fig. 3, an embodiment of the present invention provides a kind of audio playing flow figures.The audio plays In the process, onboard control device can load driver of sound card after powering, and initialize DSP so that sound card and DSP can be just Often work, in turn, the play instruction and whether trigger navigating audio that onboard control device can be based on a certain audio received Event determines the output interface of the audio on DSP, if triggering navigating audio event, the first loud speaker play navigating audio, Second loud speaker plays non-navigational audio, if not triggering navigating audio event, each loud speaker plays non-navigational audio.
Broadcast mode 2, onboard control device receive the play instruction of the second audio in the playing process of the first audio;Control The analog signal of second audio is sent to the second loud speaker by DSP processed, and the broadcasting of the second audio is carried out by the second loud speaker.
In the playing process, when onboard control device receives the play instruction of the second audio, the first control can be generated Signal processed, the first control signal can carry the digital signal of second audio input interface mark and with the second loud speaker The output interface of connection identifies so that the analog signal of the second audio is sent to second according to the first control signal and raised by DSP Sound device.
If the corresponding scene that plays of the broadcast mode is the field for starting to play non-navigational audio when playing navigating audio Scape, and loud speaker can with setting it is identical as the setting in broadcast mode 1, then the broadcast mode not only allows driver clear Navigating audio is heard on ground, it is also possible that passenger can clearly hear the non-navigational audio such as pop music so that each audio Broadcasting more meet each Man's Demands on vehicle, playing process is more intelligent, hommization.
Broadcast mode 3, onboard control device receives the regulating command of the audio in the playing process of any audio, adjusts Instruct the volume or audio of the analog signal for adjusting audio;Based on regulating command, control DSP to the analog signal of audio into Row is adjusted.
The broadcast mode applies the volume adjustment or audio regulatory function of DSP, since DSP can be from least two inputs Interface is respectively received corresponding audio, then the audio that DSP can receive each input interface is individually adjusted.To adjust For section instruction is for adjusting volume, when onboard control device receives the volume adjustment operation to the audio, tune is received Section instruction, and second control signal is sent to the DSP based on regulating command, which can carry volume adjustment letter The input interface mark of the digital signal of breath and the audio so that DSP is based on second control signal to the analog signal of the audio Volume be adjusted.
In the broadcast mode, DSP can individually adjust the volume or audio of some audio so that adjustment process has more Specific aim, it is more diversified to the regulative mode of multiple audios.
If detecting that the first audio finishes playing when broadcast mode 4, the second audio of playing, onboard control device control The analog signal of second audio is sent to the first loud speaker and the second loud speaker by DSP processed.
In the playing process of the second audio, when onboard control device detects the transmission of the digital signal of first audio At the end of process, determine that the first audio finishes playing, sending third to DSP controls signal, and third control signal can carry The input interface mark of the digital signal of second audio, the output interface that is connect with the first loud speaker identify and with the second loud speaker The output interface of connection identifies so that DSP can be controlled based on third signal the analog signal of the second audio is sent to it is each Loud speaker.
Certainly, when playing the first audio in onboard control device discontinuous, in order to reduce the number that switching audio plays, The operation burden of onboard control device is reduced, it can be when the instruction out of service that the source for receiving the first audio is applied, really Fixed first audio finishes playing.
If the corresponding scene that plays of the broadcast mode is that navigating audio plays the field terminated when playing non-navigational audio Scape, and loud speaker can with setting it is identical as the setting in broadcast mode 1, then the broadcast mode makes everyone on vehicle It can hear currently playing non-navigational audio, playing process is more intelligent, hommization.
Fig. 4 A are a kind of block diagrams of audio frequency broadcast system provided in an embodiment of the present invention.Referring to Fig. 4 A, which includes collection At the electronic equipment and multiple loud speakers 404 for having at least two sound cards 401, which further includes central processing unit CPU402, digital signal processor DSP 403, DSP403 are connect with multiple loud speakers 404, and each sound card 401 on CPU passes through One group of audio transmission bus is connect with DSP403, and CPU402 is also connect by controlling bus with DSP403, every group of audio transmission Bus is used to the digital signal of transmission audio, and controlling bus is used for transmission control signal;
CPU402 is used to receive the play instruction of the first audio;It is applied according to the source of the first audio, determines the first sound card 4011, the first sound card 4011 is the sound card of the first Audio Matching in electronic equipment;
The digital signal processor that first sound card 4011 is used to be sent to the digital signal of the first audio in electronic equipment DSP403;
DSP403 is used to carry out digital-to-analogue conversion to the digital signal of the first audio, obtains the analog signal of the first audio;Base The analog signal of the first audio is sent to the first loud speaker 4041 in the control of CPU402, the first loud speaker 4041 sets for electronics In standby matched loud speaker is applied with source;
First loud speaker 4041 is used to carry out the broadcasting of the first audio.
The embodiment of the present invention is applied according to the source of the first audio, is determined and the first Audio Matching at least two sound cards The first sound card, and the digital signal of the first audio is sent to by DSP by the first sound card so that after DSP carries out digital-to-analogue conversion The analog signal that can obtain the first audio plays the first audio by loud speaker so that the number of the audio of separate sources application Signal can be transmitted on different sound cards, and individually be handled by DSP to obtain the analog signal of each audio, in turn So that play the audio using matched loud speaker with source, realize that the case where playing multiple audios at the same time is next to raise one's voice Device can play an audio so that the identification of the audio is high, improves sense of hearing efficiency.
In a kind of possible realization method, CPU402 is used for:Obtain the source application identities that play instruction carries;According to next Source application identities are inquired the correspondence between preset application identities and sound card mark, are obtained corresponding with source application identities The first sound card mark;First sound card is identified into corresponding sound card as the first sound card 4011.
In a kind of possible realization method, CPU402 is used for:According to the input of the digital signal of upper first audios of DSP403 Interface and the output interface being connect with the first loud speaker 4041, generate control signal, and control signal is used to indicate DSP403 by the The analog signal of one audio is sent to the first loud speaker 4041;Control signal is sent to DSP403.
In a kind of possible realization method, system based on Fig. 4 A composition, referring to Fig. 4 B, which includes second raising one's voice Device 4042;
CPU402 is additionally operable to:If the second audio of playing when receiving the play instruction of the first audio controls DSP403 Stop the analog signal of the second audio being sent to the first loud speaker 4041, and the analog signal of the second audio is sent to second Loud speaker 4042, the second loud speaker 4042 are the loud speaker in addition to the first loud speaker 4041 on electronic equipment;
Second loud speaker 4042 is used to carry out the broadcasting of the second audio.
In a kind of possible realization method, CPU402 is additionally operable to:The second audio is received in the playing process of the first audio Play instruction;The analog signal of second audio is sent to the second loud speaker 4042, the second loud speaker 4042 by control DSP403 For the loud speaker on electronic equipment in addition to the first loud speaker;
Second loud speaker 4042 is used to carry out the broadcasting of the second audio.
In a kind of possible realization method, CPU402 is additionally operable to:The tune of audio is received in the playing process of any audio Section instruction, regulating command are used to adjust the volume or audio of the analog signal of audio;Based on regulating command, DSP403 is to sound for control The analog signal of frequency is adjusted.
In a kind of possible realization method, CPU402 is additionally operable to:If detecting the first sound when the second audio of playing Frequency finishes playing, and the analog signal of the second audio is sent to the first loud speaker 4041 and the second loud speaker by control DSP403 4042, the second loud speaker 4042 is the loud speaker in addition to the first loud speaker on electronic equipment.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 5 is a kind of block diagram of audio playing apparatus provided in an embodiment of the present invention.Referring to Fig. 5, which is applied to collection At the electronic equipment for having at least two sound cards, including:
Receiving module 501, the play instruction for receiving the first audio;
Determining module 502 determines that the first sound card, the first sound card set for electronics for being applied according to the source of the first audio The sound card of first Audio Matching in standby;
Sending module 503, for passing through the first sound card, the number digital signal of the first audio being sent in electronic equipment Word signal processor DSP obtains the analog signal of the first audio after carrying out digital-to-analogue conversion by DSP;
The analog signal of first audio is sent to the first loud speaker by control module 504 for controlling the DSP, By first loud speaker carry out the first audio broadcasting, first loud speaker be the electronic equipment in source application The loud speaker matched.
The embodiment of the present invention is applied according to the source of the first audio, is determined and the first Audio Matching at least two sound cards The first sound card, and the digital signal of the first audio is sent to by DSP by the first sound card so that after DSP carries out digital-to-analogue conversion The analog signal that can obtain the first audio plays the first audio by loud speaker so that the number of the audio of separate sources application Signal can be transmitted on different sound cards, and individually be handled by DSP to obtain the analog signal of each audio, in turn So that play the audio using matched loud speaker with source, realize that the case where playing multiple audios at the same time is next to raise one's voice Device can play an audio so that the identification of the audio is high, improves sense of hearing efficiency.
In a kind of possible realization method, determining module 502 is used to obtain the source application identities of play instruction carrying;Root According to source application identities, the correspondence between preset application identities and sound card mark is inquired, is obtained and source application identities Corresponding first sound card mark;First sound card is identified into corresponding sound card as the first sound card.
In a kind of possible realization method, control module 504 is used for the input of the digital signal according to upper first audios of DSP Interface and the output interface being connect with the first loud speaker, generate control signal, and control signal is used to indicate DSP by the first audio Analog signal is sent to the first loud speaker;Control signal is sent to DSP.
In a kind of possible realization method, if control module 504 be additionally operable to receive the first audio play instruction when just The second audio is being played, control DSP stops the analog signal of the second audio being sent to the first loud speaker, and by the second audio Analog signal is sent to the second loud speaker, and the second loud speaker is the loud speaker in addition to the first loud speaker on electronic equipment, by the Two loud speakers carry out the broadcasting of the second audio.
In a kind of possible realization method, receiving module 501 in the playing process of the first audio for receiving the second sound The play instruction of frequency;
The analog signal of second audio is sent to the second loud speaker, the second loud speaker by control module 504 for controlling DSP For the loud speaker on electronic equipment in addition to the first loud speaker, the broadcasting of the second audio is carried out by the second loud speaker.
In a kind of possible realization method, receiving module 501 in the playing process of any audio for receiving audio Regulating command, regulating command are used to adjust the volume or audio of the analog signal of audio;
Control module 504 is used to be based on regulating command, and the analog signal of audio is adjusted in control DSP.
In a kind of possible realization method, if control module 504 is used to detect first when the second audio of playing Audio finishes playing, and the analog signal of the second audio is sent to the first loud speaker and the second loud speaker by control DSP, and second raises one's voice Device is the loud speaker in addition to the first loud speaker on electronic equipment.
It should be noted that:Above-described embodiment provide audio frequency broadcast system or audio playing apparatus when playing audio, It only the example of the division of the above functional modules, can be as needed and by above-mentioned function distribution in practical application It is completed by different function modules, i.e., the internal structure of system or device is divided into different function modules, more than completion The all or part of function of description.In addition, audio frequency broadcast system or audio playing apparatus and audio that above-described embodiment provides Playback method embodiment belongs to same design, and specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of audio frequency playing method, which is characterized in that applied to the electronic equipment for being integrated at least two sound cards, the method Including:
Receive the play instruction of the first audio;
It is applied according to the source of first audio, determines that the first sound card, first sound card are described in the electronic equipment The sound card of first Audio Matching;
By first sound card, at the digital signal that the digital signal of first audio is sent in the electronic equipment Device DSP is managed, after carrying out digital-to-analogue conversion by the DSP, obtains the analog signal of first audio;
It controls the DSP and the analog signal of first audio is sent to the first loud speaker, carried out by first loud speaker The broadcasting of first audio, first loud speaker are to apply matched loud speaker with the source in the electronic equipment.
2. according to the method described in claim 1, it is characterized in that, described according to the application of the source of first audio, determination First sound card includes:
Obtain the source application identities that the play instruction carries;
According to the source application identities, the correspondence between preset application identities and sound card mark is inquired, is obtained and institute State the corresponding first sound card mark of source application identities;
First sound card is identified into corresponding sound card as first sound card.
3. according to the method described in claim 1, it is characterized in that, described control the DSP by the simulation of first audio Signal is sent to the first loud speaker:
It is connect according to the input interface of the digital signal of upper first audios of the DSP and the output being connect with first loud speaker Mouthful, control signal is generated, the control signal is used to indicate the DSP and the analog signal of first audio is sent to first Loud speaker;
The control signal is sent to the DSP.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
If the second audio of playing when receiving the play instruction of first audio, controls the DSP and stop described the The analog signal of two audios is sent to first loud speaker, and the analog signal of second audio is sent to second and is raised one's voice Device, second loud speaker are the loud speaker in addition to first loud speaker on the electronic equipment, are raised one's voice by described second Device carries out the broadcasting of the second audio.
5. method according to any one of claims 1 to 4, which is characterized in that the method further includes:
The play instruction of second audio is received in the playing process of first audio;
It controls the DSP and the analog signal of second audio is sent to the second loud speaker, second loud speaker is described Loud speaker on electronic equipment in addition to first loud speaker is carried out the broadcasting of the second audio by second loud speaker.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
The regulating command of the audio is received in the playing process of any audio, the regulating command is for adjusting the audio Analog signal volume or audio;
Based on the regulating command, controls the DSP and the analog signal of the audio is adjusted.
7. according to the method described in claim 1, it is characterized in that, described control the DSP by the simulation of first audio Signal is sent to the first loud speaker, and after the broadcasting that the first audio is carried out by first loud speaker, the method further includes:
If detecting that first audio finishes playing when the second audio of playing, the DSP is controlled by second sound The analog signal of frequency is sent to first loud speaker and the second loud speaker, and second loud speaker is to be removed on the electronic equipment Loud speaker other than first loud speaker.
8. a kind of audio frequency broadcast system, which is characterized in that the system comprises the electronic equipment for being integrated at least two sound cards with And multiple loud speakers, the electronic equipment further include central processor CPU, digital signal processor DSP, the DSP with it is described Multiple loud speakers connect, and each sound card on the CPU is connect by one group of audio transmission bus with the DSP, and the CPU It is also connect with the DSP by controlling bus, every group of audio transmission bus is used to the digital signal of transmission audio, the control Bus is used for transmission control signal;
The CPU is used to receive the play instruction of the first audio;It is applied according to the source of first audio, determines the first sound Card, first sound card are the sound card of the first Audio Matching described in the electronic equipment;
At the digital signal that first sound card is used to the digital signal of first audio being sent in the electronic equipment Manage device DSP;
The DSP is used to carry out digital-to-analogue conversion to the digital signal of first audio, obtains the simulation letter of first audio Number;The analog signal of first audio is sent to the first loud speaker by the control based on the CPU, and first loud speaker is In the electronic equipment matched loud speaker is applied with the source;
First loud speaker is used to carry out the broadcasting of the first audio.
9. system according to claim 8, which is characterized in that the CPU is used for:Obtain coming for the play instruction carrying Source application identities;According to the source application identities, the correspondence between preset application identities and sound card mark is inquired, is obtained It is identified to the first sound card corresponding with the source application identities;First sound card is identified into corresponding sound card as described the One sound card.
10. system according to claim 8, which is characterized in that the CPU is used for:According to upper first audios of the DSP The input interface of digital signal and the output interface being connect with first loud speaker, generate the control signal, the control Signal is used to indicate the DSP and the analog signal of first audio is sent to the first loud speaker;Described in DSP transmissions Control signal.
11. system according to claim 8, which is characterized in that the CPU is additionally operable to:If receiving first audio Play instruction when the second audio of playing, control the DSP and stop the analog signal of second audio being sent to institute The first loud speaker is stated, and the analog signal of second audio is sent to the second loud speaker, second loud speaker is described Loud speaker on electronic equipment in addition to first loud speaker;
Second loud speaker is used to carry out the broadcasting of second audio.
12. according to claim 8 to 11 any one of them system, which is characterized in that the CPU is additionally operable to:Described first The play instruction of second audio is received in the playing process of audio;The DSP is controlled to believe the simulation of second audio It number is sent to the second loud speaker, second loud speaker is raising one's voice in addition to first loud speaker on the electronic equipment Device;
Second loud speaker is used to carry out the broadcasting of second audio.
13. system according to claim 8, which is characterized in that the CPU is additionally operable to:In the playing process of any audio The middle regulating command for receiving the audio, the regulating command are used to adjust the volume or audio of the analog signal of the audio; Based on the regulating command, controls the DSP and the analog signal of the audio is adjusted.
14. system according to claim 8, which is characterized in that the CPU is additionally operable to:If the second audio of playing When detect that first audio finishes playing, control the DSP and the analog signal of second audio be sent to described One loud speaker and the second loud speaker, second loud speaker are raising one's voice in addition to first loud speaker on the electronic equipment Device.
15. a kind of audio playing apparatus, which is characterized in that the electronics that described device is applied to be integrated at least two sound cards is set Standby, described device includes:
Receiving module, the play instruction for receiving the first audio;
Determining module determines that the first sound card, first sound card are the electricity for being applied according to the source of first audio The sound card of first Audio Matching described in sub- equipment;
Sending module, for by first sound card, the digital signal of first audio to be sent to the electronic equipment In digital signal processor DSP, by the DSP carry out digital-to-analogue conversion after, obtain the analog signal of first audio;
The analog signal of first audio is sent to the first loud speaker by control module for controlling the DSP, by described One loud speaker carries out the broadcasting of the first audio, and first loud speaker is with the source in the electronic equipment using matched Loud speaker.
CN201710203965.4A 2017-03-30 2017-03-30 Audio playing method, system and device Active CN108668203B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710203965.4A CN108668203B (en) 2017-03-30 2017-03-30 Audio playing method, system and device
PCT/CN2018/079461 WO2018177148A1 (en) 2017-03-30 2018-03-19 Method, system and apparatus for playing back audio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710203965.4A CN108668203B (en) 2017-03-30 2017-03-30 Audio playing method, system and device

Publications (2)

Publication Number Publication Date
CN108668203A true CN108668203A (en) 2018-10-16
CN108668203B CN108668203B (en) 2020-09-25

Family

ID=63675234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710203965.4A Active CN108668203B (en) 2017-03-30 2017-03-30 Audio playing method, system and device

Country Status (2)

Country Link
CN (1) CN108668203B (en)
WO (1) WO2018177148A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195072A (en) * 2018-11-21 2019-01-11 广州小鹏汽车科技有限公司 Audio broadcasting control system and method based on automobile
CN110450710A (en) * 2019-07-31 2019-11-15 惠州市德赛西威汽车电子股份有限公司 A kind of electric vehicle low speed prompt system for electrical teaching
CN111580781A (en) * 2020-05-27 2020-08-25 重庆蓝岸通讯技术有限公司 Mobile terminal audio output method and mobile terminal
CN111988726A (en) * 2019-05-06 2020-11-24 深圳市三诺数字科技有限公司 Method and system for synthesizing single sound channel by stereo
CN112114773A (en) * 2020-09-18 2020-12-22 浙江如新智能科技有限公司 Multi-sound-card management method and system based on Android system
CN113055847A (en) * 2019-12-26 2021-06-29 上海博泰悦臻电子设备制造有限公司 Audio playing method and related product
CN113721881A (en) * 2021-08-19 2021-11-30 浙江鸿泉电子科技有限公司 Sound output control method and device
CN113763970A (en) * 2021-09-07 2021-12-07 广州飞傲电子科技有限公司 Audio transmission method and device and audio transmission equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858693A (en) * 2005-04-30 2006-11-08 艾威梯软件技术(北京)有限公司 Method for simultanuously supporting multiple path blue-tooth audio application
US20070061141A1 (en) * 2005-07-13 2007-03-15 Johnson Richard G Anti-terrorism interoperable radio communications
CN102378081A (en) * 2010-08-23 2012-03-14 联想(北京)有限公司 Electronic device and sound producing method thereof and sound box
CN103456330A (en) * 2013-09-09 2013-12-18 深圳市诺威达科技有限公司 Audio control method and device
CN106250094A (en) * 2016-07-25 2016-12-21 乐视控股(北京)有限公司 Sound playing method and device
CN205862318U (en) * 2016-06-07 2017-01-04 深圳市航盛电子股份有限公司 Many sound cards audio output device under a kind of embedded OS and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617803A (en) * 2013-11-08 2014-03-05 中标软件有限公司 Multi-sound-source automatic switching method and system on vehicle-mounted system
CN106293603A (en) * 2016-06-30 2017-01-04 微鲸科技有限公司 Audio output system and output intent

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858693A (en) * 2005-04-30 2006-11-08 艾威梯软件技术(北京)有限公司 Method for simultanuously supporting multiple path blue-tooth audio application
US20070061141A1 (en) * 2005-07-13 2007-03-15 Johnson Richard G Anti-terrorism interoperable radio communications
CN102378081A (en) * 2010-08-23 2012-03-14 联想(北京)有限公司 Electronic device and sound producing method thereof and sound box
CN103456330A (en) * 2013-09-09 2013-12-18 深圳市诺威达科技有限公司 Audio control method and device
CN205862318U (en) * 2016-06-07 2017-01-04 深圳市航盛电子股份有限公司 Many sound cards audio output device under a kind of embedded OS and system
CN106250094A (en) * 2016-07-25 2016-12-21 乐视控股(北京)有限公司 Sound playing method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195072A (en) * 2018-11-21 2019-01-11 广州小鹏汽车科技有限公司 Audio broadcasting control system and method based on automobile
CN111988726A (en) * 2019-05-06 2020-11-24 深圳市三诺数字科技有限公司 Method and system for synthesizing single sound channel by stereo
CN110450710A (en) * 2019-07-31 2019-11-15 惠州市德赛西威汽车电子股份有限公司 A kind of electric vehicle low speed prompt system for electrical teaching
CN113055847A (en) * 2019-12-26 2021-06-29 上海博泰悦臻电子设备制造有限公司 Audio playing method and related product
CN113055847B (en) * 2019-12-26 2023-04-28 博泰车联网科技(上海)股份有限公司 Audio playing method and related products
CN111580781A (en) * 2020-05-27 2020-08-25 重庆蓝岸通讯技术有限公司 Mobile terminal audio output method and mobile terminal
CN112114773A (en) * 2020-09-18 2020-12-22 浙江如新智能科技有限公司 Multi-sound-card management method and system based on Android system
CN113721881A (en) * 2021-08-19 2021-11-30 浙江鸿泉电子科技有限公司 Sound output control method and device
CN113763970A (en) * 2021-09-07 2021-12-07 广州飞傲电子科技有限公司 Audio transmission method and device and audio transmission equipment
CN113763970B (en) * 2021-09-07 2023-09-22 广州飞傲电子科技有限公司 Audio transmission method and device and audio transmission equipment

Also Published As

Publication number Publication date
CN108668203B (en) 2020-09-25
WO2018177148A1 (en) 2018-10-04

Similar Documents

Publication Publication Date Title
CN108668203A (en) Audio frequency playing method, system and device
US20080051917A1 (en) Network Audio Speaker System
SE9800697D0 (en) Method and apparatus for wireless communication
JP6875437B2 (en) Audio signal processor and speaker
CN209787421U (en) vehicle-mounted entertainment system and vehicle
CN110321096A (en) A kind of MCVF multichannel voice frequency intelligent control method and relevant apparatus and equipment
CN201898592U (en) Multifunctional USB (Universal Serial Bus) sound box chip and sound box device
JP2007522711A (en) Multi-mode and multi-channel psychoacoustic processing method for emergency communication
CN112748897B (en) Volume debugging method, device and equipment of vehicle-mounted system
CN218103136U (en) Wireless partition broadcasting system
CN107704172B (en) Multimedia application switching control method, system and storage device
CN220570583U (en) Television singing system, circuit board and television
CN111739496A (en) Audio processing method, device and storage medium
CN113747092A (en) Sound channel playing method, system and storage medium
JPH02127808A (en) Automatic sound volume adjusting device in on-vehicle acoustic equipment
CN111246346B (en) Wireless multi-audio acquisition interoperation system
JP2002135883A (en) On-vehicle audio interface adapter
US20070071251A1 (en) Audio switch
CN210381283U (en) External vehicle-mounted sound effect device
CN213960307U (en) General type car power amplifier
US7903007B2 (en) Method and apparatus for converting signals
KR100733630B1 (en) System for providing broadcast service through communication terminal
CN2266851Y (en) Wired and multiplex wireless microphone expanding device for audio-video compact disk machine
JP2990063B2 (en) Gain adjustment circuit in hands-free communication device
CN105304104A (en) System and method for utilizing auxiliary devices to playing sounds

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