WO2019136675A1 - 一种终端设备、dsd音频播放电路和方法 - Google Patents

一种终端设备、dsd音频播放电路和方法 Download PDF

Info

Publication number
WO2019136675A1
WO2019136675A1 PCT/CN2018/072292 CN2018072292W WO2019136675A1 WO 2019136675 A1 WO2019136675 A1 WO 2019136675A1 CN 2018072292 W CN2018072292 W CN 2018072292W WO 2019136675 A1 WO2019136675 A1 WO 2019136675A1
Authority
WO
WIPO (PCT)
Prior art keywords
prompt sound
control information
prompt
audio signal
dsd
Prior art date
Application number
PCT/CN2018/072292
Other languages
English (en)
French (fr)
Inventor
杨枭
李芳庆
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880019362.1A priority Critical patent/CN110431915B/zh
Priority to PCT/CN2018/072292 priority patent/WO2019136675A1/zh
Priority to EP18899093.1A priority patent/EP3713373B1/en
Priority to US16/961,462 priority patent/US11606459B2/en
Publication of WO2019136675A1 publication Critical patent/WO2019136675A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6016Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/02Calling substations, e.g. by ringing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • the embodiments of the present invention relate to the field of electronic technologies, and in particular, to a terminal device, a direct stream digital (DSD) audio playing circuit and a method.
  • DSD direct stream digital
  • DSD is a high-definition high-definition digital audio format.
  • DAC digital to analog converter
  • the terminal device may include: a processor, a DAC chip, a headphone interface, and the like.
  • the processor is a controller of the terminal device, and the DAC chip supports DSD decoding.
  • the processor and the DAC chip are connected by an inter-IC sound (I2S) between the I2C (inter integrated circuit) bus and the integrated circuit.
  • I2S inter-IC sound
  • the processor reads and controls the operating state of the DAC chip through the I2C bus.
  • the processor When the terminal device plays the DSD audio signal, the processor outputs the DSD audio signal to the DAC chip through the I2S based on the DoP (DSD over PCM) protocol, wherein the PCM is an abbreviation of pulse code modulation.
  • the DAC chip converts the DSD audio signal into an analog audio signal and outputs the analog audio signal to the headphone interface.
  • the headphone jack is used to connect headphones, and the terminal device plays analog audio signals through the headphones.
  • the processor can no longer transmit other audio signals to the DAC chip. This may cause the user to miss some information, such as an incoming call, because they cannot hear other audio signals.
  • the embodiment of the invention provides a terminal device, a DSD audio playing circuit and a method, which are helpful for outputting a prompt sound while playing a DSD audio signal.
  • a terminal device may include a processor, a DSD audio playback circuit and a headphone interface, the processor is connected to the DSD audio playback circuit, and the DSD audio playback circuit is connected to the earphone interface.
  • the processor outputs a DSD audio signal to the DSD audio playback circuit in response to the user's trigger.
  • the DSD audio playing circuit is configured to: process the DSD audio signal; generate a prompt sound according to the current scene; and superimpose the processed DSD audio signal and the prompt sound.
  • the headphone jack is used to connect headphones, and the superimposed audio signals and prompts are played through the headphones.
  • the processor may be an application processor, of course, not limited thereto.
  • the DSD audio playback circuit can be a chip that supports DSD decoding, such as a DAC chip.
  • the terminal device superimposes the prompt sound and the processed DSD audio signal through the DSD audio playing circuit, and plays the superimposed signal through the earphone, thereby realizing the playing of the DSD audio signal and outputting the prompt sound.
  • the current scene refers to a scene that currently has a need to play a prompt tone.
  • the processor can also be used to determine the tone control information corresponding to the current scene.
  • the current scene refers to a scene that has a prompt playing requirement.
  • the current scene includes at least one of a call incoming, a received short message, a received WeChat message, a received QQ message, and a low battery.
  • the prompt tone control information may include at least one of a frequency, a volume, a generation period, a single play duration, and a total play count of the prompt sound.
  • the DSD audio playing circuit can be used to generate a prompt sound according to the prompt sound control information corresponding to the current scene.
  • the DSD audio playback circuit can generate a tone under the control of the processor.
  • the DSD audio playback circuit includes a digital to analog converter and a tone output circuit.
  • the digital-to-analog converter is used for digital-to-analog conversion of the DSD audio signal to obtain an analog audio signal.
  • the prompt sound output circuit includes a control unit, a generating unit and a superimposing unit, wherein the generating unit generates a prompt sound according to the reference signal and the prompt sound control information corresponding to the current scene under the control of the control unit; and the superimposing unit is configured to superimpose the analog audio signal And the tone.
  • the processor is further configured to determine the prompt sound control information corresponding to the current scene, where the processor may be further configured to: determine, according to the correspondence between the preset scene and the prompt sound control information, The prompt sound control information corresponding to the current scene.
  • the preset scenario includes at least one of a call incoming, a received short message, a received WeChat message, a received QQ message, and a low battery.
  • the current scene is one of the preset scenes.
  • the preset scene and the prompt sound control information are stored in the non-volatile memory. In this possible design, different prompt sound control information can be set for different preset scenes, thereby helping the user to recognize the current scene according to the prompt sound.
  • a terminal device may include: a processor, a DSD audio playing circuit and a headphone interface, the processor is connected to the DSD audio playing circuit, and the DSD audio playing circuit is connected to the earphone interface.
  • the processor is configured to: in response to a trigger of the user, output a DSD audio signal to the DSD audio playing circuit; and determine prompt sound control information corresponding to the current scene.
  • the DSD audio playing circuit is configured to: process the DSD audio signal; generate a prompt sound according to the prompt sound control information corresponding to the current scene; and superimpose the processed DSD audio signal and the prompt sound.
  • the headphone jack is used to connect headphones, and the superimposed audio signals and prompts are played through the headphones.
  • the processor can be an application processor.
  • the DSD audio playback circuit can be a chip that supports DSD decoding, such as a DAC chip.
  • the DSD audio playback circuit includes a digital-to-analog converter and a prompt sound output circuit, and the digital-to-analog converter is used for digital-to-analog conversion of the DSD audio signal to obtain an analog audio signal.
  • the prompt sound output circuit includes a control unit, a generating unit, and a superimposing unit.
  • the generating unit generates a prompt sound according to the reference signal and the prompt sound control information corresponding to the current scene under the control of the control unit.
  • Superimposed unit for superimposing analog audio signals and tones.
  • the processor is configured to determine the prompt sound control information corresponding to the current scene, where the processor may be configured to determine the current scene according to the correspondence between the preset scene and the prompt sound control information. Corresponding tone control information.
  • a DSD audio playback circuit may include: a digital-to-analog converter and a prompt sound output circuit, and the digital-to-analog converter is connected to the prompt sound output circuit.
  • digital-to-analog converter for digital-to-analog conversion of DSD audio signals to obtain analog audio signals.
  • the prompt sound output circuit is configured to generate a prompt sound according to the current scene, and superimpose the analog audio signal and the prompt sound. The superimposed analog audio signals and tones are played through the headphones connected to the headphone jack.
  • the prompt sound output circuit is specifically configured to generate a prompt sound according to the prompt sound control information corresponding to the current scene.
  • the prompt sound output circuit may include: a control unit, a generating unit, and a superimposing unit.
  • the generating unit generates a prompt sound according to the reference signal and the prompt sound control information corresponding to the current scene under the control of the control unit; and the superimposing unit is configured to superimpose the analog audio signal and the prompt sound.
  • a DSD audio playback method may include: converting the DSD audio signal into an analog audio signal; generating a prompt sound according to the current scene; superimposing the analog audio signal and the prompt sound; and playing the superimposed analog audio signal and the prompt sound through the earphone connected to the earphone interface.
  • the method may further include: determining prompt sound control information corresponding to the current scene.
  • generating the prompt sound according to the current scene may include: generating a prompt sound according to the prompt sound control information corresponding to the current scene.
  • determining the prompt sound control information corresponding to the current scene may include: determining the sound control information corresponding to the current scene according to the correspondence between the preset scene and the prompt sound control information.
  • the embodiment of the present invention further provides a terminal device.
  • the terminal device can include a memory and a processor.
  • the memory is for storing a computer program that, when executed by the processor, causes any of the methods provided by the fourth aspect to be performed.
  • an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program that, when run on a computer, causes any of the methods provided by the fourth aspect to be performed.
  • embodiments of the present invention also provide a computer program product that, when run on a computer, causes any of the methods provided by the fourth aspect to be performed.
  • the current scene is a scene belonging to the preset scene.
  • FIG. 1 is a schematic structural diagram of a terminal device provided by the prior art
  • FIG. 2 is a schematic structural diagram 1 of a terminal device according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a relationship between a generation period of a prompt sound, a single play duration, and a total play count according to an embodiment of the present invention
  • FIG. 4 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 5 is a third schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram 4 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram 1 of a generating unit according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram 5 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 9 is a second schematic structural diagram of a generating unit according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram 3 of a generating unit according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a first superimposing unit according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an adjustable resistor RA according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram 6 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of a second superimposing unit according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram 7 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram 8 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic flowchart of a DSD audio playing method according to an embodiment of the present invention.
  • FIG. 18 is a schematic structural diagram 9 of a terminal device according to an embodiment of the present invention.
  • the “and/or” in the embodiment of the present application is only used to describe the association relationship of the associated objects, and indicates that there may be three relationships between the associated objects. For example, A and/or B indicates that A exists separately, and A and B, B exists alone. The symbol “/" indicates that the associated object is an OR relationship, for example, A/B indicates A or B. "First", “second”, etc. are used to distinguish different objects, rather than to describe a particular order of objects. "Multiple" means two or more.
  • the DSD audio playback circuit provided in the embodiment of the present invention is included in the terminal device, the description about the embodiment of the DSD audio playback circuit is included in the description about the embodiment of the terminal device, and the following does not.
  • the embodiment of the DSD audio playback circuit is separately described.
  • FIG. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device may be a mobile phone, a tablet computer, a wearable device, smart glasses, or the like.
  • the terminal device may include a processor 10, a DSD audio playback circuit 20, and a headphone interface 30.
  • the processor 10 is connected to the DSD audio playback circuit 20, and the DSD audio playback circuit 20 is connected to the earphone interface 30.
  • the processor 10 may be an application processor (AP), and may be other processors, which are not limited in this embodiment of the present invention.
  • the DSD audio playback circuit 20 may be a chip that supports DSD decoding, such as a DAC chip or the like.
  • the processor 10 outputs a DSD audio signal to the DSD audio playback circuit 20 in response to a user trigger. For example, when determining that the user triggers playing an audio file in the DSD format, the processor 10 outputs a DSD audio signal to the DSD audio playback circuit 20 in response to the user's trigger.
  • the DSD audio playing circuit 20 is configured to process the DSD audio signal and generate a prompt sound according to the current scene; and superimpose the prompt sound and the processed DSD audio signal.
  • the earphone interface 30 is used to connect the earphones, and the superimposed audio signals and prompt sounds are played through the earphones.
  • the current scene refers to a scene that currently has a need to play a prompt tone.
  • the current scenario may be at least one of a scene of incoming a call, receiving a short message, receiving a WeChat message, receiving a QQ message, or insufficient power.
  • the DSD audio playing circuit when the processor recognizes that the current scene is a scene that needs to play a prompt sound, the DSD audio playing circuit generates a preset prompt sound according to the current scene.
  • the scenes with the playing sounds may be multiple, for example, there are incoming calls, received short messages, received WeChat messages, and insufficient power.
  • the corresponding sounds of these scenes may be one, that is, the prompt sounds are the same.
  • these scenes can also correspond to different prompt sounds, that is, one scene corresponds to one prompt sound.
  • a plurality of scenes in these scenarios may also correspond to one prompt tone, for example, a call incoming by a telephone, a received short message, and a prompt tone corresponding to the received WeChat message is a prompt tone, and the prompt tone corresponding to the insufficient power is another prompt tone.
  • the tone may be a single tone tone having a certain frequency, for example, the frequency of the tone is f1.
  • the prompt sound may also be a multi-frequency prompt sound obtained by superimposing a plurality of sub-prompted sounds having different frequencies.
  • it may be a dual-frequency prompt sound obtained by superimposing two sub-prompted sounds having a frequency f2 and a frequency f3, and may of course be a three-frequency prompt sound (three superimposed with three sub-prompted sounds having a frequency f4, a frequency f5, and a frequency f6).
  • Frequency tone The range of the frequency of the single-frequency prompt tone and the frequency range of any of the sub-prompted sounds may be 20 Hz to 20000 Hz.
  • the frequency of the DSD audio signal is usually varied within a frequency range (i.e., frequency band), for example, the frequency range may be 20 Hz to 20000 Hz.
  • Superimposing the prompt tone and the processed DSD audio signal can be understood as: time domain summation of the prompt tone and the processed DSD audio signal.
  • the frequency range of the DSD audio signal is 20 Hz to 20000 Hz
  • the prompt tone is a single-frequency prompt tone
  • the frequency is 200 Hz
  • the superimposed audio signal and the prompt tone are played
  • the simultaneous playback frequency range is 20 Hz to 20000 Hz.
  • the audio signal and frequency are 200 Hz tones.
  • the terminal device processes the DSD audio signal, and generates a prompt sound according to the current scene; then superimposes the prompt sound and the processed DSD audio signal, and plays the superimposed signal through the earphone to realize playing DSD.
  • a tone is output. Since the prompt tone is usually a fixed frequency audio signal, or several fixed frequency audio signals are superimposed to obtain an audio signal, the frequency of the DSD audio signal is usually varied within a frequency range (ie, frequency band). Even if the frequency of the tone is the same as the frequency of the DSD audio signal at a certain moment, the frequency of the DSD audio signal at the next moment will usually be different from the frequency of the tone. Therefore, after the prompt sound is superimposed on the DSD audio signal and output to the earphone, the user can recognize the prompt sound while hearing the DSD audio signal.
  • the DSD audio playback circuit 20 may generate a prompt tone according to the prompt sound control information corresponding to the current scene.
  • the prompt sound control information refers to information for controlling parameters of the prompt sound.
  • the parameters of the prompt sound may include, but are not limited to, the frequency of the prompt sound, the generation period, the volume, the generation period, the single play duration, and the total number of plays.
  • the prompt sound control information may be the frequency of the prompt sound, the generation period, the volume, and the generation. One of the period, the duration of a single play, and the total number of plays.
  • the prompt sound control information may also be a plurality of types of the prompt sound frequency, the generation period, the volume, the generation period, the single play duration, and the total play times, for example, two or three.
  • the generation period is the time interval between two adjacent generations of the prompt tone.
  • the single play duration refers to the playback duration in one generation cycle. The relationship between the generation cycle, the single play duration, and the total number of plays is shown in Figure 3. In FIG. 3, the generation period of the tone is 1 s, the duration of the single play is 0.5 s, and the total number of plays is 6 times.
  • the specific content of the tone control information refer to the following.
  • the prompt sound control information may be the same or different.
  • the correspondence between the preset scene and the prompt sound control information may be stored in a non-volatile memory of the terminal device in advance.
  • the processor 10 may determine the prompt sound control information corresponding to the current scene according to the corresponding relationship between the preset scene and the prompt sound control information when determining the current scene, and provide the DSD audio playback circuit 20 with the current scene corresponding to the current scene. Tone control information.
  • the DSD audio playback circuit 20 may generate a prompt sound according to the prompt sound control information corresponding to the current scene.
  • the preset scenario refers to a preset scenario with a need to play a prompt tone.
  • the scenario may include, but is not limited to, having a call incoming, receiving a short message, receiving a WeChat message, receiving a QQ message, or insufficient power.
  • the scene with the need to play the prompt tone may be at least one of a scene of incoming call, received short message, received WeChat message, received QQ message, or insufficient power.
  • the prompt sound control information corresponding to any two preset scenes may be the same or different.
  • the current scene can be one of the preset scenes.
  • the correspondence between the preset scene and the prompt sound control information may be as shown in Table 1.
  • the prompt tone control information corresponding to the preset scenario may be at least one of B1, C1, D1, E1, and F1. Other examples are not listed one by one.
  • the sound control information may be stored in the non-volatile memory of the terminal device in advance.
  • the processor 10 may transmit control information for instructing the start of execution of the flow of generating the prompt tone to the DSD audio playback circuit 20 in determining the current scene.
  • the specific content of the control information is not limited in the embodiment of the present invention.
  • the DSD audio playback circuit 20 may acquire the stored prompt sound control information and generate a prompt sound according to the prompt sound control information.
  • the DSD audio playback circuit 20 may superimpose the prompt sound and the processed DSD audio signal according to the superimposed signal control information corresponding to the current scene.
  • the superimposed signal control information refers to information for controlling parameters of the superimposed signal.
  • the parameters of the superimposed signal may include, but are not limited to, the volume of the superimposed signal, and the like. An example of the specific content of the superimposed signal control information can be referred to below.
  • the superimposed signal control information may be the same or different.
  • the correspondence between the preset scene and the superimposed signal control information may be stored in a non-volatile memory of the terminal device in advance.
  • the processor 10 may determine the superimposed signal control information corresponding to the current scene according to the correspondence between the preset scene and the superimposed signal control information, and input the current scene corresponding to the DSD audio playing circuit 20 Superimpose signal control information.
  • the DSD audio playback circuit 20 may superimpose the prompt sound and the processed DSD audio signal after receiving the superimposed signal control information corresponding to the current scene.
  • the superimposed signal control information prompt sound control information corresponding to any two preset scenes may be the same or different.
  • the correspondence between the preset scene and the superimposed signal control information can be as shown in Table 2.
  • the superimposed signal control information corresponding to the preset scenario may be G1.
  • Other examples are not listed one by one.
  • the superimposed signal control information may be stored in the non-volatile memory of the terminal device in advance.
  • the processor 10 can transmit control information for instructing the start of execution of the flow of generating the prompt sound to the DSD audio playback circuit 20 when determining the current scene.
  • the DSD audio playback circuit 20 may acquire the stored superimposed signal control information after receiving the control information, and superimpose the prompt sound and the processed DSD audio signal according to the superimposed signal control information.
  • the processor 10 inputs the prompt sound control information to the DSD audio playback circuit 20.
  • the processor 10 also inputs the superimposed signal control information to the DSD audio playback circuit 20 as an example for description.
  • the DSD audio playback circuit 20 may include a first interface 201, a second interface 202, a clock input interface 203, a digital to analog converter 204, and a tone output circuit 205 and the like.
  • the processor 10 is connected to the first interface 201, the second interface 202, and the clock input interface 203.
  • the DSD audio playback circuit 20 can be a DAC chip
  • the first interface 201 can be a DSD input interface
  • the second interface 202 can be an I2C interface.
  • the processor 10 is connected to the first interface 201.
  • the processor 10 and the DSD input interface may be connected through an I2S connection, or may be connected through a dedicated DSD pin.
  • the processor 10 is connected to the second interface 202.
  • the processor 10 and the I2C interface are connected through an I2C bus.
  • the digital to analog converter 204 can be coupled to both the first interface 201, the second interface 202, the clock input interface 203, and the tone output circuit 205. Refer to Figure 4 for the specific connection relationship. among them:
  • the processor 10 can input a DSD audio signal to the digital to analog converter 204 through the first interface 201. For example, when determining that the user triggers playing the audio file in the DSD format, the processor 10 inputs the DSD audio signal to be played to the digital-to-analog converter 204 through the first interface 201 in response to the trigger of the user.
  • the processor 10 can input the first control information to the digital to analog converter 204 through the second interface 202.
  • the first control information is used to control the digital to analog converter 204.
  • the first control information is used to control the switching of the digital to analog converter 204, thereby controlling when the digital to analog converter 204 starts to work and when to stop. jobs.
  • the first control information can be used to control the digital to analog conversion rate, digital to analog conversion accuracy, and the like of the digital to analog converter 204.
  • the processor 10 can provide a clock signal to the DSD audio playback circuit 20 via the clock input interface 203.
  • the clock signal is typically a periodic square wave signal for clocking some or all of the digital circuit devices (eg, registers, etc.) in the DSD audio playback circuit 20 to support the operation of the digital circuit device based on the clock signal.
  • the clock signal can be used as a clock signal for the digital circuit device in the digital to analog converter 204. Of course, it can also be used as a clock signal for other modules/units/devices (not shown in FIG. 4) in the DSD audio playback circuit 20.
  • the digital-to-analog converter 204 can be configured to perform digital-to-analog conversion on the DSD audio signal input through the first interface 201 under the control of the first control information input through the second interface 202 to obtain an analog audio signal, and the analog audio signal. It is output to the prompt sound output circuit 205.
  • the tone output circuit 205 can be coupled to both the second interface 202, the digital to analog converter 204, and the earphone interface 30. Refer to Figure 4 for the specific connection relationship. among them:
  • the processor 10 can input the second control information to the prompt sound output circuit 205 through the second interface 202.
  • the second control information includes prompt sound control information.
  • the second control information may further include superimposed signal control information.
  • the prompt sound output circuit 205 can also be connected through an interface (for example, an I2C interface) other than the second interface 202 provided in the DSD audio playback circuit 20, thereby implementing the processor 10 to input the prompt sound output circuit 205.
  • an interface for example, an I2C interface
  • the prompt sound output circuit 205 can generate a prompt sound according to the reference signal and the prompt sound control information corresponding to the current scene, and superimpose the prompt sound and the analog audio signal according to the superimposed signal control information corresponding to the current scene. The superimposed signal is then output to the headphone jack 30.
  • the reference signal may be a periodic signal, such as a periodic square wave signal, a periodic sawtooth signal, or the like.
  • the frequency of the reference signal may range from 20 Hz to 20000 Hz.
  • the reference signal may be a clock signal of the DSD audio playback circuit 20, in which case the prompt sound output circuit 205 may also be connected to the clock input interface 203. In this way, it is not necessary to provide a dedicated reference signal for the DSD audio playback circuit 20 to generate a prompt tone, which is simple to implement.
  • the reference signal can also be a dedicated reference signal.
  • the reference signal may also be a reference signal input by the processor 10 to the prompt sound output circuit 205 through an interface other than the clock input interface 203 provided in the DSD audio playback circuit 20, or may be another set in the terminal device.
  • the reference signal input from the processor 10 to the prompt sound output circuit 205.
  • the clock signal whose reference signal is the DSD audio playback circuit 20 will be described as an example.
  • the prompt sound output circuit 205 may include a control unit 21, a generating unit 22, and a first superimposing unit 23.
  • the control unit 21 may include an input terminal 21A and an output terminal 21B.
  • the input end 21A of the control unit 21 is connected to the second interface 202 for receiving second control information output by the processor 10, wherein the second control information includes prompt sound control information.
  • the second control information may also include superimposed signal control information.
  • the generating unit 22 includes a control terminal 22A, an input terminal 22B, and an output terminal 22C.
  • the control terminal 22A of the generating unit 22 is connected to the output terminal 21B of the control unit 21, and can be used to receive the second control information output by the control unit 21 via the output terminal 21A.
  • the input 22B of the generating unit 22 is for receiving a reference signal.
  • the input 22B of the generating unit 22 can be connected to the clock input interface 203 for receiving a clock signal output by the processor 10.
  • the generating unit 22 is configured to generate a prompt sound based on the reference signal under the control of the prompt sound control information.
  • the first superimposing unit 23 includes a first input terminal 23A, a second input terminal 23B, and an output terminal 23C.
  • the first input terminal 23A is connected to the digital-to-analog converter 204 for receiving the analog audio signal output by the digital-to-analog converter 204
  • the second input terminal 23B is connected to the output terminal 22C of the generating unit 22 for receiving the output by the generating unit 22.
  • the first superimposing unit 23 is configured to superimpose an analog audio signal and a prompt sound.
  • the output terminal 13C of the first superimposing unit 23 is connected to the headphone jack 30 for outputting the superimposed signal to the headphone jack 30.
  • a signal obtained by superimposing the first superimposing unit 23 hereinafter is referred to as a superimposed signal.
  • the first superimposing unit 23 may further include a control end (not shown in FIG. 5).
  • the control terminal is configured to receive the superimposed signal control information output by the control unit via the output terminal 21B.
  • the first superimposing unit 23 may specifically be configured to superimpose the analog audio signal and the prompt sound according to the superimposed signal control information.
  • control unit 21 can output the prompt sound control information to the generating unit 21 through one output terminal 21B, and output the superimposed signal control information to the first superimposing unit 23 through another output end 21B; or can pass the same output.
  • the terminal 21B outputs the prompt sound control information to the generating unit 21, and outputs the superimposed signal control information to the first superimposing unit 23. This application does not limit this.
  • the audio signals output by the terminal device to the earphone include a left channel audio signal and a right channel audio signal.
  • the superimposed signal generated by the first superimposing unit 23 may be one of a left channel audio signal and a right channel audio signal, which is labeled L/R in FIG.
  • the DSD audio playback circuit 20 may include two prompt sound output circuits 205, and the two prompt sound output circuits 205 may be separately provided.
  • the control unit 21 may also share the same control unit 21; the independent generating unit 22 and the first superimposing unit 23 may be separately provided.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the DSD audio playback circuit 20 includes two prompt sound output circuits 205, and the two prompt sound output circuits 205 are provided with an independent control unit 21, a generating unit 22, and a first superimposing unit 23, respectively.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the DSD audio playback circuit 20 includes two prompt sound output circuits 205, and the two prompt sound output circuits 205 are provided with an independent control unit 21, a generating unit 22, and a first superimposing unit 23, respectively.
  • the two prompt sound output circuits 205 are respectively labeled as a sound output circuit 205 (L) and a sound output circuit 205 (R), and correspondingly, analog sounds related to the two sound output circuits 205 are associated.
  • the signal, the prompt tone, the second control information, and the like are also added with the mark of (L) or (R), as shown in FIG. 6.
  • the prompt sound output circuit 205 (L) outputs a left channel audio signal to the earphone, and the prompt sound output circuit 205 (R) outputs a right channel audio signal to the earphone.
  • the second control information (L) and the second control information (R) may be the same or different.
  • the prompt tone (L) and the prompt tone (R) may be the same or different.
  • the terminal device outputs one of the left channel audio signal and the right channel audio signal to the earphone as an example, that is, based on the DSD audio playback circuit 20 shown in FIG. 5 as an example. Description.
  • control unit 21 the generating unit 22, and the first superimposing unit 23 will be described.
  • the control unit 21 can set one or more registers. Each register may store one or more types of tone control information and/or one or more types of overlay signal control information. Wherein, each type of prompt sound control information is used to control a parameter of the prompt sound, and the parameter may be any one of the parameters shown in Table 1. Each type of superimposed signal tone is used to control a parameter of the superimposed signal, which may be any of the parameters shown in Table 2.
  • the processor 10 may write corresponding prompt sound control information to the corresponding register after determining the prompt sound control information corresponding to the current scene.
  • the control unit 21 can read the prompt sound control information stored in the corresponding register, thereby controlling the corresponding parameters of the prompt sound, and the corresponding parameter can be the parameter of the prompt sound shown in Table 1.
  • a plurality of registers include a first register for storing tone sound control information for controlling the frequency of the prompt sound, and a second register for storing sound control information for controlling the volume of the prompt sound
  • the processor 10 can write B1 to the first register, write C1 to the second register, and the control unit 21 can read the first register.
  • the B1 is stored, thereby controlling the frequency of the beep, and reading the C1 stored in the second register, thereby controlling the volume of the beep.
  • the processor 10 may write corresponding superimposed signal control information into the corresponding register after determining the superimposed signal control information corresponding to the current scene.
  • the control unit 21 can read the superimposed signal control information stored in the register to control the corresponding parameters of the superimposed signal, thereby controlling the first superimposing unit 23 to superimpose the prompt sound and the analog audio signal, and the corresponding parameter can be as shown in Table 2.
  • the parameters of the superimposed signal can be read the superimposed signal control information stored in the register to control the corresponding parameters of the superimposed signal, thereby controlling the first superimposing unit 23 to superimpose the prompt sound and the analog audio signal.
  • the generating unit 22 can include a first frequency divider 221.
  • the first frequency divider 221 can include a control terminal, an input terminal, and an output terminal.
  • the control end of the first frequency divider 221 is the control end 22A of the generating unit 22
  • the input end of the first frequency divider 221 is the input end 22B of the generating unit 22
  • the output end of the first frequency dividing unit 221 is the generating unit 22 Output 22C.
  • the first frequency divider 221 is configured to perform frequency division processing on the analog audio signal to generate a prompt sound having a certain frequency.
  • a certain frequency here may be any one of 20 Hz to 20000 Hz.
  • the prompt tone may be a single-frequency prompt tone, and the single-tone prompt tone may be used to make the prompt tone output circuit 205 simple.
  • the prompt sound control information output by the control unit 21 to the control end of the first frequency divider 221 may specifically be: for controlling the first frequency divider 221 to generate the frequency.
  • the information of the signal of f1 may be, for example, a frequency dividing factor used when the first frequency divider 221 generates a signal having the frequency f1. If the frequency of the input signal of the first frequency divider 221 is f, the frequency dividing factor may be f1/f.
  • the frequency f of the input signal of the first frequency divider 221 may be the frequency of the reference signal.
  • the reference signal is the clock signal of the DSD audio playback circuit 20, when applied to the terminal device as shown in Fig. 4, the input terminal of the first frequency divider 221 can be connected to the clock input interface 203.
  • the frequency of the input signal of the first frequency divider 221 may be a signal obtained by processing the frequency of the reference signal.
  • the generating unit 22 may further include a phase locked loop 220.
  • the reference signal is input to the first frequency divider 221 via the phase locked loop 220.
  • the input end of the phase locked loop 220 is the input end 22B of the generating unit 22.
  • the reference signal is a clock signal of the DSD audio playback circuit 20, when applied to the terminal device as shown in FIG.
  • the phase locked loop 220 may be located between the clock input interface 203 and the first frequency divider 221, and the clock
  • the input interface 203 is connected to the input end of the phase locked loop 220
  • the output end of the phase locked loop 220 is connected to the input end of the first frequency divider 221.
  • the phase locked loop 220 is used to lock the phase of the clock signal, and the frequency of the output signal may be greater than, equal to, or less than the frequency of the clock signal, so that the frequency of the prompt sound obtained by dividing the first frequency divider 221 may be Greater than, equal to, or less than the frequency of the clock signal.
  • the frequency of the clock signal of the DSD audio playback circuit 20 is f0
  • the frequency of the signal obtained after the phase-locked loop 220 is f
  • the frequency of the signal obtained after the first frequency divider 221 is f1.
  • f0 can be greater than f, equal to f, or less than f.
  • f1 is smaller than f.
  • the generating unit 22 may further include a first low pass filter 222.
  • the first low pass filter 222 may be disposed between the first frequency divider 221 and the first superimposing unit 23 for attenuating higher harmonics in the prompt tone. This will try to avoid the prompt tone being too sharp and harsh.
  • the first low pass filter 222 can be composed of a resistor and a capacitor. By adjusting the capacitance of the capacitor, the cutoff frequency of the low-pass filter can be changed, thereby attenuating the higher harmonics in the prompt tone to different degrees.
  • the generating unit 22 may include a second frequency divider 223 and a second superimposing unit 225.
  • the second frequency divider 223 may include a control terminal, an input terminal, and m output terminals; m is an integer greater than or equal to 2; a control terminal of the second frequency divider 223 is a control terminal 22A of the generating unit 22, and a second frequency divider The input of 223 is the input 22B of the generating unit 22.
  • the second superimposing unit 225 includes an output end and m input ends, and an output end of the second superimposing unit 225 is an output end 22C of the generating unit 22, and each input end of the second superimposing unit 225 and one of the second frequency dividing unit 223 The output is connected.
  • the second superimposing unit 225 is configured to superimpose the m sub-prompted sounds output by the second frequency divider 223 to generate a prompt sound.
  • the prompt tone may be a multi-frequency prompt tone.
  • the prompt tone is superimposed by sub-along sounds having different frequencies.
  • each sub-beep can be directly generated by the second frequency divider 223, it does not cause the circuit to be too complicated.
  • the prompt tone control information input by the control terminal may specifically be: information for controlling the second frequency divider 223 to generate signals having frequencies f2 and f3. For example, it may be a frequency dividing factor used when the second frequency divider 223 generates sub-prompts of the frequencies f2 and f3.
  • the frequency dividing factor used when generating the sub-prompting sound of the frequency f2 is f2/f
  • the frequency dividing factor used when generating the sub-prompting sound of the frequency f3 is F3/f.
  • the correspondence between f2 and f3 corresponding to different preset scenes can be as follows. Table 3 shows:
  • the frequency division used when the second frequency divider 223 generates the sub-beep sound of the frequency f2 in each preset scene in Table 3 can be obtained.
  • B1, B2, B3, B4, and B5 in Table 1 can be obtained.
  • B1 in a scenario where a call comes in may specifically be: 1000/f and 3000/f.
  • the B2 in the scenario of receiving the short message may be: 800/f and 3500/f.
  • a second low pass filter 224 is disposed between the second frequency divider 223 and the second superimposing unit 225 for attenuating higher harmonics in the m sub-prompts.
  • the second low pass filter 224 can be composed of a resistor and a capacitor. By adjusting the capacitance of the capacitor, the cutoff frequency of the low-pass filter can be changed, thereby attenuating the higher harmonics in the sub-tones to different degrees.
  • a second low pass filter 224 is provided for each sub prompt to attenuate the higher harmonics in the sub prompt, as shown in FIG.
  • the second superimposing unit 225 may include a second amplifier A1.
  • the second amplifier A1 includes a co-directional terminal, an opposite terminal, and an output terminal. The same direction of the second amplifier A1 receives m sub-beepes.
  • the inverting terminal of the second amplifier A1 is grounded via a second grounding resistor RA.
  • the output of the second amplifier A1 is the output of the second superimposing unit 225.
  • the second amplifier A1 can amplify the superimposed prompt sounds on the basis of superimposing m sub-prompts.
  • the second superimposing unit 225 may further include resistors R1, R2, R3, and Rf1, and the connection relationship between the resistors and the second amplifier A1 may be referred to FIG.
  • the input voltages of the two input terminals of the second superimposing unit 225 are denoted as Ua and Ub, respectively, and the output voltage of the output terminal is denoted as Uc.
  • Rf1 is an adjustable resistor.
  • the RA can be an unregulated resistor or an adjustable resistor.
  • Fig. 11 the case where RA is an adjustable resistor is taken as an example.
  • the gain of the second amplifier A1 can be controlled by adjusting the magnitude of the resistance of RA and Rf1, thereby controlling the volume of the tone.
  • the relationship between the input voltages Ua and Ub of the second superimposing unit 225 and the output voltage Uc can be expressed by the following formula: Since the resistance values of R1, R2, and R3 are usually fixed, the output voltage Uc of the second amplifier A1 can be controlled by adjusting the magnitude of the resistance of RA and Rf1. Among them, the larger the value of Uc, the louder the volume of the prompt tone.
  • RA is an adjustable resistor
  • FIG. 12 an implementation that achieves adjustable resistance of RA is shown in FIG.
  • the resistance of the RA can be controlled by controlling the closed state of the switches S1 and S2.
  • the resistance of RA is the sum of the resistances of resistors RA1, RA2, and RA3.
  • the resistance of the RA is the sum of the resistances of the resistors RA2 and RA3.
  • the resistance of the RA can be controlled by the control unit 21.
  • the control unit 21 may set a second register.
  • the prompt tone control information stored in the second register may specifically be the closed state of the switches S1 and S2.
  • the control unit 21 can read the prompt sound control information stored in the second register, thereby controlling the closed state of the switches S1 and S2, thereby adjusting the resistance of the RA to control the volume of the prompt sound.
  • the C1 in Table 1 may be that both switches S1 and S2 are in an open state; if the preset scene is a scene in which a short message is received, the table is C2 in 1 may be that switch S1 is in an open state and switch S2 is in a closed state.
  • Other examples are not listed one by one.
  • FIG. 12 is an implementation manner of implementing RA as an adjustable resistor.
  • the number of resistors eg, RA1, RA2, and RA3 set in the implementation manner in which RA is an adjustable resistor is implemented.
  • the resistance value, the connection relationship between the resistors, the number of switches, and the connection relationship between the switches and the resistors are not limited.
  • the generating unit 22 can also include a phase locked loop 220.
  • the input end of the phase locked loop 220 is the input end 22B of the generating unit 22, as shown in FIG.
  • the frequency of the clock signal of the DSD audio playback circuit 20 is f0
  • the frequency of the signal obtained after the phase locked loop 220 is f
  • the frequency of the signal obtained by the second frequency divider 223 is f2 and f3.
  • f0 can be greater than f, equal to f, or less than f.
  • f2 is less than f and f3 is less than f.
  • the device can be shared between any of the plurality of second low pass filters 224.
  • the capacitor C1, the resistor R2 and the capacitor C3 constitute a second low-pass filter 224 for low-pass filtering the sub-prompted tone having the frequency f2; the capacitor C2, the resistor R3 and the capacitor C3 are formed.
  • a second low pass filter 224 is used to low pass filter the sub-beep with frequency f3.
  • a capacitor C3 is shared between the two second low pass filters 224.
  • the device may be shared between the second superimposing unit 225 and the second low pass filter 224.
  • the second superimposing unit 225 and the two second low pass filters 224 are shared.
  • the first superimposing unit 23 may include a first amplifier A2.
  • the first amplifier A2 includes a co-directional terminal, a reverse terminal, and an output terminal. The same end of the first amplifier A2 is used to receive the above analog audio signal and prompt tone. The opposite end of the first amplifier A2 is grounded via a first grounding resistor RB. The output of the first amplifier A2 is the output of the first superimposing unit 23.
  • the first amplifier A2 can amplify the superimposed signal on the basis of superimposing the above-mentioned analog audio signal and the prompt sound.
  • the first superimposing unit 23 may further include resistors R4, R5, R6, and Rf2, and the connection relationship between the resistors and the first amplifier A2 may be referred to FIG. Wherein, in FIG. 14, the input voltages of the two input ends of the first superimposing unit 23 are U1 and U2, respectively, and the output voltage is U3.
  • Rf2 is an adjustable resistor.
  • the RB can be an adjustable resistor or a non-adjustable resistor. In Fig. 14, the description is made by taking RB as an adjustable resistor as an example. If RB is an adjustable resistor, the voltage U3 of the first amplifier A2 can be controlled by adjusting the magnitude of the resistance of RB and Rf2, thereby controlling the volume of the superimposed signal, wherein the larger the voltage U3, the larger the volume of the superimposed signal. For example, referring to Fig.
  • the relationship between the input voltages U1 and U2 of the first superimposing unit 23 and the output voltage U3 can be expressed by the following formula: Since the resistance values of R4, R5, and R6 are usually fixed values, the voltage U3 of the first amplifier A2 can be controlled by adjusting the magnitudes of the resistances of RB and Rf2.
  • the implementation scheme for realizing the adjustable value of the RB can be referred to the implementation scheme of the adjustable value of the RA shown in FIG. 12, and details are not described herein again.
  • the resistance of the RB may be controlled by the control unit 21.
  • a third register may be set in the control unit 21, and the superimposed signal control information stored in the third register may be a closed state of each switch in the implementation scheme in which the resistance of the RB is adjustable.
  • the control unit 21 can read the superimposed signal control information stored in the third register, thereby controlling the closed state of the switches, thereby adjusting the resistance of the RB to adjust the volume of the control superimposed signal.
  • the digital-to-analog converter 204 and the first superimposing unit 23 may be provided with a voltage follower 206.
  • the voltage follower 206 can be implemented by the amplifier A0 as shown in FIG. 15 or FIG. 15 is plotted based on FIGS. 8 and 14.
  • FIG. 16 is drawn based on FIGS. 13 and 14.
  • a voltage follower is a type of electronic component that implements a change in the output voltage following the input voltage. That is, the voltage amplification of the voltage follower is always less than and close to one.
  • the voltage follower can buffer, isolate, and improve the load capacity.
  • control unit 21 can also set the following registers:
  • the fourth register is configured to store prompt sound control information for controlling a generation period of the prompt sound.
  • the fourth register can be understood as a counter/timer/timer or the like.
  • the prompt sound control information for controlling the generation period of the prompt sound may specifically be an initial value of a counter/timer/timer.
  • the processor 10 writes the initial value of the timing time to the timer 1 every first timing period.
  • the timer 1 starts counting from the time when the initial value is stored, and when the timing time reaches the first preset value, the control unit 21 controls the generating unit 22 to start generating the prompt sound once. In this way, the generating unit 22 can be implemented to periodically generate a prompt sound.
  • the first timing duration (that is, the time used by the timer 1 timing time from the initial value to the first preset value) is the generation period of the prompt tone. Wherein, during each generation period, when to stop the prompt tone can be determined by the information stored in the fifth register.
  • the fifth register is configured to store the prompt sound control information for controlling the single play duration of the prompt tone.
  • the fifth register can be a counter/timer/timer or the like.
  • the prompt sound control information for controlling the generation period of the prompt sound may specifically be an initial value of a counter/timer/timer.
  • the processor 10 goes to the timer 2 every time the timer 1 reaches the first preset value (the tone is started to be generated at this time, that is, the prompt tone starts to be played). Write the initial value of the timing time.
  • the timer 2 starts counting from the time when the initial value is stored, and when the timing time reaches the second preset value, the control unit 21 controls the generating unit 22 to stop generating the prompt sound, that is, to stop playing the prompt sound.
  • the second timing duration of the timer 2 ie, the time used by the timer 2 timing time from the initial value to the second preset value
  • the second timing duration is less than the first timing duration.
  • the sixth register is configured to store the prompt sound control information for controlling the total number of times of the prompt sound.
  • the sixth register can be a counter/timer/timer or the like.
  • the prompt sound control information for controlling the generation period of the prompt sound may specifically be an initial value of the counter/timer/timer.
  • the counter starts counting when the initial value is stored, and each time the generating unit 22 generates a prompt tone, the counter value of the counter is increased by a preset step size, when the counter value reaches the third preset value.
  • the control unit 21 controls the generation unit 22 to stop generating the prompt sound.
  • the preset step size can be greater than zero.
  • the number of times the counter is counted is the number of times the tone is played, that is, the number of times the counter's count value is increased from the initial value to the third predetermined value.
  • the processor 10 determines that there is a prompt playing requirement, that is, when determining the current scene, first determine the second control corresponding to the current scene by looking up the table, for example, looking up Table 1 and Table 2 (of course, also looking up Table 1). Information, then corresponding second control information is written to the corresponding register of the control unit 21 of the DSD audio playback circuit via the second interface 202. At this time, each of the registers, the second frequency divider 223, and the other devices in the sound output circuit 205 enter an active state.
  • the fourth register may be the above timer 1
  • the fifth register may be the above timer 2
  • the sixth register may be a counter.
  • the table 1 determines that the prompt sound control information corresponding to the current scene is the prompt sound control information B1, C1, D1, and E1.
  • F1 by looking up the table 2, determining that the superimposed signal control information corresponding to the current scene is the superimposed signal control information G1, and then writing the prompt sound control information B1 to the first register, and writing the prompt sound control information C1 to the second register.
  • the tone control information D1 is written to the fourth register
  • the tone control information E1 is written to the fifth register
  • the tone control information F1 is written to the sixth register
  • the superimposed signal control information G1 is written to the third register.
  • the tone control information B1 may be the frequency factors f2/f and f3/f.
  • the tone control information C1 may be the closed state of the switches S1 and S2 in FIG.
  • the tone control information D1 may be an initial value of the timer time of the timer 1 as the fourth register.
  • the tone control information E1 may be an initial value of the timer time of the timer 2 as the fifth register.
  • the tone control information F1 may be an initial value of the count value of the timer as the sixth register.
  • the superimposed signal control information G1 may be a closed state of each of the switches for adjusting the blocking of the RB.
  • the processor 10 writes the initial value of the timer 1 time to the timer 1 every first timing duration, and the timer 1 as the fourth register reaches the first pre-time from the initial value each time.
  • the control unit 21 outputs a signal to the control terminal of the second frequency divider 223 such that the state of the enable signal EN of the second frequency divider 223 is once changed, so that the second frequency divider 223 can be made to have a period.
  • the tone is generated sexually.
  • the control unit 21 each time the second frequency divider 223 is enabled, the count value stored in the sixth register is decremented by 1.
  • the control unit 21 no longer controls the second.
  • the state of the enable signal EN of the frequency divider 223 is changed, that is, the second frequency divider 223 is controlled to stop generating the prompt tone.
  • the control unit 21, the second frequency divider 223, and other devices in the tone output circuit 205 enter a sleep state.
  • the processor 10 writes the initial value of the timer time of the timer 2 to the fifth register every time the timing of the timer 1 as the fourth register reaches the first preset value, so that the second can be realized.
  • the frequency divider 223 is enabled once, the initial value of the timer time of the timer 2 as the fifth register is set, the playback tone is started, and the timer 2 stops the playback every time the second preset value is reached. Prompt tone.
  • FIG. 17 is a schematic flowchart diagram of a DSD audio playing method according to an embodiment of the present invention.
  • the method can be applied to any of the terminal devices provided above.
  • the method can include the following steps:
  • the terminal device converts the DSD audio signal into an analog audio signal. Specifically, the terminal device may convert the DSD audio signal to be played into an analog audio signal and play the analog audio signal upon receiving the trigger of the user.
  • the terminal device converts the DSD audio signal into an analog audio signal.
  • the analog audio signal can be played through the headphones connected to the terminal device.
  • the analog audio signal played by the terminal device can last for a while.
  • the terminal device may execute S1702 if it is determined that the current scene is a scene with a prompt sound playing requirement.
  • the terminal device generates a prompt tone according to the current scene. Specifically, the terminal device may determine the prompt sound control information corresponding to the current scene according to the corresponding relationship between the preset scene and the preset scene, and generate a prompt sound according to the prompt sound control information corresponding to the current scene.
  • the preset scene is at least one of a scene in which a call is received by a telephone, a WeChat message is received, a QQ message is received, and a power is insufficient.
  • the current scene is one of preset scenes.
  • the prompt sound control information includes at least one of a frequency, a volume, a generation period, a single play duration, and a total play count of the prompt sound.
  • the terminal device superimposes the analog audio signal and the prompt tone. Specifically, the terminal device may determine the superposition signal control information corresponding to the current scene according to the correspondence between the preset scene and the superimposed signal control information corresponding to the preset scene, when determining that the current scene is a scene with a prompt playing requirement, and The analog audio signal and the prompt tone are superimposed according to the superimposed signal control information corresponding to the current scene.
  • the terminal device plays the superimposed analog audio signal and the prompt tone through the earphone connected to the earphone interface. Specifically, the terminal device simultaneously plays an analog audio signal and a prompt sound through the earphone connected to the earphone interface.
  • FIG. 18 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device is for performing the method shown in FIG.
  • the terminal device may include: a digital to analog conversion module 1801, a generation module 1802, a superposition module 1803, and a headphone interface 1804.
  • the digital-to-analog conversion module 1801 is configured to convert the DSD audio signal into an analog audio signal.
  • the generating module 1802 is configured to generate a prompt sound according to the current scene.
  • the overlay module 1803 is configured to superimpose an analog audio signal and a prompt tone.
  • the earphone interface 1804 is configured to connect the earphones, and send the superimposed analog audio signals and prompt sounds to the earphones, so that the terminal device plays the superimposed analog audio signals and prompt sounds through the earphones.
  • a digital to analog conversion module 1801 can be used to execute S1701.
  • the generating module 1802 can be configured to execute S1702.
  • the overlay module 1803 can be used to execute S1703.
  • the digital to analog conversion module 1801 may correspond to the digital to analog converter 204 above.
  • the generation module 1802 can correspond to the generation unit 22 above.
  • the overlay module 1803 may correspond to the first overlay unit 23 in the above.
  • the headphone jack 1803 can correspond to the headphone jack 30 above.
  • connection in the foregoing embodiment may be a direct connection, an indirect connection, a coupling connection, and/or an electrical connection.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种终端设备、DSD音频播放电路和方法,涉及电子技术领域,可以实现在播放DSD格式的音频信号的同时,输出提示音。该终端设备可以包括:处理器、DSD音频播放电路和耳机接口,处理器与DSD音频播放电路连接,DSD音频播放电路与耳机接口连接,其中,处理器,响应于用户的触发,输出DSD音频信号给DSD音频播放电路;DSD音频播放电路,用于:对DSD音频信号进行处理,根据当前场景生成提示音,以及将处理后的DSD音频信号和提示音叠加;耳机接口,用于连接耳机,通过耳机播放叠加后的音频信号和提示音。

Description

一种终端设备、DSD音频播放电路和方法 技术领域
本发明实施例涉及电子技术领域,尤其涉及一种终端设备、直接比特流数字编码(direct stream digital,DSD)音频播放电路和方法。
背景技术
DSD是一种超高音质的高清数字音频格式。利用手机等终端设备播放DSD音频信号(即DSD格式的音频信号)时,通常需要在终端设备中设置支持DSD解码的Delta-Sigma数模转换器(digital to analog converter,DAC)芯片。其中,DSD解码,是指将DSD音频信号转换成模拟音频信号。
如图1所示,是一种终端设备的结构示意图,该终端设备可以用于播放DSD音频信号。参见图1,终端设备可以包括:处理器、DAC芯片以及耳机接口等。其中,处理器是终端设备的控制器,DAC芯片支持DSD解码。处理器与DAC芯片之间通过I2C(inter integrated circuit)总线和集成电路之间的音频总线(inter-IC sound,I2S)连接。处理器通过I2C总线读取和控制DAC芯片的工作状态。终端设备播放DSD音频信号时,处理器基于DoP(DSD over PCM)协议,通过I2S将DSD音频信号输出给DAC芯片,其中,PCM是脉冲编码调制(pulse code modulation)的英文缩写。DAC芯片将DSD音频信号转换成模拟音频信号,并将该模拟音频信号输出给耳机接口。耳机接口用于连接耳机,终端设备通过耳机播放模拟音频信号。
参见图1,终端设备在播放DSD音频信号时,由于I2S被DSD音频信号占用,因此处理器无法再传输其他音频信号给DAC芯片。这可能会造成用户因听不到其他音频信号而错过一些信息,例如来电等。
发明内容
本发明实施例提供了一种终端设备、DSD音频播放电路和方法,有助于实现在播放DSD音频信号的同时,输出提示音。
第一方面,提供了一种终端设备。该终端设备可以包括处理器、DSD音频播放电路和耳机接口,处理器与DSD音频播放电路连接,DSD音频播放电路与耳机接口连接。其中,处理器响应于用户的触发,输出DSD音频信号给DSD音频播放电路。DSD音频播放电路用于:对DSD音频信号进行处理;根据当前场景生成提示音;将处理后的DSD音频信号和提示音叠加。耳机接口用于连接耳机,通过耳机播放叠加后的音频信号和提示音。其中,处理器可以是应用处理器,当然不限于此。DSD音频播放电路可以是支持DSD解码的芯片,例如DAC芯片等。该技术方案中,终端设备通过DSD音频播放电路叠加提示音和处理后的DSD音频信号,并通过耳机播放叠加后得到的信号,实现了播放DSD音频信号的同时,输出提示音。其中,当前场景是指当前具有播放提示音需求的场景。
在一种可能的设计中,处理器还可以用于确定与当前场景对应的提示音控制信息。其中,当前场景是指具有提示音播放需求的场景,例如当前场景包括有电话呼入、收到短信、 收到微信消息、收到QQ消息和电量不足中的至少一种场景。可选的,提示音控制信息可以包括提示音的频率、音量、生成周期、单次播放时长和总播放次数中的至少一种。
在一种可能的设计中,DSD音频播放电路,可以用于根据与当前场景对应的提示音控制信息,生成提示音。该可能的设计中,DSD音频播放电路可以在处理器的控制下生成提示音。当然本申请不限于此,具体可参考下文具体实施部分。
在一种可能的设计中,DSD音频播放电路包括数模转换器和提示音输出电路。数模转换器用于对DSD音频信号进行数模转换,得到模拟音频信号。提示音输出电路包括控制单元、生成单元和叠加单元,其中,生成单元在控制单元的控制下,根据基准信号和当前场景对应的提示音控制信息生成提示音;叠加单元,用于叠加模拟音频信号和提示音。该可能的设计提供了DSD音频播放电路的一种具体实现方式,当然本申请不限于此。
在一种可能的设计中,处理器,还用于确定与当前场景对应的提示音控制信息,具体可以为:处理器,还用于根据预设场景与提示音控制信息的对应关系,确定与当前场景对应的提示音控制信息。可选的,预设场景包括有电话呼入、收到短信、收到微信消息、收到QQ消息和电量不足中的至少一种场景。当前场景是预设场景中的其中一种。可选的,预设场景与提示音控制信息存储在非易失性存储器。该可能的设计中,可以针对不同预设场景设置不同的提示音控制信息,从而有助于使用户根据提示音识别当前场景。
第二方面,提供了一种终端设备。该终端设备可以包括:处理器、DSD音频播放电路和耳机接口,处理器与DSD音频播放电路连接,DSD音频播放电路与耳机接口连接。其中:处理器用于:响应于用户的触发,输出DSD音频信号给DSD音频播放电路;确定与当前场景对应的提示音控制信息。DSD音频播放电路用于:对DSD音频信号进行处理;根据与当前场景对应的提示音控制信息,生成提示音;将处理后的DSD音频信号和提示音叠加。耳机接口用于连接耳机,通过耳机播放叠加后的音频信号和提示音。例如,该处理器可以是应用处理器。DSD音频播放电路可以是支持DSD解码的芯片,例如DAC芯片等。
在一种可能的设计中,DSD音频播放电路包括数模转换器和提示音输出电路,数模转换器用于对DSD音频信号进行数模转换,得到模拟音频信号。提示音输出电路包括控制单元、生成单元和叠加单元。其中,生成单元在控制单元的控制下,根据基准信号和当前场景对应的提示音控制信息生成提示音。叠加单元,用于叠加模拟音频信号和提示音。
在一种可能的设计中,处理器,用于确定与当前场景对应的提示音控制信息,具体可以为:处理器,用于根据预设场景与提示音控制信息的对应关系,确定与当前场景对应的提示音控制信息。
第三方面,提供了一种DSD音频播放电路。该DSD音频播放电路可以包括:数模转换器和提示音输出电路,数模转换器与提示音输出电路连接。其中:数模转换器,用于对DSD音频信号进行数模转换,得到模拟音频信号。提示音输出电路,用于根据当前场景生成提示音,并将模拟音频信号和提示音叠加。叠加后的模拟音频信号和提示音通过与耳机接口连接的耳机播放。
在一种可能的设计中,提示音输出电路,具体用于根据与当前场景对应的提示音控制信息,生成提示音。
在一种可能的设计中,提示音输出电路可以包括:控制单元、生成单元和叠加单元。其中,生成单元在控制单元的控制下,根据基准信号和当前场景对应的提示音控制信息生 成提示音;叠加单元,用于叠加模拟音频信号和提示音。
第四方面,提供了一种DSD音频播放方法。该方法可以包括:将DSD音频信号转换为模拟音频信号;根据当前场景生成提示音;叠加模拟音频信号和提示音;通过与耳机接口连接的耳机播放叠加后的模拟音频信号和提示音。
在一种可能的设计中,该方法还可以包括:确定与当前场景对应的提示音控制信息。该情况下,根据当前场景生成提示音,可以包括:根据与当前场景对应的提示音控制信息,生成提示音。
在一种可能的设计中,确定与当前场景对应的提示音控制信息,可以包括:根据预设场景与提示音控制信息的对应关系,确定与当前场景对应的提示音控制信息。
上述第二至第四方面中的任一方面中相关内容的解释,例如预设场景、当前场景、提示音控制信息等均可以参考上述第一方面,此处不再赘述。
在可能的设计中,本发明实施例还提供了一种终端设备。该终端设备可以包括存储器和处理器。存储器用于存储计算机程序,计算机程序被处理器执行时,使得第四方面提供的任一方法被执行。
在可能的设计中,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序在计算机上运行时,使得第四方面提供的任一方法被执行。
在可能的设计中,本发明实施例还提供了一种计算机程序产品,当其在计算机上运行时,使得第四方面提供的任一方法被执行。
上述可能的设计中,当前场景是属于预设场景中的一种场景。
可以理解的,上述提供的任一种DSD音频播放电路、DSD音频播放方法、计算机可读存储介质或计算机程序产品等的有益效果均可以参考上述提供的终端设备中描述的有益效果,此处不再赘述。
附图说明
图1是现有技术提供的一种终端设备的结构示意图;
图2是发明实施例提供的一种终端设备的结构示意图一;
图3是本发明实施例提供的一种提示音的生成周期、单次播放时长与总播放次数之间的关系示意图;
图4是本发明实施例提供的一种终端设备的结构示意图二;
图5是本发明实施例提供的一种终端设备的结构示意图三;
图6是本发明实施例提供的一种终端设备的结构示意图四;
图7是本发明实施例提供的一种生成单元的结构示意图一;
图8是本发明实施例提供的一种终端设备的结构示意图五;
图9是本发明实施例提供的一种生成单元的结构示意图二;
图10是本发明实施例提供的一种生成单元的结构示意图三;
图11是本发明实施例提供的一种第一叠加单元的结构示意图;
图12是本发明实施例提供的一种可调电阻RA的结构示意图;
图13是本发明实施例提供的一种终端设备的结构示意图六;
图14是本发明实施例提供的一种第二叠加单元的结构示意图;
图15是本发明实施例提供的一种终端设备的结构示意图七;
图16是本发明实施例提供的一种终端设备的结构示意图八;
图17是本发明实施例提供的一种DSD音频播放方法的流程示意图;
图18是本发明实施例提供的一种终端设备的结构示意图九。
具体实施方式
本申请实施例中的“和/或”,仅仅用于描述关联对象的关联关系,表示关联对象之间可以存在三种关系,例如,A和/或B表示:单独存在A,同时存在A和B,单独存在B。符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。“第一”、“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。“多个”是指两个或两个以上。
需要说明的是,由于本发明实施例中提供的DSD音频播放电路包含在终端设备中,因此关于DSD音频播放电路的实施例的描述,均包含在关于终端设备的实施例的描述中,下文不再对DSD音频播放电路的实施例进行单独描述。
如图2所示,是本发明实施例提供的一种终端设备的结构示意图。终端设备可以是手机、平板电脑、可穿戴设备、智能眼镜等。终端设备可以包括:处理器10、DSD音频播放电路20以及耳机接口30。其中,处理器10与DSD音频播放电路20连接,DSD音频播放电路20与耳机接口30连接。处理器10可以是应用处理器(application processor,AP),当然也可以是其他处理器,本发明实施例对此不进行限定。DSD音频播放电路20可以是支持DSD解码的芯片,例如DAC芯片等。
处理器10,响应于用户的触发,输出DSD音频信号给DSD音频播放电路20。例如,处理器10在确定用户触发播放DSD格式的音频文件时,响应于用户的触发,输出DSD音频信号给DSD音频播放电路20。
DSD音频播放电路20,用于对DSD音频信号进行处理,并根据当前场景生成提示音;以及,将提示音和处理后的DSD音频信号叠加。
耳机接口30,用于连接耳机,通过耳机播放叠加后的音频信号和提示音。
其中,当前场景是指当前具有播放提示音需求的场景。当前场景可以为有电话呼入、收到短信、收到微信消息、收到QQ消息、或电量不足等场景中的至少一种。
可以理解的,在处理器识别出当前场景为需要播放提示音的场景,DSD音频播放电路根据当前场景生成预设的提示音。其中,具有播放提示音的场景可以为多个,例如有电话呼入、收到短信、收到微信消息和电量不足等场景,这些场景对应的提示音可以为一个,即提示音都相同。当然,这些场景也可以分别对应不同的提示音,即一个场景对应一个提示音。这些场景中的多个场景也可以对应一个提示音,例如有电话呼入、收到短信、收到微信消息对应的提示音为一个提示音,电量不足对应的提示音为另一个提示音。
提示音可以是具有某一频率的单频提示音,例如提示音的频率是f1。另外,提示音也可以是具有不同频率的多个子提示音叠加得到的多频提示音。例如可以是由具有频率f2和频率f3的两个子提示音叠加得到的双频提示音,当然也可以是三频提示音(具有频率f4、频率f5和频率f6的三个子提示音叠加得到的三频提示音)。其中,单频提示音的频率的取值范围和任一子提示音的频率的取值范围均可以是20Hz~20000Hz。另外,DSD音频信号的频率通常是在一个频率范围(即频带)内变化,例如,该频率范围可以是20Hz~20000Hz。
将提示音和处理后的DSD音频信号叠加,可以理解为:对提示音和处理后的DSD音频 信号进行时域求和。例如,假设DSD音频信号的频率范围是20Hz~20000Hz,提示音是单频提示音,且频率是200Hz,则播放叠加后的音频信号和提示音,可以是:同时播放频率范围是20Hz~20000Hz的音频信号和频率是200Hz的提示音。
本实施例中,终端设备通过对DSD音频信号进行处理,并根据当前场景生成提示音;然后将提示音和处理后的DSD音频信号叠加,并通过耳机播放叠加后得到的信号,实现在播放DSD格式的音频信号的同时,输出提示音。由于提示音通常是一个固定频率的音频信号,或者几个固定频率的音频信号叠加后得到音频信号,而DSD音频信号的频率通常是在一个频率范围(即频带)内变化的。即使提示音的频率与DSD音频信号的某一时刻的频率相同,下一时刻DSD音频信号的频率通常会与提示音的频率不同。因此,提示音与DSD音频信号叠加并输出给耳机之后,用户可以在听到DSD音频信号的同时,识别出提示音。
在本申请的一些实施例中,DSD音频播放电路20可以根据当前场景对应的提示音控制信息,生成提示音。其中,提示音控制信息,是指用于控制提示音的参数的信息。提示音的参数可以包括但不限于是提示音的频率、生成周期、音量、生成周期、单次播放时长和总播放次数等,提示音控制信息可以是提示音的频率、生成周期、音量、生成周期、单次播放时长和总播放次数中的一种。提示音控制信息也可以是提示音的频率、生成周期、音量、生成周期、单次播放时长和总播放次数中的多种,例如两种或三种。生成周期是指相邻两次生成提示音的时间间隔。单次播放时长是指在一个生成周期中的播放时长。生成周期、单次播放时长以及总播放次数之间的关系如图3所示。在图3中,提示音的生成周期是1s,单次播放时长是0.5s,总播放次数是6次。关于提示音控制信息的具体内容的示例可参考下文。
不同的具有播放提示音需求的场景中,提示音控制信息可以相同,也可以不相同。基于此,在一种实现方式中,可以预先在终端设备的非易失性存储器中存储预设场景与提示音控制信息的对应关系。该情况下,处理器10可以在确定当前场景时,根据预设场景与提示音控制信息的对应关系,确定与当前场景对应的提示音控制信息,并向DSD音频播放电路20提供当前场景对应的提示音控制信息。DSD音频播放电路20可以在接收到当前场景对应的提示音控制信息之后,根据当前场景对应的提示音控制信息生成提示音。
其中,预设场景是指预设的具有播放提示音需求的场景,该场景可以包括但不限于是:有电话呼入、收到短信、收到微信消息、收到QQ消息、或电量不足等场景。具有播放提示音需求的场景可以是有电话呼入、收到短信、收到微信消息、收到QQ消息、或电量不足中的至少一种场景。任意两个预设场景对应的提示音控制信息可以相同,也可以不同。当前场景可以是其中一种预设场景。其中,关于处理器10如何确定当前场景,例如处理器10如何确定终端设备有电话呼入、或者收到短信等的过程在现有技术中已有详细描述,本文对此不再赘述。
示例的,预设场景与提示音控制信息的对应关系可以如表1所示。
表1
Figure PCTCN2018072292-appb-000001
参见表1,以预设场景是有电话呼入的场景为例,该预设场景对应的提示音控制信息可以是:B1、C1、D1、E1、F1中的至少一个。其他示例不再一一列举。
若不同的具有播放提示音需求的场景中,提示音控制信息均相同,在另一种实现方式中,可以预先在终端设备的非易失性存储器中存储提示音控制信息。处理器10可以在确定当前场景,向DSD音频播放电路20发送用于指示开始执行生成提示音的流程的控制信息。本发明实施例对该控制信息的具体内容不进行限定。DSD音频播放电路20可以在接收到该控制信息后,获取所存储的提示音控制信息,并根据提示音控制信息生成提示音。
在本申请的一些实施例中,DSD音频播放电路20可以根据当前场景对应的叠加信号控制信息,将提示音和处理后的DSD音频信号叠加。其中,叠加信号控制信息,是指用于控制叠加信号的参数的信息。叠加信号的参数可以包括但不限于是叠加信号的音量等。关于叠加信号控制信息的具体内容的示例可参考下文。
不同的具有播放提示音需求的场景中,叠加信号控制信息可以相同也可以不同。基于此,在一种实现方式中,可以预先在终端设备的非易失性存储器中存储预设场景与叠加信号控制信息的对应关系。该情况下,处理器10可以在确定当前场景时,根据预设场景与叠加信号控制信息的对应关系,确定与当前场景对应的叠加信号控制信息,并向DSD音频播放电路20输入当前场景对应的叠加信号控制信息。DSD音频播放电路20可以在接收到当前场景对应的叠加信号控制信息之后,将提示音和处理后的DSD音频信号叠加。其中,任意两个预设场景对应的叠加信号控制信息提示音控制信息可以相同,也可以不同。
示例的,预设场景与叠加信号控制信息的对应关系可以如表2所示。
表2
Figure PCTCN2018072292-appb-000002
参见表2,以预设场景是有电话呼入的场景为例,该预设场景对应的叠加信号控制信息可以是G1。其他示例不再一一列举。
若不同的具有播放提示音需求的场景中,叠加信号控制信息均相同,则在另一种实现方式中,可以预先在终端设备的非易失性存储器中存储该叠加信号控制信息。处理器10可 以在确定当前场景时,向DSD音频播放电路20发送用于指示开始执行生成提示音的流程的控制信息。DSD音频播放电路20可以在接收到该控制信息之后,获取所存储的叠加信号控制信息,并根据该叠加信号控制信息,将提示音和处理后的DSD音频信号叠加。
以下,对DSD音频播放电路20的具体实现进行说明。其中,具体是以处理器10向DSD音频播放电路20输入提示音控制信息,可选的,处理器10还向DSD音频播放电路20输入叠加信号控制信息为例进行说明。
如图4所示,DSD音频播放电路20可以包括:第一接口201、第二接口202、时钟输入接口203、数模转换器204,以及提示音输出电路205等。
其中,处理器10与第一接口201、第二接口202和时钟输入接口203均连接。作为一个示例,DSD音频播放电路20可以是DAC芯片,第一接口201可以是DSD输入接口,第二接口202可以是I2C接口。该情况下,处理器10与第一接口201连接,具体可以是:处理器10与DSD输入接口之间通过I2S连接,或者通过专用的DSD管脚连接等。处理器10与第二接口202连接,具体可以是:处理器10与I2C接口之间通过I2C总线连接等。
数模转换器204可以与第一接口201、第二接口202、时钟输入接口203,以及提示音输出电路205均连接。具体的连接关系可参考图4。其中:
处理器10可以通过第一接口201向数模转换器204输入DSD音频信号。例如,处理器10在确定用户触发播放DSD格式的音频文件时,响应于用户的触发,通过第一接口201向数模转换器204输入需要播放的DSD音频信号。
处理器10可以通过第二接口202向数模转换器204输入第一控制信息。其中,第一控制信息用于对数模转换器204进行控制,例如,第一控制信息用于控制数模转换器204的开关,从而控制数模转换器204在何时开始工作,何时停止工作。又如,第一控制信息可以用于控制数模转换器204的数模转换速率、数模转换精度等。
处理器10可以通过时钟输入接口203向DSD音频播放电路20提供时钟信号。其中,时钟信号通常是周期性的方波信号,用于为DSD音频播放电路20中的部分或全部数字电路器件(例如寄存器等)提供时钟,从而支持数字电路器件基于该时钟信号进行工作。该时钟信号可以作为数模转换器204中的数字电路器件的时钟信号。当然,也可以作为DSD音频播放电路20中的其他模块/单元/器件(图4中未示出)的时钟信号。
数模转换器204可以用于在经第二接口202输入的第一控制信息的控制下,对经第一接口201输入的DSD音频信号进行数模转换,得到模拟音频信号,并将模拟音频信号输出给提示音输出电路205。
提示音输出电路205可以与第二接口202、数模转换器204和耳机接口30均连接。具体的连接关系可参考图4。其中:
处理器10可以通过第二接口202向提示音输出电路205输入第二控制信息。其中,第二控制信息包括提示音控制信息。可选的,第二控制信息还可以包括叠加信号控制信息。
可以理解的,提示音输出电路205还可以通过DSD音频播放电路20中设置的除第二接口202之外的一个接口(例如I2C接口)连接,从而实现处理器10向提示音输出电路205输入第二控制信息。
提示音输出电路205可以根据基准信号和当前场景对应的提示音控制信息生成提示音,并根据当前场景对应的叠加信号控制信息,将提示音和模拟音频信号叠加。然后将叠加后 得到的信号输出给耳机接口30。
其中,基准信号可以是周期性信号,例如周期性方波信号、周期性锯齿信号等。可选的,基准信号的频率的取值范围可以是20Hz~20000Hz。可选的,基准信号可以是DSD音频播放电路20的时钟信号,该情况下,提示音输出电路205还可以与时钟输入接口203连接。这样,不需要为DSD音频播放电路20提供专用的基准信号即可生成提示音,实现简单。另外,基准信号也可以是专用的基准信号。此外,基准信号也可以是处理器10通过DSD音频播放电路20中设置的除时钟输入接口203之外的一个接口向提示音输出电路205输入的基准信号,还可以是终端设备中设置的另一个处理器10向提示音输出电路205输入的基准信号。下文中均是以基准信号是DSD音频播放电路20的时钟信号为例进行说明的。
以下,对提示音输出电路205的具体实现进行说明。
如图5所示,提示音输出电路205可以包括控制单元21、生成单元22和第一叠加单元23。
控制单元21可以包括输入端21A和输出端21B。控制单元21的输入端21A与第二接口202连接,用于接收处理器10输出的第二控制信息,其中,第二控制信息包括提示音控制信息。第二控制信息还可以包括叠加信号控制信息。
生成单元22包括控制端22A、输入端22B和输出端22C。生成单元22的控制端22A与控制单元21的输出端21B连接,可以用于接收控制单元21经输出端21A输出的第二控制信息。生成单元22的输入端22B用于接收基准信号,例如生成单元22的输入端22B可以与时钟输入接口203连接,用于接收处理器10输出的时钟信号。生成单元22,用于在提示音控制信息的控制下基于基准信号生成提示音。
第一叠加单元23包括第一输入端23A、第二输入端23B和输出端23C。第一输入端23A与数模转换器204连接,用于接收数模转换器204输出的模拟音频信号,第二输入端23B与生成单元22的输出端22C连接,用于接收生成单元22经输出端23输出的提示音。第一叠加单元23,用于叠加模拟音频信号和提示音。第一叠加单元23的输出端13C与耳机接口30连接,用于向耳机接口30输出叠加后得到的信号。为了便于描述,下文中将第一叠加单元23叠加后得到的信号称为叠加信号。
可选的,第一叠加单元23还可以包括控制端(图5中未示出)。该控制端用于接收控制单元经输出端21B输出的叠加信号控制信息。该情况下,第一叠加单元23具体可以用于根据叠加信号控制信息,叠加模拟音频信号和提示音。
可以理解的,控制单元21可以通过一个输出端21B将提示音控制信息输出给生成单元21,并通过另一个输出端21B将叠加信号控制信息输出给第一叠加单元23;也可以通过同一个输出端21B将提示音控制信息输出给生成单元21,将叠加信号控制信息输出给第一叠加单元23。本申请对此不进行限定。
需要说明的是,终端设备输出给耳机的音频信号包括左声道音频信号和右声道音频信号。其中,第一叠加单元23生成的叠加信号可以是左声道音频信号和右声道音频信号中的其中之一,图5中标记为L/R。
若终端设备同时向耳机输出左声道音频信号和右声道音频信号,则DSD音频播放电路20可以包括两个提示音输出电路205,并且,这两个提示音输出电路205可以分别设置独立的控制单元21,也可以共用同一控制单元21;可以分别设置独立的生成单元22和第一叠加单元23。如图6所示,是本发明实施例提供的一种终端设备的结构示意图。在图6中,DSD 音频播放电路20包括两个提示音输出电路205,且这两个提示音输出电路205分别设置独立的控制单元21、生成单元22和第一叠加单元23。在图6中,这两个提示音输出电路205分别标记为提示音输出电路205(L)和提示音输出电路205(R),相应的,将这两个提示音输出电路205相关的模拟音频信号、提示音、第二控制信息等也分别增加了(L)或(R)的标记,具体可参见图6。其中,提示音输出电路205(L)向耳机输出左声道音频信号,提示音输出电路205(R)向耳机输出右声道音频信号。第二控制信息(L)和第二控制信息(R)可以相同也可以不同,相应的,提示音(L)和提示音(R)可以相同也可以不同。
为了方便描述,下文中均是以终端设备向耳机输出左声道音频信号和右声道音频信号的其中之一为例进行说明的,即基于图5所示的DSD音频播放电路20为例进行说明。
以下,说明控制单元21、生成单元22和第一叠加单元23的具体实现。
控制单元21可以设置一个或多个寄存器。每个寄存器可以存放一种或多种类型的提示音控制信息和/或一种或多种类型的叠加信号控制信息。其中,每种类型的提示音控制信息用于控制提示音的一种参数,该参数可以是表1中所示的任一种参数。每种类型的叠加信号提示音用于控制叠加信号的一种参数,该参数可以是表2中所示的任一种参数。处理器10可以在确定当前场景对应的提示音控制信息之后,向相应寄存器中写入对应的提示音控制信息。控制单元21可以读取相应寄存器中存放的提示音控制信息,从而控制提示音的相应参数,该相应参数可以是表1中所示的提示音的参数。例如,假设多个寄存器包括第一寄存器和第二寄存器,第一寄存器用于存储控制提示音的频率的提示音控制信息,第二寄存器用于存储控制提示音的音量的提示音控制信息,则结合表1,当处理器10确定预设场景是有电话呼入的场景时,处理器10可以将B1写入第一寄存器,将C1写入第二寄存器,控制单元21可以读取第一寄存器中存储的B1,从而控制提示音的频率,读取第二寄存器中存储的C1,从而控制提示音的音量。另外,处理器10可以在确定当前场景对应的叠加信号控制信息之后,向相应寄存器中写入对应的叠加信号控制信息。控制单元21可以读取该寄存器中存放的叠加信号控制信息来控制叠加信号的相应参数,从而控制第一叠加单元23将提示音和模拟音频信号叠加,该相应参数可以是表2中所示的叠加信号的参数。
以下,说明生成单元22的具体实现,并在此过程中说明用于控制提示音的频率和音量的提示音控制信息的具体实现方式。
在一些实施例中,如图7所示,生成单元22可以包括第一分频器221。第一分频器221可以包括控制端、输入端和输出端。第一分频器221的控制端为生成单元22的控制端22A,第一分频器221的输入端为生成单元22的输入端22B,第一分频器221的输出端为生成单元22的输出端22C。第一分频器221用于对模拟音频信号进行分频处理,生成具有某一频率的提示音。其中,这里的某一频率可以为20Hz~20000Hz中的任一频率。
本实施例中,提示音可以是单频提示音,使用单频提示音可以使提示音输出电路205实现简单。假设提示音的频率是f1,那么,本实施例中,控制单元21向第一分频器221的控制端输出的提示音控制信息具体可以是:用于控制第一分频器221生成具有频率f1的信号的信息,例如可以是第一分频器221生成具有频率f1的信号时使用的分频因子。若第一分频器221的输入信号的频率是f,则该分频因子可以是f1/f。
在一种实现方式中,第一分频器221的输入信号的频率f可以是基准信号的频率。该情况下,若基准信号是DSD音频播放电路20的时钟信号,则应用于如图4所示的终端设备中 时,第一分频器221的输入端可以与时钟输入接口203连接。
在另一种实现方式中,第一分频器221的输入信号的频率可以是对基准信号的频率进行处理后得到的信号。如图8所示,生成单元22还可以包括锁相环(phase locked loop)220。基准信号经锁相环220后输入第一分频器221。该情况下,锁相环220的输入端为生成单元22的输入端22B。例如,若基准信号是DSD音频播放电路20的时钟信号,则应用于如图4所示的终端设备中时,锁相环220可以位于时钟输入接口203与第一分频器221之间,时钟输入接口203连接锁相环220的输入端,锁相环220的输出端连接第一分频器221的输入端。锁相环220用于锁定时钟信号的相位,并使得输出的信号的频率可以大于、等于、或小于时钟信号的频率,从而使得经第一分频器221分频后得到的提示音的频率可以大于、等于、或小于时钟信号的频率。图8中是以DSD音频播放电路20的时钟信号的频率是f0,经锁相环220后得到的信号的频率是f,经第一分频器221后得到的信号的频率是f1为例进行说明的。其中,f0可以大于f、等于f、或小于f。通常,f1小于f。
如图8所示,生成单元22还可以包括第一低通滤波器222。第一低通滤波器222可以设置在第一分频器221与第一叠加单元23之间,用于衰减提示音中的高次谐波。这样能够尽量避免提示音过于尖锐刺耳。第一低通滤波器222可以由电阻和电容构成。通过调节电容的容值,可以改变低通滤波的截止频率,从而对提示音中的高次谐波进行不同程度的衰减。
在另一些实施例中,如图9所示,生成单元22可以包括第二分频器223和第二叠加单元225。
第二分频器223可以包括控制端、输入端和m个输出端;m是大于等于2的整数;第二分频器223的控制端为生成单元22的控制端22A,第二分频器223的输入端为生成单元22的输入端22B。第二分频器223用于在提示音控制信息的控制下生成m个子提示音,不同子提示音的频率不同。第二分频器223的每一输出端用于输出一个子提示音。图9中是以m=2为例进行说明的。
第二叠加单元225包括输出端和m个输入端,第二叠加单元225的输出端为生成单元22的输出端22C,第二叠加单元225的每一输入端与第二分频器223的一个输出端连接。第二叠加单元225,用于将第二分频器223输出的m个子提示音叠加生成提示音。
本实施例中,提示音可以是多频提示音。该实施例中,提示音是由具有不同频率的子提示音叠加而成的。这样,一方面,由于每一子提示音可以由第二分频器223直接产生,因此不会导致电路过于复杂。另一方面,可以通过设置子提示音的频率,使得不同子提示音之间的频率差异较大,例如,当m=2时,可设置一个子提示音的频率是f2,另一个子提示音是的频率是f3,其中,f2和f3的频率差异较大。这有助于减少提示音被DSD音频信号转换后的模拟音频信号掩蔽的可能,从而使得用户在用耳机听基于DSD音频信号的音频信号时,能够听到提示音的概率较大。
假设提示音是双频提示音即m=2,一个子提示音的频率是f2,另一个子提示音的频率是f3,那么,本实施例中,控制单元21向第二分频器223的控制端输入的提示音控制信息具体可以是:用于控制第二分频器223生成具有频率f2和f3的信号的信息。例如可以是第二分频器223生成频率f2和f3的子提示音时使用的分频因子。例如,假设第二分频器223的输入信号的频率是f,则生成频率f2的子提示音时使用的分频因子是f2/f,生成频率f3的子提示音时使用的分频因子是f3/f。
假设提示音是双频提示音即m=2,一个子提示音的频率是f2,另一个子提示音的频率是f3,那么,不同预设场景对应的f2和f3之间的对应关系可以如表3所示:
表3
预设场景 频率f2(单位Hz) 频率f3(单位Hz)
有电话呼入的场景 1000 3000
收到短信的场景 800 3500
收到微信消息的场景 600 3800
收到QQ消息的场景 500 4000
电量不足的场景 400 4200
基于表3,若第二分频器223的输入信号的频率是f,则可以得到表3中的各预设场景下,第二分频器223生成频率f2的子提示音时使用的分频因子f2/f的值,以及生成频率f3的子提示音时使用的分频因子f3/f的值。结合表1,即可得到表1中的B1、B2、B3、B4、B5。例如,有电话呼入的场景下的B1具体可以是:1000/f和3000/f。又如,收到短信的场景下的B2具体可以是:800/f和3500/f。
可选的,第二分频器223与第二叠加单元225之间设置有第二低通滤波器224,用于衰减m个子提示音中的高次谐波。这样,能够尽量避免提示音过于尖锐刺耳。第二低通滤波器224可以由电阻和电容构成。通过调节电容的容值,可以改变低通滤波的截止频率,从而对子提示音中的高次谐波进行不同程度的衰减。进一步可选的,针对每一子提示音设置一个第二低通滤波器224,用于衰减该子提示音中的高次谐波,如图10所示。
如图11所示,第二叠加单元225可以包括第二放大器A1。第二放大器A1包括同向端、反向端和输出端。第二放大器A1的同向端接收m个子提示音。第二放大器A1的反向端经第二接地电阻RA接地。第二放大器A1的输出端为第二叠加单元225的输出端。
可以理解的,第二放大器A1可以在实现叠加m个子提示音的基础上,对叠加得到的提示音进行放大。为了实现第二放大器A1的叠加放大功能,第二叠加单元225还可以包括电阻R1、R2、R3,以及Rf1,各电阻与第二放大器A1之间的连接关系可以参考图11。其中,在图11中,第二叠加单元225的两个输入端的输入电压分别被标记为Ua和Ub,输出端的输出电压被标记为Uc。
通常,Rf1是可调电阻。RA可以是不可调电阻,也可以是可调电阻。图11中是以RA是可调电阻为例进行说明的。若RA是可调电阻,则通过调节RA和Rf1的阻值的大小,可以控制第二放大器A1的增益,从而控制提示音的音量。例如,参见图11,第二叠加单元225的输入电压Ua和Ub,与输出电压Uc之间的关系可通过如下公式表示:
Figure PCTCN2018072292-appb-000003
由于R1、R2和R3的阻值通常是固定的,因此,通过调节RA和Rf1的阻值的大小,可以控制第二放大器A1的输出电压Uc。其中,Uc的值越大,提示音的音量越大。
若RA是可调电阻,一种实现RA的阻值可调的实现方案如图12所示。在图12中,通过控制开关S1和S2的闭合状态,可以控制RA的阻值。例如,开关S1和S2均打开时,RA的阻值是电阻RA1、RA2和RA3的阻值之和。又如,开关S1闭合,开关S2打开时,RA的阻值是电阻RA2和RA3的阻值之和。可选的,可以由控制单元21来控制RA的阻值。例如,控制单元21可以设置第二寄存器,结合图12,第二寄存器中存放的提示音控制信息具体可以是开 关S1和S2的闭合状态。控制单元21可以读取第二寄存器中存放的该提示音控制信息,从而控制开关S1和S2的闭合状态,进而调节RA的阻值,以控制提示音的音量。结合图12和上述表1,假设预设场景是有电话呼入的场景,则表1中的C1可以是开关S1和S2均处于打开状态;假设预设场景是收到短信的场景,则表1中的C2可以是开关S1处于打开状态,开关S2处于闭合状态。其他示例不再一一列举。
需要说明的是,图12为实现RA是可调电阻的一种实现方式,本申请对实现RA是可调电阻的实现方式中所设置的电阻(例如RA1、RA2和RA3)的数量,各电阻的阻值,电阻之间的连接关系,开关的数量,以及开关与电阻之间的连接关系等均不进行限定。
可以理解的,生成单元22还可以包括锁相环220,关于锁相环220的相关描述可以参考上文。该情况下,锁相环220的输入端为生成单元22的输入端22B,如图13所示。图13中是以DSD音频播放电路20的时钟信号的频率是f0,经锁相环220后得到的信号的频率是f,经第二分频器223后得到的信号的频率是f2和f3为例进行说明的。其中,f0可以大于f、等于f、或小于f。通常,f2小于f,f3小于f。
进一步可选的,任意多个第二低通滤波器224之间可以共用器件。例如,如图13所示,电容C1、电阻R2和电容C3构成一个第二低通滤波器224,用于对具有频率f2的子提示音进行低通滤波;电容C2、电阻R3和电容C3构成一个第二低通滤波器224,用于对具有频率f3的子提示音进行低通滤波。这两个第二低通滤波器224之间共用电容C3。
进一步可选的,第二叠加单元225与第二低通滤波器224之间可以共用器件,例如,如图13所示,第二叠加单元225与两个第二低通滤波器224之间共用电阻R2和R3。
以下,说明第一叠加单元23的具体实现,并在此过程中说明叠加信号控制信息的具体实现方式。
如图14所示,第一叠加单元23可以包括第一放大器A2。第一放大器A2包括同向端、反向端和输出端。第一放大器A2的同向端用于接收上述模拟音频信号和提示音。第一放大器A2的反向端经第一接地电阻RB接地。第一放大器A2的输出端为第一叠加单元23的输出端。
第一放大器A2可以在实现叠加上述模拟音频信号和提示音的基础上,对叠加信号进行放大。为了实现第一放大器A2的叠加放大功能,第一叠加单元23还可以包括电阻R4、R5、R6,以及Rf2,各电阻与第一放大器A2之间的连接关系可以参考图14。其中,在图14中,第一叠加单元23的两个输入端的输入电压分别是U1和U2,输出电压是U3。
通常,Rf2是可调电阻。RB可以是可调电阻,也可以是不可调电阻。图14中是以RB是可调电阻为例进行说明的。若RB是可调电阻,则通过调节RB和Rf2的阻值的大小,可以控制第一放大器A2的电压U3,从而控制叠加信号的音量,其中电压U3越大叠加信号的音量越大。例如,参见图14,第一叠加单元23的输入电压U1和U2,与输出电压U3之间的关系可通过如下公式表示:
Figure PCTCN2018072292-appb-000004
由于R4、R5和R6的阻值通常是固定值,因此,通过调节RB和Rf2的阻值的大小,可以控制第一放大器A2的电压U3。
若RB是可调电阻,则实现RB的阻值可调的实现方案可参考图12所示的实现RA的阻值可调的实现方案,此处不再赘述。可选的,可以由控制单元21来控制RB的阻值。例如,控制单元21中可以设置第三寄存器,第三寄存器中存放的叠加信号控制信息可以是实现RB的阻值可调的实现方案中各开关的闭合状态。控制单元21可以读取第三寄存器中存放的叠 加信号控制信息,从而控制该各开关的闭合状态,进而调节RB的阻值,以调节控制叠加信号的音量。
可选的,基于上述任一实施例,数模转换器204与第一叠加单元23可以设置有电压跟随器206。电压跟随器206可以通过放大器A0实现,如图15或图16所示。其中,图15是基于图8和图14进行绘制的。图16是基于图13和图14进行绘制的。电压跟随器是实现输出电压跟随输入电压的变化的一类电子元件。也就是说,电压跟随器的电压放大倍数恒小于且接近1。电压跟随器可以起缓冲、隔离、提高带载能力等作用。
另外,控制单元21还可以设置如下寄存器:
第四寄存器,用于存放用于控制提示音的生成周期的提示音控制信息。第四寄存器可以理解为是一个计数器/计时器/定时器等。用于控制提示音的生成周期的提示音控制信息,具体可以是计数器/计时器/定时器的初始值。以第四寄存器是定时器1为例,处理器10每隔第一定时时长向定时器1中写入一次定时时间的初始值。定时器1从存入初始值时开始计时,并在定时时间到达第一预设值时,控制单元21控制生成单元22开始生成一次提示音。如此,即可实现生成单元22周期性地生成提示音。其中,第一定时时长(即定时器1的定时时间从初始值到第一预设值所使用的时间)为提示音的生成周期。其中,在每个生成周期内,何时停止提示音可通过第五寄存器中存放的信息确定。
第五寄存器,用于存放用于控制提示音的单次播放时长的提示音控制信息。第五寄存器可以是一个计数器/计时器/定时器等。用于控制提示音的生成周期的提示音控制信息,具体可以是计数器/计时器/定时器的初始值。以第五寄存器是定时器2为例,处理器10在每次定时器1的定时时间到达第一预设值(此时开始生成提示音,即开始播放提示音)时,向定时器2中写入一次定时时间的初始值。定时器2从存入该初始值时开始计时,并在定时时间到达第二预设值时,控制单元21控制生成单元22停止生成提示音,即停止播放提示音。其中,定时器2的第二定时时长(即定时器2的定时时间从初始值到第二预设值所使用的时间)为提示音的单次播放时长。第二定时时长小于第一定时时长。
第六寄存器,用于存放用于控制提示音的总播放次数的提示音控制信息。第六寄存器可以是一个计数器/计时器/定时器等。用于控制提示音的生成周期的提示音控制信息,具体可以是该计数器/计时器/定时器的初始值。以第六寄存器是计数器为例,计数器从存入初始值时开始计数,生成单元22每生成一次提示音,计数器的计数值增加预设步长,当计数器的计数值到达第三预设值时,控制单元21控制生成单元22停止生成提示音。预设步长可以大于0。计数器的计数次数为提示音的播放次数,即计数器的计数值从初始值至第三预定值的过程中增加的次数。
以下,基于图5和图16,说明提示音输出电路205的工作原理:
1)、当处理器10确定有提示音播放需求时,即确定当前场景时,首先通过查表例如查表1和表2(当然,也可以查表1),确定当前场景对应的第二控制信息,然后,通过第二接口202向DSD音频播放电路的控制单元21的相应寄存器中写入对应的第二控制信息。此时,各寄存器、第二分频器223,以及提示音输出电路205中的其他器件进入工作状态。其中,第四寄存器可以是上述定时器1,第五寄存器可以是上述定时器2,第六寄存器可以是一个计数器。
例如,当处理器10确定有电话呼入,即当前场景是有电话呼入的场景时,通过查表1, 确定当前场景对应的提示音控制信息是提示音控制信息B1、C1、D1、E1、F1,通过查表2,确定当前场景对应的叠加信号控制信息是叠加信号控制信息G1,然后,将提示音控制信息B1写入第一寄存器,将提示音控制信息C1写入第二寄存器,将提示音控制信息D1写入第四寄存器,将提示音控制信息E1写入第五寄存器,将提示音控制信息F1写入第六寄存器,将叠加信号控制信息G1写入第三寄存器。
其中,参见上文中的描述并结合图16可知,提示音控制信息B1可以是频率因子f2/f和f3/f。提示音控制信息C1可以是图11中的开关S1和S2的闭合状态。提示音控制信息D1可以是作为第四寄存器的定时器1的定时时间的初始值。提示音控制信息E1可以是作为第五寄存器的定时器2的定时时间的初始值。提示音控制信息F1可以是作为第六寄存器的计时器的计数值的初始值。叠加信号控制信息G1可以是用于调节RB的阻止的各开关的闭合状态。
2)、处理器10每隔第一定时时长向定时器1中写入一次定时器1的定时时间的初始值,作为第四寄存器的定时器1的定时时间每次从初始值到达第一预设值时,控制单元21向第二分频器223的控制端输出一个信号,使得第二分频器223的使能信号EN的状态发生一次跳变,从而可以使得第二分频器223周期性地生成提示音。
其中,第二分频器223每使能一次,第六寄存器中存放的计数值减1,当第六寄存器中存放的计数值减少至第三预设值时,控制单元21不再控制第二分频器223的使能信号EN的状态发生跳变,即控制第二分频器223停止生成提示音。此时,控制单元21、第二分频器223,以及提示音输出电路205中的其他器件进入休眠状态。
其中,处理器10在每次作为第四寄存器的定时器1的定时时间到达第一预设值时,向第五寄存器中写入一次定时器2的定时时间的初始值,这样能够实现第二分频器223每使能一次,作为第五寄存器的定时器2的定时时间的初始值被设置时,开始播放提示音,定时器2的定时时间每一次到达第二预设值时,停止播放提示音。
以下,说明本发明实施例提供的DSD音频播放方法。
如图17所示,为本发明实施例提供的一种DSD音频播放方法的流程示意图。该方法可以应用于上文提供的任一终端设备。该方法可以包括如下步骤:
S1701:终端设备将DSD音频信号转换为模拟音频信号。具体的,终端设备可以在接收到用户的触发的情况下,将待播放DSD音频信号转换为模拟音频信号,并播放该模拟音频信号。
可以理解的,若当前时刻不需要播放提示音,即当前时刻终端设备所处的场景不属于预设的具有提示音播放需求的任一场景,则终端设备将DSD音频信号转换为模拟音频信号之后,即可通过终端设备所连接的耳机播放该模拟音频信号。通常,终端设备播放的模拟音频信号可以持续一段时间。例如,终端设备在用户的触发下需要播放一首音乐时,播放该音乐的时间可以持续一段时间。具体的,终端设备在播放模拟音频信号的过程中,若确定当前场景是具有提示音播放需求的场景,则可以执行S1702。
S1702:终端设备根据当前场景生成提示音。具体的,终端设备可以根据预设场景与预设场景的对应关系,确定与当前场景对应的提示音控制信息,并根据当前场景对应的提示音控制信息生成提示音。
其中,预设场景是有电话呼入收到短信、收到微信消息、收到QQ消息和电量不足中 的至少一种场景,当前场景是预设场景中的一种。提示音控制信息包括提示音的频率、音量、生成周期、单次播放时长和总播放次数中的至少一种。
S1703:终端设备叠加模拟音频信号和提示音。具体的,终端设备可以在确定当前场景是具有提示音播放需求的场景时,根据预设场景与预设场景对应的叠加信号控制信息的对应关系,确定与当前场景对应的叠加信号控制信息,并根据与当前场景对应的叠加信号控制信息叠加模拟音频信号和提示音。
关于叠加信号控制信息的相关描述可参考上文,此处不再赘述。
S1704:终端设备通过与耳机接口连接的耳机播放叠加后的模拟音频信号和提示音。具体的,终端设备通过与耳机接口连接的耳机同时播放模拟音频信号和提示音。
本实施例中相关内容的解释以及有益效果等均可以参考上文,此处不再赘述。
如图18所示,为本发明实施例提供的一种终端设备的结构示意图。该终端设备用于执行图17所示的方法。该终端设备可以包括:数模转换模块1801、生成模块1802、叠加模块1803和耳机接口1804。其中:数模转换模块1801,用于将DSD音频信号转换为模拟音频信号。生成模块1802,用于根据当前场景生成提示音。叠加模块1803,用于叠加模拟音频信号和提示音。耳机接口1804,用于连接耳机,并向耳机发送叠加后的模拟音频信号和提示音,从而使得终端设备通过该耳机播放叠加后的模拟音频信号和提示音。例如,结合图17,数模转换模块1801可以用于执行S1701。生成模块1802可以用于执行S1702。叠加模块1803可以用于执行S1703。
作为一个示例,数模转换模块1801可以对应上文中的数模转换器204。生成模块1802可以对应上文中的生成单元22。叠加模块1803可以对应上文中的第一叠加单元23。耳机接口1803可以对应上文中的耳机接口30。
可以理解的是,上述实施例中的连接,可以是直接连接,也可以是非直接连接,也可以是耦合连接、和/或电连接等。
本实施例中相关内容的解释以及有益效果等均可以参考上文,此处不再赘述。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、硬件加软件的方式来实现。当使用硬件加软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (18)

  1. 一种终端设备,其特征在于,包括处理器、直接比特流数字编码DSD音频播放电路和耳机接口,所述处理器与所述DSD音频播放电路连接,所述DSD音频播放电路与所述耳机接口连接,其中,
    所述处理器,响应于用户的触发,输出DSD音频信号给所述DSD音频播放电路;
    所述DSD音频播放电路,用于:
    对所述DSD音频信号进行处理;
    根据当前场景生成提示音;
    将所述处理后的DSD音频信号和所述提示音叠加;
    所述耳机接口,用于连接耳机,通过所述耳机播放叠加后的音频信号和提示音。
  2. 根据权利要求1所述的终端设备,其特征在于,所述处理器,还用于确定与所述当前场景对应的提示音控制信息。
  3. 根据权利要求2所述的终端设备,其特征在于,所述DSD音频播放电路,用于根据与所述当前场景对应的提示音控制信息,生成提示音。
  4. 根据权利要求2或3所述的终端设备,其特征在于,所述DSD音频播放电路包括数模转换器和提示音输出电路,所述数模转换器用于对所述DSD音频信号进行数模转换,得到模拟音频信号;
    所述提示音输出电路包括控制单元、生成单元和叠加单元,其中,所述生成单元在所述控制单元的控制下,根据基准信号和所述当前场景对应的提示音控制信息生成提示音;所述叠加单元,用于叠加所述模拟音频信号和所述提示音。
  5. 根据权利要求2-4任一所述的终端设备,其特征在于,所述处理器,还用于确定与所述当前场景对应的提示音控制信息,具体为:
    所述处理器,还用于根据预设场景与提示音控制信息的对应关系,确定与所述当前场景对应的提示音控制信息。
  6. 根据权利要求5所述的终端设备,其特征在于,所述预设场景包括:有电话呼入、收到短信、收到微信消息、收到QQ消息和电量不足中的至少一种场景。
  7. 根据权利要求5或6所述的终端设备,其特征在于,所述预设场景与提示音控制信息存储在非易失性存储器。
  8. 根据权利要求2-7任一所述的终端设备,其特征在于,所述提示音控制信息包括所述提示音的频率、音量、生成周期、单次播放时长和总播放次数中的至少一种。
  9. 根据权利要求1-8任一所述的终端设备,其特征在于,所述当前场景包括:有电话呼入、收到短信、收到微信消息、收到QQ消息和电量不足中的至少一种场景。
  10. 根据权利要求1-9任一所述的终端设备,其特征在于,所述处理器为应用处理器。
  11. 一种直接比特流数字编码DSD音频播放电路,其特征在于,包括:数模转换器和提示音输出电路,所述数模转换器与所述提示音输出电路连接;其中:
    所述数模转换器,用于对DSD音频信号进行数模转换,得到模拟音频信号;
    所述提示音输出电路,用于根据当前场景生成提示音,并将所述模拟音频信号和所述提示音叠加。
  12. 根据权利要求11所述的DSD音频播放电路,其特征在于,所述提示音输出电路, 用于根据与所述当前场景对应的提示音控制信息,生成提示音。
  13. 根据权利要求11或12所述的DSD音频播放电路,其特征在于,所述提示音输出电路,包括控制单元、生成单元和叠加单元,其中,所述生成单元在所述控制单元的控制下,根据基准信号和所述当前场景对应的提示音控制信息生成提示音;所述叠加单元,用于叠加所述模拟音频信号和所述提示音。
  14. 根据权利要求11-13任一所述的DSD音频播放电路,其特征在于,所述叠加后的模拟音频信号和提示音通过与耳机接口连接的耳机播放。
  15. 根据权利要求11-14任一所述的DSD音频播放电路,其特征在于,所述DSD音频播放电路为DAC芯片。
  16. 一种直接比特流数字编码DSD音频播放方法,其特征在于,所述方法包括:
    接收DSD音频信号;
    将所述DSD音频信号转换为模拟音频信号;
    根据当前场景生成提示音;
    叠加所述模拟音频信号和所述提示音;
    通过与耳机接口连接的耳机播放所述叠加后的模拟音频信号和提示音。
  17. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    确定与所述当前场景对应的提示音控制信息;
    所述根据当前场景生成提示音,包括:
    根据与所述当前场景对应的提示音控制信息,生成提示音。
  18. 根据权利要求17所述的方法,其特征在于,所述确定与所述当前场景对应的提示音控制信息,包括:
    根据预设场景与提示音控制信息的对应关系,确定与当前场景对应的提示音控制信息。
PCT/CN2018/072292 2018-01-11 2018-01-11 一种终端设备、dsd音频播放电路和方法 WO2019136675A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201880019362.1A CN110431915B (zh) 2018-01-11 2018-01-11 一种终端设备、dsd音频播放电路和方法
PCT/CN2018/072292 WO2019136675A1 (zh) 2018-01-11 2018-01-11 一种终端设备、dsd音频播放电路和方法
EP18899093.1A EP3713373B1 (en) 2018-01-11 2018-01-11 Terminal device and dsd audio playback method
US16/961,462 US11606459B2 (en) 2018-01-11 2018-01-11 Terminal device, and DSD audio playback circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/072292 WO2019136675A1 (zh) 2018-01-11 2018-01-11 一种终端设备、dsd音频播放电路和方法

Publications (1)

Publication Number Publication Date
WO2019136675A1 true WO2019136675A1 (zh) 2019-07-18

Family

ID=67219200

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/072292 WO2019136675A1 (zh) 2018-01-11 2018-01-11 一种终端设备、dsd音频播放电路和方法

Country Status (4)

Country Link
US (1) US11606459B2 (zh)
EP (1) EP3713373B1 (zh)
CN (1) CN110431915B (zh)
WO (1) WO2019136675A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115172B (zh) * 2021-03-10 2022-12-06 亿咖通(湖北)技术有限公司 整车多样化音频场景的优化方法及系统
CN113301206A (zh) * 2021-05-25 2021-08-24 昆腾微电子股份有限公司 一种音频调节方法、装置、电子设备及可读取存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036939A1 (fr) * 2002-10-18 2004-04-29 Institute Of Acoustics Chinese Academy Of Sciences Appareil de communication mobile numerique portable, procede de commande vocale et systeme
CN201465547U (zh) * 2009-05-21 2010-05-12 林庆元 新型语音播放器
CN101834929A (zh) * 2009-03-13 2010-09-15 深圳富泰宏精密工业有限公司 音频播放系统及方法
CN105868085A (zh) * 2015-11-06 2016-08-17 乐视移动智能信息技术(北京)有限公司 充电提醒方法、装置及终端设备
CN106205625A (zh) * 2016-07-26 2016-12-07 维沃移动通信有限公司 一种混音播放方法及移动终端

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036367A2 (en) * 2002-10-15 2004-04-29 Wildseed, Ltd. A mobile digital communication/computing device having a context sensitive audio system
US20040213350A1 (en) 2003-04-24 2004-10-28 Frith Peter J. Interface format for PCM and DSD devices
JP4404190B2 (ja) * 2003-07-24 2010-01-27 ソニー株式会社 電子機器、認証使用情報更新方法
US8391501B2 (en) * 2006-12-13 2013-03-05 Motorola Mobility Llc Method and apparatus for mixing priority and non-priority audio signals
US8041438B2 (en) * 2007-06-28 2011-10-18 Apple Inc. Data-driven media management within an electronic device
US8200479B2 (en) 2008-02-08 2012-06-12 Texas Instruments Incorporated Method and system for asymmetric independent audio rendering
US20100051576A1 (en) * 2008-09-04 2010-03-04 Tran Quoc A Container cap with aqua tissue
CN101508299B (zh) 2009-03-12 2011-04-06 上海交通大学 自动识别道路限速标志的车辆智能装置
US20130101125A1 (en) * 2010-07-05 2013-04-25 Nokia Corporation Acoustic Shock Prevention Apparatus
US9836270B2 (en) * 2011-12-22 2017-12-05 Nokia Technologies Oy Method and apparatus for handling the display and audio component based on the orientation of the display for a portable device
US9351068B2 (en) * 2013-06-14 2016-05-24 Blackberry Limited Obstructed port audio signal alteration
CN204991149U (zh) 2015-10-09 2016-01-20 上海盛微申芯科技有限公司 基于移动终端充电接口的外接音频播放装置
CN105872899A (zh) 2016-04-20 2016-08-17 乐视控股(北京)有限公司 音频播放方法、装置和终端设备
US10511277B2 (en) * 2016-04-29 2019-12-17 Cirrus Logic, Inc. Audio signal processing
GB2549963B (en) * 2016-05-04 2022-03-02 D & M Holdings Inc Signal processing device and method
US10346334B2 (en) * 2016-06-09 2019-07-09 Plantronics, Inc. Mode switchable audio processor for digital audio
CN106504759B (zh) 2016-11-04 2019-07-26 维沃移动通信有限公司 一种混音处理方法及终端设备
CN106412767B (zh) 2016-11-29 2020-03-31 维沃移动通信有限公司 一种混音方法和混音电路
CN107204191A (zh) 2017-05-17 2017-09-26 维沃移动通信有限公司 一种混音方法、装置及移动终端
WO2019111703A1 (ja) * 2017-12-05 2019-06-13 ソニー株式会社 信号処理装置、信号処理方法、及び、プログラム
US10297127B1 (en) * 2017-12-18 2019-05-21 Arris Enterprises Llc Home security systems and Bluetooth Wi-Fi embedded set-tops and modems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036939A1 (fr) * 2002-10-18 2004-04-29 Institute Of Acoustics Chinese Academy Of Sciences Appareil de communication mobile numerique portable, procede de commande vocale et systeme
CN101834929A (zh) * 2009-03-13 2010-09-15 深圳富泰宏精密工业有限公司 音频播放系统及方法
CN201465547U (zh) * 2009-05-21 2010-05-12 林庆元 新型语音播放器
CN105868085A (zh) * 2015-11-06 2016-08-17 乐视移动智能信息技术(北京)有限公司 充电提醒方法、装置及终端设备
CN106205625A (zh) * 2016-07-26 2016-12-07 维沃移动通信有限公司 一种混音播放方法及移动终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3713373A4 *

Also Published As

Publication number Publication date
US20210092221A1 (en) 2021-03-25
US11606459B2 (en) 2023-03-14
EP3713373B1 (en) 2021-11-10
CN110431915A (zh) 2019-11-08
EP3713373A1 (en) 2020-09-23
EP3713373A4 (en) 2020-11-25
CN110431915B (zh) 2021-10-29

Similar Documents

Publication Publication Date Title
JP6875437B2 (ja) 音声信号処理装置及びスピーカー
WO2019136675A1 (zh) 一种终端设备、dsd音频播放电路和方法
CN110517711A (zh) 音频的播放方法、装置、存储介质及电子设备
CN108510997A (zh) 电子设备及应用于电子设备的回声消除方法
CN104581515B (zh) 一种音频播放装置、方法和移动终端
US9467778B2 (en) Beamforming a digital microphone array on a common platform
CN103200480A (zh) 耳麦及其工作方法
JP4728943B2 (ja) オーディオ処理回路、その起動方法ならびにそれらを利用した電子機器
CN203151729U (zh) 一种多功能耳机
CN203181164U (zh) 耳麦
US11368132B2 (en) Low delay, low power and high linearity class-D modulation loop
CN210274513U (zh) 一种多功能音响系统
CN113890492A (zh) 音频功率放大器的供电电压控制方法、控制器和音频设备
TW202309878A (zh) 會議終端及用於會議的回音消除方法
CN206003506U (zh) 多媒体控制智能终端
Voice et al. Smart Codec with Low Power Audio DSP
CN208061183U (zh) 一种手机背夹hifi系统
CN104661149B (zh) 应用于耳机麦克风组的信号处理电路及相关信号处理方法
CN203722801U (zh) 扩充配件
CN211047195U (zh) 一种音效切换电路、设备及系统
CN216599925U (zh) 一种基于网络的扬声装置及系统
US9252730B2 (en) Audio processing device and audio systems using the same
US11057703B2 (en) Apparatus and method for audio user interface processing with disparate sampling rates
TW202416731A (zh) 電腦系統及其聲音訊號的處理方法
US20230353111A1 (en) Circuitry for and Methods of Gain Control

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18899093

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018899093

Country of ref document: EP

Effective date: 20200615

NENP Non-entry into the national phase

Ref country code: DE