[go: up one dir, main page]

CN105872253B - A kind of live sound processing method and mobile terminal - Google Patents

A kind of live sound processing method and mobile terminal Download PDF

Info

Publication number
CN105872253B
CN105872253B CN201610377817.XA CN201610377817A CN105872253B CN 105872253 B CN105872253 B CN 105872253B CN 201610377817 A CN201610377817 A CN 201610377817A CN 105872253 B CN105872253 B CN 105872253B
Authority
CN
China
Prior art keywords
signal
audio file
audio
user
audio signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610377817.XA
Other languages
Chinese (zh)
Other versions
CN105872253A (en
Inventor
孙长举
周旋
周雨卓
蔡伟龙
杨超
林志衡
罗嘉黎
魏艳芳
杨溯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610377817.XA priority Critical patent/CN105872253B/en
Publication of CN105872253A publication Critical patent/CN105872253A/en
Application granted granted Critical
Publication of CN105872253B publication Critical patent/CN105872253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a live broadcast sound processing method and a mobile terminal, wherein the live broadcast sound processing method comprises the following steps: acquiring an audio file selected by a user; decoding the audio file to obtain an audio signal; collecting voice signals of the user; the audio signal and the voice signal are mixed and played, and the embodiment of the invention can enrich the live broadcast atmosphere without other external equipment and can improve the quality of the final output signal.

Description

一种直播声音处理方法及移动终端A kind of live sound processing method and mobile terminal

技术领域technical field

本发明实施例涉及通信技术领域,具体涉及一种直播声音处理方法及移动终端。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a method for processing live sound and a mobile terminal.

背景技术Background technique

近年来,随着手机等移动终端技术的不断发展,移动终端变得越来越智能,移动终端所提供的功能也越来越多,例如直播功能,随着社交需求的不断增加,直播这一功能越来越受用户欢迎。In recent years, with the continuous development of mobile terminal technologies such as mobile phones, mobile terminals have become more and more intelligent, and mobile terminals have provided more and more functions, such as live broadcast functions. Features are becoming more and more popular with users.

为丰富直播氛围,有时需要在直播的过程添加一些背景音乐,现有技术中,为实现这一目的,通常需要借助其他外放设备(例如个人计算机),具体实现过程如下:通过其他外放设备的扬声器播放背景音乐,通过移动终端的麦克风同时采集背景音乐及主播的声音,然后将二者混合播放。由于需要借助其他外放设备获取背景音乐,这种方式实现起来会非常不方便,实施地点容易受限,且通过麦克风同时采集背景音乐,收音效果比较差,容易收集到环境噪音,导致最终输出的信号质量很差。In order to enrich the live broadcast atmosphere, it is sometimes necessary to add some background music during the live broadcast. In the prior art, in order to achieve this purpose, other external playback devices (such as personal computers) are usually required. The specific implementation process is as follows: The speaker of the mobile terminal plays the background music, and the microphone of the mobile terminal simultaneously collects the background music and the voice of the host, and then mixes the two for playback. Since it needs to use other external devices to obtain background music, this method is very inconvenient to implement, and the implementation location is easily limited. Moreover, the background music is collected through the microphone at the same time, and the radio effect is relatively poor. Signal quality is poor.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供了一种直播声音处理方法及移动终端,不需要其他外放设备即可丰富直播氛围,能够提高最终输出信号的质量。In view of this, the embodiments of the present invention provide a live broadcast sound processing method and a mobile terminal, which can enrich the live broadcast atmosphere without other external playback devices, and can improve the quality of the final output signal.

本发明实施例提供的直播声音处理方法包括:The live sound processing method provided by the embodiment of the present invention includes:

获取用户选择的音频文件;Get the audio file selected by the user;

解码所述音频文件得到音频信号;Decode the audio file to obtain an audio signal;

采集所述用户的语音信号;collecting the voice signal of the user;

将所述音频信号与所述语音信号进行混音并播放。The audio signal and the speech signal are mixed and played.

本发明实施例提供的移动终端包括:The mobile terminal provided by the embodiment of the present invention includes:

获取单元,用于获取用户选择的音频文件;an acquisition unit for acquiring the audio file selected by the user;

解码单元,用于解码所述音频文件得到音频信号;a decoding unit for decoding the audio file to obtain an audio signal;

采集单元,用于采集所述用户的语音信号;a collection unit, used for collecting the voice signal of the user;

混音播放单元,用于将所述音频信号与所述语音信号进行混音并播放。A sound mixing and playing unit, configured to mix and play the audio signal and the voice signal.

本发明实施例中,移动终端可以获取用户选择的音频文件,解码该音频文件得到音频信号,因而不再需要通过其他外放设备播放音频信号,也不再需要使用移动终端的麦克风采集该音频信号,在获取音频信号之后,可以调整移动终端的麦克风重点采集用户的语音信号,然后将所获取的音频信号与所采集的用户的语音信号进行混音并播放,因而能够提高最终输出信号的质量。In this embodiment of the present invention, the mobile terminal can acquire the audio file selected by the user, and decode the audio file to obtain the audio signal. Therefore, it is no longer necessary to play the audio signal through other external playback devices, and it is no longer necessary to use the microphone of the mobile terminal to collect the audio signal. After obtaining the audio signal, the microphone of the mobile terminal can be adjusted to focus on collecting the user's voice signal, and then the obtained audio signal and the collected user's voice signal are mixed and played, thereby improving the quality of the final output signal.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明实施例所提供的直播声音处理方法的一个场景示意图;Fig. 1 is a scene schematic diagram of a live broadcast sound processing method provided by an embodiment of the present invention;

图2是本发明实施例所提供的直播声音处理方法的一个流程示意图;2 is a schematic flowchart of a method for processing live sound provided by an embodiment of the present invention;

图3a是本发明实施例所提供的直播声音处理方法的另一流程示意图;Fig. 3a is another schematic flow chart of the live sound processing method provided by the embodiment of the present invention;

图3b是本发明解码音频文件的方法的一个流程示意图;Fig. 3b is a schematic flow chart of the method for decoding audio file of the present invention;

图4a至4d本发明实施例所提供背景音乐的效果展示图;4a to 4d are the effect display diagrams of the background music provided by the embodiments of the present invention;

图5a至5d本发明实施例所提供的音效的效果展示图;5a to 5d are diagrams showing effects of sound effects provided by embodiments of the present invention;

图6是本发明实施例所提供的移动终端的一个结构示意图;6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;

图7是本发明实施例所提供的移动终端的另一结构示意图。FIG. 7 is another schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

由于现有技术中,当想要在直播过程中加入其它音频信号来丰富直播氛围时,需要借助其它外放设备,且最终输出的信号质量也不理想,因而本发明实施例提供了一种直播声音处理方法及移动终端,不需要借助其他外放设备即可丰富直播氛围,且能够提高最终输出信号的质量。本发明实施例的移动终端具体可以是手机、平板电脑、笔记本电脑等。如图1所示,移动终端可以获取用户选择的音频文件,解码所述音频文件得到音频信号,该音频信号用于丰富直播氛围,然后将采集的用户的语音信号与所述音频信号进行混音并播放,整个过程中通过解码该音频文件获取该音频信号,因而不需要其他外放设备即可丰富直播氛围,且能够提高最终输出信号的质量。In the prior art, when other audio signals are to be added during the live broadcast to enrich the live broadcast atmosphere, other external playback devices are required, and the quality of the final output signal is not ideal. Therefore, the embodiment of the present invention provides a live broadcast The sound processing method and the mobile terminal can enrich the live broadcast atmosphere without the aid of other external playback devices, and can improve the quality of the final output signal. The mobile terminal in the embodiment of the present invention may specifically be a mobile phone, a tablet computer, a notebook computer, and the like. As shown in FIG. 1 , the mobile terminal can acquire the audio file selected by the user, decode the audio file to obtain an audio signal, and the audio signal is used to enrich the live broadcast atmosphere, and then mix the collected user's voice signal with the audio signal. The audio signal is obtained by decoding the audio file in the whole process, so the live broadcast atmosphere can be enriched without other external playback devices, and the quality of the final output signal can be improved.

以下将分别进行详细说明,以下各个实施例的描述先后顺序并不构成对具体实施先后顺序的限定。Detailed descriptions will be given below, and the order of description of each embodiment below does not constitute a limitation on the order of specific implementation.

实施例一Example 1

如图2所示,本实施例的直播声音处理方法包括以下步骤:As shown in FIG. 2 , the live sound processing method of this embodiment includes the following steps:

步骤201、获取用户选择的音频文件;Step 201, obtain the audio file selected by the user;

具体实现中,用户可以通过移动终端上的直播软件进入直播界面,点击直播界面的氛围管理器以在对应位置输入所选的音频文件的标识(例如音频文件的名称),移动终端可以根据用户输入获取用户选择的音频文件。In the specific implementation, the user can enter the live broadcast interface through the live broadcast software on the mobile terminal, click the atmosphere manager of the live broadcast interface to input the identifier of the selected audio file (for example, the name of the audio file) at the corresponding position, and the mobile terminal can input the audio file according to the user input. Get the audio file selected by the user.

步骤202、解码所述音频文件得到音频信号;Step 202, decoding the audio file to obtain an audio signal;

所述音频信号用于在直播的过程中丰富直播氛围。The audio signal is used to enrich the live broadcast atmosphere during the live broadcast.

步骤203、采集所述用户的语音信号;Step 203, collecting the voice signal of the user;

具体实现中,可以利用移动终端的麦克风采集用户的语音信号,本实施例中,由于麦克风只需要采集用户的语音信号,不需要采集其他音频信号,因此可以调整麦克风的位置使其对准用户,或者调整麦克风的模式(例如降噪模式) 使其重点采集用户的语音信号,以保证采集到高质量的语音信号。In specific implementation, the microphone of the mobile terminal can be used to collect the user's voice signal. In this embodiment, since the microphone only needs to collect the user's voice signal and does not need to collect other audio signals, the position of the microphone can be adjusted so that it is aimed at the user, Or adjust the mode of the microphone (for example, the noise reduction mode) to focus on collecting the user's voice signal, so as to ensure that the high-quality voice signal is collected.

步骤204、将所述音频信号与所述语音信号进行混音并播放。Step 204: Mix and play the audio signal and the voice signal.

具体实现中,步骤201、202可以与步骤203同时执行,即音频信号与语音信号可以同步获取。混音即将获取的音频信号与用户的语音信号进行叠加操作,并防止信号溢出,本实施例中,可以将音频信号与所述语音信号进行实时混音。In a specific implementation, steps 201 and 202 may be performed simultaneously with step 203, that is, the audio signal and the voice signal may be acquired synchronously. The audio signal that is about to be mixed is superimposed with the user's voice signal to prevent signal overflow. In this embodiment, the audio signal and the voice signal can be mixed in real time.

本实施例中,移动终端可以获取用户选择的音频文件,解码该音频文件得到音频信号,因而不再需要通过其他外放设备播放音频信号,也不再需要使用移动终端的麦克风采集该音频信号,在获取音频信号之后,可以调整移动终端的麦克风重点采集用户的语音信号,然后将所获取的音频信号与所采集的用户的语音信号进行混音并播放,因而能够提高最终输出信号的质量。In this embodiment, the mobile terminal can acquire the audio file selected by the user, decode the audio file to obtain the audio signal, so it is no longer necessary to play the audio signal through other external playback devices, and it is no longer necessary to use the microphone of the mobile terminal to collect the audio signal, After acquiring the audio signal, the microphone of the mobile terminal can be adjusted to focus on collecting the user's voice signal, and then the acquired audio signal and the collected user's voice signal are mixed and played, thereby improving the quality of the final output signal.

实施例二Embodiment 2

实施例一描述的方法,本实施例将做进一步的详细说明,如图3a所示,本实施例的直播声音处理方法包括如下步骤:The method described in the first embodiment will be further described in this embodiment. As shown in FIG. 3a, the method for processing live sound in this embodiment includes the following steps:

步骤301、获取用户选择的音频文件;Step 301, obtain the audio file selected by the user;

具体实现中,用户可以通过移动终端上的直播软件进入直播界面,点击直播界面的氛围管理器以在对应位置输入所选的音频文件的标识(例如音频文件的名称),移动终端可以根据用户输入获取用户选择的音频文件。In the specific implementation, the user can enter the live broadcast interface through the live broadcast software on the mobile terminal, click the atmosphere manager of the live broadcast interface to input the identifier of the selected audio file (for example, the name of the audio file) at the corresponding position, and the mobile terminal can input the audio file according to the user input. Get the audio file selected by the user.

移动终端可以根据用户的输入连接网络从服务器获取该音频文件,而如果移动终端的本地存储中存储有该音频文件时,移动终端也可以从自身的本地存储中获取该音频文件,以实现音频文件的快速获取。The mobile terminal can acquire the audio file from the server by connecting to the network according to the user's input, and if the audio file is stored in the local storage of the mobile terminal, the mobile terminal can also acquire the audio file from its own local storage to realize the audio file. quick access.

用户选择的音频文件可以是背景音乐(例如某些歌曲、轻音乐等)文件,或者用户选择的音频文件可以是音效(例如滴声、鼓掌、跳跃声等)文件。The user-selected audio file may be a background music (eg, certain songs, light music, etc.) file, or the user-selected audio file may be a sound effect (eg, beep, clapping, jumping, etc.) file.

步骤302、解码所述音频文件得到音频信号;Step 302, decoding the audio file to obtain an audio signal;

具体地,解码方法可如图3b所示,包括如下步骤:Specifically, the decoding method can be as shown in Figure 3b, including the following steps:

步骤3021、解析所述音频文件以获取所述音频文件的采样参数;Step 3021, parse the audio file to obtain the sampling parameters of the audio file;

其中,所述音频文件的采样参数包括采样率、采样精度和声道模式,这些参数是将音频文件解码的主要参数。Wherein, the sampling parameters of the audio file include sampling rate, sampling precision and channel mode, and these parameters are the main parameters for decoding the audio file.

采用率,也称为采样速度或者采样频率,定义了单位时间内的采样个数,它用赫兹(Hz)来表示,对于声音信号,采样率可以用来描述声音文件的音质、音调,是衡量声卡、声音文件的质量标准。采样率越高,即采样的间隔时间越短,则在单位时间内得到的样本数据就越多,对信号波形的表示也越精确。采样率与原始信号频率之间有一定的关系,根据奈奎斯特理论,只有采样率高于原始信号最高频率的两倍时,才能把数字信号表示的信号还原成为原来信号。The adoption rate, also known as sampling speed or sampling frequency, defines the number of samples per unit time, which is expressed in Hertz (Hz). For sound signals, the sampling rate can be used to describe the sound quality and pitch of the sound file, which is a measure of Quality standards for sound cards and sound files. The higher the sampling rate, that is, the shorter the sampling interval, the more sample data can be obtained per unit time, and the more accurate the representation of the signal waveform. There is a certain relationship between the sampling rate and the frequency of the original signal. According to Nyquist theory, only when the sampling rate is higher than twice the highest frequency of the original signal can the signal represented by the digital signal be restored to the original signal.

采样精度,它反映度量声音波形幅度的精度,以位(Bit)为单位,比如8位、 16位。8位可以把声波分成256级的信号,16位可以把同样的波分成65,536级的信号。例如,当声音样本用16位(2字节)表示时,测得的声音样本值在0~65535 的范围里,它的精度就是输入信号的1/65536。样本位数的大小影响到声音的质量,位数越多,声音的质量越高,而需要的存储空间也越多;位数越少,声音的质量越低,需要的存储空间越少。Sampling accuracy, which reflects the accuracy of measuring the amplitude of the sound waveform, in bits (Bit), such as 8 bits, 16 bits. 8 bits can divide a sound wave into a signal of 256 levels, and 16 bits can divide the same wave into a signal of 65,536 levels. For example, when the sound sample is represented by 16 bits (2 bytes), the measured sound sample value is in the range of 0~65535, and its precision is 1/65536 of the input signal. The size of the sample bits affects the quality of the sound. The more bits, the higher the quality of the sound, and the more storage space required; the fewer the bits, the lower the quality of the sound, and the less storage space required.

声道模式,分为单声道或双声道模式,单声道取值为1,双声道取值为2。Channel mode, divided into single channel or dual channel mode, the value of single channel is 1, and the value of dual channel is 2.

步骤3022、计算所述音频文件的编码码率;Step 3022, calculate the coding rate of the audio file;

码率又称为比特率,码率=采样率*采样精度*声道模式,码率越高,传送的数据越大,音质越好。The code rate is also known as the bit rate. The code rate = sampling rate * sampling accuracy * channel mode. The higher the code rate, the larger the transmitted data and the better the sound quality.

步骤3023、根据所述编码码率解码所述音频文件得到所述音频信号。Step 3023: Decode the audio file according to the encoding bit rate to obtain the audio signal.

解码是与编码相反的过程,根据编码码率解码所述音频文件即可得到所述音频信号。Decoding is the opposite process to encoding, and the audio signal can be obtained by decoding the audio file according to the encoding bit rate.

具体实现中,可以将音频文件解码成脉冲编码调制 (Pulse-code modulation,PCM)格式的信号,也可以将音频文件解码成波形 (wave,WAV)格式的信号,此处不做具体限定。解码背景音乐文件可以得到背景音乐信号,解码音效文件可以得到音效信号,解码得到的背景音乐信号或音效信号用于在直播的过程中丰富直播氛围。In a specific implementation, the audio file can be decoded into a signal in a pulse-code modulation (Pulse-code modulation, PCM) format, or the audio file can be decoded into a signal in a waveform (wave, WAV) format, which is not specifically limited here. The background music signal can be obtained by decoding the background music file, the sound effect signal can be obtained by decoding the sound effect file, and the background music signal or sound effect signal obtained by decoding is used to enrich the live broadcast atmosphere during the live broadcast.

步骤303、采集所述用户的语音信号;Step 303, collecting the voice signal of the user;

本实施例中,可以在采集用户的语音信号之前,获取用户选择的音频文件预先进行解码,解码后缓存在存储中,等待用户的语音信号的触发。当采集到用户的语音信号时,直接从缓存中获取音频信号进行混音,以提高混音速度。In this embodiment, before collecting the user's voice signal, the audio file selected by the user may be obtained and decoded in advance, and after decoding, the audio file may be stored in the storage, waiting for the trigger of the user's voice signal. When the user's voice signal is collected, the audio signal is directly obtained from the buffer for mixing, so as to improve the mixing speed.

具体实现中,可以利用移动终端的麦克风采集用户的语音信号,本实施例中,由于麦克风只需要采集用户的语音信号,不需要采集其他音频信号,因此可以调整麦克风的位置使其对准用户,或者调整麦克风的模式(例如降噪模式) 使其重点采集用户的语音信号,以保证采集到高质量的语音信号。In specific implementation, the microphone of the mobile terminal can be used to collect the user's voice signal. In this embodiment, since the microphone only needs to collect the user's voice signal and does not need to collect other audio signals, the position of the microphone can be adjusted so that it is aimed at the user, Or adjust the mode of the microphone (for example, the noise reduction mode) to focus on collecting the user's voice signal, so as to ensure that the high-quality voice signal is collected.

本实施例中,可以根据步骤3021获取的音频文件的采样参数来设置麦克风采集用户的语音信号的采样参数,根据设置的采样参数,获取来自麦克风的语音信号,从而使得所述音频信号与所述语音信号具有相同的采样参数,以便于后续进行混音处理。In this embodiment, the sampling parameters for the microphone to collect the user's voice signal can be set according to the sampling parameters of the audio file obtained in step 3021, and the voice signal from the microphone is obtained according to the set sampling parameters, so that the audio signal and the voice signal are obtained. The voice signals have the same sampling parameters for the convenience of subsequent mixing processing.

当然,所述语音信号的采样参数与所述音频信号的采样参数也可以不相同,如果不相同,则在后续进行混音处理之前,需要对所述音频信号或所述语音信号进行采样参数转换,以使得二者采样参数相同。Of course, the sampling parameter of the voice signal and the sampling parameter of the audio signal may also be different. If they are not the same, the sampling parameter conversion of the audio signal or the voice signal needs to be performed before the subsequent sound mixing processing. , so that the two sampling parameters are the same.

步骤304、根据音量按钮状态的变化对所述音频信号的音量进行调节;Step 304, adjusting the volume of the audio signal according to the change in the state of the volume button;

具体实现中,可以将背景音乐、音效等的音量控制与麦克风的音量控制独立设计,以实现背景音乐、音效的音量调整不影响麦克风音轨录制。在背景音乐或音效的播放过程中,用户可以根据实际需求触摸背景音乐或音效的音量按钮,终端根据背景音乐或音效的音量按钮状态的变化对背景音乐或音效的音量进行调节,在调高音量时,可以根据预设淡入步长逐渐增加音量,在调低音量时,可以根据预设淡出步长逐渐减小音量,以实现音量在不同状态间切换时,有淡入淡出效果做过渡,预设淡入步长及预设淡出步长可根据实际需要设定,二者具体的值可以相同也可以不同。In the specific implementation, the volume control of background music, sound effects, etc., and the volume control of the microphone can be independently designed, so that the volume adjustment of the background music and sound effects does not affect the recording of the microphone sound track. During the playback of background music or sound effects, the user can touch the volume buttons of the background music or sound effects according to actual needs. When the volume is changed, the volume can be gradually increased according to the preset fade-in step, and when the volume is lowered, the volume can be gradually decreased according to the preset fade-out step, so that when the volume switches between different states, there is a fade-in and fade-out effect for transition. The fade-in step size and the preset fade-out step size can be set according to actual needs, and the specific values of the two can be the same or different.

步骤305、对所述音频信号或所述语音信号进行变声、滤波、降噪处理;Step 305, performing voice change, filtering, and noise reduction processing on the audio signal or the voice signal;

具体实现中,可以采用变声器、声音滤镜等工具对所述音频信号或所述语音信号进行变声(例如改变声音的音色、音调等)、滤波(滤除预设频段之外的信号)、降噪处理(消除数字噪声等),以得到更高质量的音频信号或语音信号。In specific implementation, tools such as a voice changer and a sound filter can be used to change the audio signal or the voice signal (for example, change the timbre, tone, etc. of the sound), filter (filter out signals other than the preset frequency band), Noise reduction processing (removing digital noise, etc.) to obtain higher quality audio signals or speech signals.

步骤306、将所述音频信号与所述语音信号进行混音并播放。Step 306: Mix and play the audio signal and the voice signal.

混音即将多种来源的声音,整合至一个立体音轨(Stereo)或单音音轨 (Mono)中输出,具体地,可以采用如下两种方式进行混音:Mixing is to combine the sounds of multiple sources into a stereo track (Stereo) or monophonic track (Mono) for output. Specifically, the following two methods can be used for mixing:

第一种,先调整所述音频信号及所述语音信号的幅度,例如将所述音频信号的幅度调整为第一幅度阈值,将所述语音信号的幅度调整为第二幅度阈值,第一幅度阈值与第二幅度阈值可以相同或不同,如果想要突出所述音频信号,则第一幅度阈值可以大于第二幅度阈值,而如果想要突出所述语音信号,则第二幅度阈值可以大于第一幅度阈值,另外,为保证混音后信号不溢出,可以根据溢出幅度限值设置第一幅度阈值及第二幅度阈值;接下来将幅度调整之后的所述音频信号与所述语音信号叠加为一路,播放叠加为一路的信号。The first is to adjust the amplitude of the audio signal and the voice signal, for example, adjust the amplitude of the audio signal to a first amplitude threshold, adjust the amplitude of the voice signal to a second amplitude threshold, and adjust the amplitude of the audio signal to a first amplitude threshold. The threshold and the second amplitude threshold can be the same or different, the first amplitude threshold can be greater than the second amplitude threshold if the audio signal is to be highlighted, and the second amplitude threshold can be greater than the second amplitude threshold if the speech signal is to be highlighted. an amplitude threshold, in addition, in order to ensure that the signal does not overflow after mixing, the first amplitude threshold and the second amplitude threshold can be set according to the overflow amplitude limit; then the audio signal after the amplitude adjustment and the voice signal are superimposed as All the way, play the signal superimposed as one way.

第二种,直接将所述音频信号与所述语音信号叠加为一路,判断叠加后的信号是否发生溢出,若未发生溢出,则不做其他处理;若发生了溢出,则可以将叠加后溢出的信号进行衰减处理,例如计算溢出信号值对应的衰减因子,根据该衰减因子对溢出信号进行衰减处理,最后播放叠加为一路的信号。The second is to directly superimpose the audio signal and the voice signal into one channel, and determine whether the superimposed signal overflows. If no overflow occurs, no other processing is performed; if an overflow occurs, the superimposed overflow The signal is attenuated, for example, the attenuation factor corresponding to the overflow signal value is calculated, the overflow signal is attenuated according to the attenuation factor, and finally the superimposed signal is played.

下面分别说明当音频信号为背景音乐以及当音频信号为音效时本发明实施例提供的直播声音处理方法。The following describes the live broadcast sound processing method provided by the embodiment of the present invention when the audio signal is background music and when the audio signal is sound effect.

参阅图4a至图4d,图4a至图4d为当用户所选择的音频信号为背景音乐时的效果展示图。图4a所示的直播界面,可以在该直播界面设置氛围管理器,用户可以点击直播界面上的氛围管理器进入氛围管理界面,氛围管理界面如图4b 所示,包括背景音乐选项和音效选项,用户确定选择的音频文件的类型,当用户选择背景音乐选项之后,界面可如图4c显示,用户可以输入想要的背景音乐文件的名称(例如“下雨了”),移动终端获取用户所需的背景音乐文件;具体实现中,移动终端可以根据用户的输入连接网络从服务器获取该背景音乐文件,而如果移动终端的本地存储中存储有该背景音乐文件时,移动终端也可以从自身的本地存储中获取该背景音乐文件,以实现背景音乐文件的快速获取。背景音乐文件获取之后,保存在背景音乐选项对应的文件列表中。在移动终端获取该背景音乐文件之后,用户可以点击播放该背景音乐文件,移动终端解码该背景音乐文件得到背景音乐,具体可以将背景音乐文件解码成脉冲编码调制 (Pulse-code modulation,PCM)格式的信号,背景音乐的播放界面可如图4d 所示。Referring to FIGS. 4 a to 4 d , FIGS. 4 a to 4 d are diagrams showing effects when the audio signal selected by the user is background music. In the live broadcast interface shown in Figure 4a, an atmosphere manager can be set on the live broadcast interface. Users can click the atmosphere manager on the live broadcast interface to enter the atmosphere management interface. The atmosphere management interface is shown in Figure 4b, including background music options and sound effects options. The user determines the type of the selected audio file. After the user selects the background music option, the interface can be shown in Figure 4c. The background music file; in the specific implementation, the mobile terminal can connect the network to obtain the background music file from the server according to the user's input, and if the local storage of the mobile terminal stores the background music file, the mobile terminal can also obtain the background music file from its own local The background music file is acquired in the storage, so as to realize the rapid acquisition of the background music file. After the background music file is acquired, it is saved in the file list corresponding to the background music option. After the mobile terminal acquires the background music file, the user can click to play the background music file, and the mobile terminal decodes the background music file to obtain the background music. Specifically, the background music file can be decoded into a pulse-code modulation (PCM) format. signal, the playing interface of background music can be shown in Figure 4d.

与此同时移动终端可以利用麦克风采集用户的语音信号,采用预设工具对所述背景音乐或所述语音信号进行音频处理,所述预设工具包括变声器和声音滤镜,以得到高质量的背景音乐信号或语音信号,将该背景音乐信号与该语音信号进行混音并播放。At the same time, the mobile terminal can use the microphone to collect the user's voice signal, and use a preset tool to perform audio processing on the background music or the voice signal. The preset tool includes a voice changer and a voice filter, so as to obtain high-quality sound A background music signal or a voice signal, the background music signal and the voice signal are mixed and played.

如果没有预先将背景音乐文件解码缓存,而是在直播的过程中进行实时解码,则可以将背景音乐文件分段解码。由于解码背景音乐文件比较耗时,例如背景音乐文件采用MP3文件,完全解码三分钟时长的MP3文件需要三秒钟左右,如果将背景音乐文件全部解码完成后,再进行背景音乐的播放,就会使用户感觉到有较长的时延,因此,可以对背景音乐文件进行分段解码,先解码得到预置长度的背景音乐信号,如预置长度设置为12800字节,解码12800字节通常只需要花费几十毫秒,解码预置长度的背景音乐信号之后,即将用户的语音信号与背景音乐信号进行混音并播放。播放音乐的速度一般慢于解码速度,因此先解码得到预置长度的背景音乐信号后就可以边解码边播放,这样就解决了用户感觉到较长时延的问题,用户可以在选择背景音乐播放功能后马上就可以听到播放的背景音乐。If the background music file is not decoded and cached in advance, but is decoded in real time during the live broadcast, the background music file can be decoded in segments. Since it is time-consuming to decode background music files, for example, MP3 files are used as background music files, and it takes about three seconds to fully decode a three-minute MP3 file. Make users feel that there is a long time delay, therefore, the background music file can be decoded in segments, and the background music signal with preset length can be obtained by decoding first. It takes tens of milliseconds to decode the background music signal of the preset length, mix the user's voice signal with the background music signal and play it. The speed of playing music is generally slower than the decoding speed. Therefore, after decoding the background music signal with a preset length, you can play it while decoding. This solves the problem that the user feels a long delay. The user can select the background music to play. You can hear the background music playing immediately after the function is activated.

在播放过程中,如图4d所示,可以显示背景音乐播放进度,还可以暂停背景音乐的播放。另外,用户可以根据实际需求触摸背景音乐的音量按钮,移动终端根据音量按钮状态的变化对所述背景音乐的音量进行调节,在调高音量时,可以根据预设淡入步长逐渐增加音量,在调低音量时,可以根据预设淡出步长逐渐减小音量,以使得音量在不同状态间切换时,有淡入淡出效果做过渡,背景音乐的音量控制与麦克风的音量控制可以独立开来,以实现背景音乐音量的调整不影响麦克风音轨录制。During the playing process, as shown in Figure 4d, the playing progress of the background music can be displayed, and the playing of the background music can also be paused. In addition, the user can touch the volume button of the background music according to actual needs, and the mobile terminal adjusts the volume of the background music according to the change of the state of the volume button. When the volume is increased, the volume can be gradually increased according to the preset fade-in step. When lowering the volume, you can gradually reduce the volume according to the preset fade-out step, so that when the volume is switched between different states, there is a fade-in and fade-out effect as a transition. The volume control of the background music and the volume control of the microphone can be independent to The adjustment of the background music volume does not affect the recording of the microphone audio track.

当用户想要删除某个背景音乐文件时,可以点击氛围管理器,进入背景音乐选项,查看列表中的所有背景音乐文件,删除所需要删除的背景音乐文件即可。When the user wants to delete a certain background music file, he can click the atmosphere manager, enter the background music option, view all the background music files in the list, and delete the background music file that needs to be deleted.

图5a至图5d为当用户所选择的音频信号为音效时的效果展示图。图5a所示的直播界面,可以在该直播界面设置氛围管理器,用户可以点击直播界面上的氛围管理器进入氛围管理界面,氛围管理界面如图5b所示,包括背景音乐选项和音效选项,用户确定选择的音频文件的类型,当用户选择音效选项之后,界面可如图5c显示,包括移动终端根据运营推荐从服务器或本地存储中筛选出来的精品音效文件,用户可以添加所选择的音效文件为常用音效文件,例如添加生命奖励、跳跃声、吃金币等为常用音效文件,移动终端将用户添加的音效文件保存在音效选项对应的文件列表中,用户可以点击播放所需的音效文件,移动终端解码该音效文件得到音效信号,具体可以将音效文件解码成脉冲编码调制(Pulse-codemodulation,PCM)格式的信号,音效的播放界面可如图5d所示。5a to 5d are diagrams showing effects when the audio signal selected by the user is a sound effect. In the live broadcast interface shown in Figure 5a, an atmosphere manager can be set on the live broadcast interface. Users can click the atmosphere manager on the live broadcast interface to enter the atmosphere management interface. The atmosphere management interface is shown in Figure 5b, including background music options and sound effects options. The user determines the type of the selected audio file. When the user selects the sound effect option, the interface can be shown in Figure 5c, including the high-quality sound effect files screened out by the mobile terminal from the server or local storage according to the operation recommendation, and the user can add the selected sound effect files. Commonly used sound effects files, such as adding life rewards, jumping sounds, eating gold coins, etc. are commonly used sound effects files. The mobile terminal saves the sound effect files added by the user in the file list corresponding to the sound effect option. The user can click to play the desired sound effect file, move The terminal decodes the sound effect file to obtain a sound effect signal. Specifically, the sound effect file may be decoded into a signal in a pulse-code modulation (Pulse-codemodulation, PCM) format. The sound effect playback interface is shown in FIG. 5d.

与此同时移动终端可以利用麦克风采集用户的语音信号,采用预设工具对所述音效或所述语音信号进行音频处理,所述预设工具包括变声器和声音滤镜,以得到高质量的音效信号或语音信号,将该音效信号与该语音信号进行混音并播放。At the same time, the mobile terminal can use the microphone to collect the user's voice signal, and use a preset tool to perform audio processing on the sound effect or the voice signal. The preset tool includes a voice changer and a voice filter to obtain high-quality sound effects. signal or voice signal, mix the sound effect signal with the voice signal and play.

在播放过程中,如图5d所示,可以显示音效播放进度,还可以暂停音效的播放。另外,用户可以根据实际需求触摸音效的音量按钮,移动终端根据音量按钮状态的变化对所述音效的音量进行调节,在调高音量时,可以根据预设淡入步长逐渐增加音量,在调低音量时,可以根据预设淡出步长逐渐减小音量,以使得音量在不同状态间切换时,有淡入淡出效果做过渡,音效的音量控制与麦克风的音量控制可以独立开来,以实现音效音量的调整不影响麦克风音轨录制。During the playback, as shown in FIG. 5d, the playback progress of the sound effect can be displayed, and the playback of the sound effect can also be paused. In addition, the user can touch the volume button of the sound effect according to actual needs, and the mobile terminal adjusts the volume of the sound effect according to the change of the state of the volume button. When the volume is used, the volume can be gradually reduced according to the preset fade-out step, so that when the volume is switched between different states, there is a fade-in and fade-out effect for transition. Adjustments do not affect microphone audio track recording.

当用户想要取消某个音效文件时,可以点击氛围管理器,进入音效选项,查看列表中的所有音效文件,点击取消即可取消对应的音效文件。When the user wants to cancel a sound effect file, he can click the atmosphere manager, enter the sound effect option, view all the sound effect files in the list, and click Cancel to cancel the corresponding sound effect file.

需要说明的是,以上效果图仅为示意性展示,并不构成对本发明效果展示方式的最终限定。It should be noted that the above effect diagrams are only schematic representations, and do not constitute a final limitation on the manner of displaying the effects of the present invention.

即本实施例中,当用户想要使用背景音乐或音效来丰富直播氛围时,可以直接在直播界面的氛围管理器中选择所需的音频文件,点击播放即可,音频文件的获取和解码对用户来说是透明的,不影响整个直播过程,整个直播过程中,用户只需操作移动终端,不需要操作其他外放设备。That is, in this embodiment, when the user wants to use background music or sound effects to enrich the atmosphere of the live broadcast, he can directly select the desired audio file in the atmosphere manager of the live broadcast interface, and click to play. It is transparent to the user and does not affect the entire live broadcast process. During the entire live broadcast process, the user only needs to operate the mobile terminal and does not need to operate other external devices.

本实施例中,移动终端可以获取用户选择的音频文件,解码该音频文件得到音频信号,因而不再需要通过其他外放设备播放音频信号,也不再需要使用移动终端的麦克风采集该音频信号,在获取音频信号之后,可以调整移动终端的麦克风重点采集用户的语音信号,然后将所获取的音频信号与所采集的用户的语音信号进行混音并播放,因而能够提高最终输出信号的质量。In this embodiment, the mobile terminal can acquire the audio file selected by the user, decode the audio file to obtain the audio signal, so it is no longer necessary to play the audio signal through other external playback devices, and it is no longer necessary to use the microphone of the mobile terminal to collect the audio signal, After acquiring the audio signal, the microphone of the mobile terminal can be adjusted to focus on collecting the user's voice signal, and then the acquired audio signal and the collected user's voice signal are mixed and played, thereby improving the quality of the final output signal.

实施例三Embodiment 3

为了更好地实施以上方法,本发明还提供了一种移动终端,如图6所示,本实施例的移动终端包括:In order to better implement the above method, the present invention also provides a mobile terminal. As shown in FIG. 6 , the mobile terminal in this embodiment includes:

获取单元601,用于获取用户选择的音频文件;Obtaining unit 601, for obtaining the audio file selected by the user;

解码单元602,用于解码所述音频文件得到音频信号;a decoding unit 602, for decoding the audio file to obtain an audio signal;

采集单元603,用于采集所述用户的语音信号;a collection unit 603, configured to collect the voice signal of the user;

第一处理单元604,用于将所述音频信号与所述语音信号进行混音并播放。The first processing unit 604 is configured to mix and play the audio signal and the voice signal.

在一种可能的实现方式中,所述获取单元601具体用于,通过网络从服务器获取所述用户选择的音频文件,或者从所述移动终端的本地存储中获取所述用户选择的音频文件。In a possible implementation manner, the obtaining unit 601 is specifically configured to obtain the audio file selected by the user from a server through a network, or obtain the audio file selected by the user from the local storage of the mobile terminal.

在一种可能的实现方式中,所述解码单元602包括:In a possible implementation manner, the decoding unit 602 includes:

解析子单元,用于解析所述音频文件以获取所述音频文件的采样参数;a parsing subunit for parsing the audio file to obtain sampling parameters of the audio file;

解码子单元,用于根据所述音频文件的采样参数解码所述音频文件得到所述音频信号。A decoding subunit, configured to decode the audio file according to the sampling parameter of the audio file to obtain the audio signal.

在一种可能的实现方式中,所述音频文件的采用参数包括采样率、采样精度和声道模式;In a possible implementation manner, the adopted parameters of the audio file include sampling rate, sampling precision and channel mode;

所述解码子单元具体用于,计算所述音频文件的编码码率,所述编码码率为所述采样率、采样精度、声道模式三者的乘积,即码率=采样率*采样精度* 声道模式;解码是与编码相反的过程,根据编码码率解码所述音频文件即可得到所述音频信号。The decoding subunit is specifically used to calculate the encoding bit rate of the audio file, where the encoding bit rate is the product of the sampling rate, sampling precision, and channel mode, that is, bit rate=sampling rate*sampling precision * Channel mode; decoding is the reverse process of encoding, and the audio signal can be obtained by decoding the audio file according to the encoding bit rate.

其中,采用率,也称为采样速度或者采样频率,定义了单位时间内的采样个数,它用赫兹(Hz)来表示,对于声音信号,采样率可以用来描述声音文件的音质、音调,是衡量声卡、声音文件的质量标准。采样率越高,即采样的间隔时间越短,则在单位时间内得到的样本数据就越多,对信号波形的表示也越精确。采样率与原始信号频率之间有一定的关系,根据奈奎斯特理论,只有采样率高于原始信号最高频率的两倍时,才能把数字信号表示的信号还原成为原来信号。Among them, the adoption rate, also known as sampling speed or sampling frequency, defines the number of samples per unit time, which is expressed in Hertz (Hz). For sound signals, the sampling rate can be used to describe the sound quality and pitch of the sound file. It is a quality standard for measuring sound cards and sound files. The higher the sampling rate, that is, the shorter the sampling interval, the more sample data can be obtained per unit time, and the more accurate the representation of the signal waveform. There is a certain relationship between the sampling rate and the frequency of the original signal. According to Nyquist theory, only when the sampling rate is higher than twice the highest frequency of the original signal can the signal represented by the digital signal be restored to the original signal.

采样精度,它反映度量声音波形幅度的精度,以位(Bit)为单位,比如8位、 16位。8位可以把声波分成256级,16位可以把同样的波分成65,536级的信号。例如,每个声音样本用16位(2字节)表示,测得的声音样本值是在0~65535的范围里,它的精度就是输入信号的1/65536。样本位数的大小影响到声音的质量,位数越多,声音的质量越高,而需要的存储空间也越多;位数越少,声音的质量越低,需要的存储空间越少。Sampling accuracy, which reflects the accuracy of measuring the amplitude of the sound waveform, in bits (Bit), such as 8 bits, 16 bits. 8 bits can divide a sound wave into 256 levels, and 16 bits can divide the same wave into a signal of 65,536 levels. For example, each sound sample is represented by 16 bits (2 bytes), the measured sound sample value is in the range of 0 to 65535, and its precision is 1/65536 of the input signal. The size of the sample bits affects the quality of the sound. The more bits, the higher the quality of the sound, and the more storage space required; the fewer the bits, the lower the quality of the sound, and the less storage space required.

声道模式,分为单声道或双声道,单声道取值为1,双声道取值为2。Channel mode, divided into single channel or dual channel, the value of single channel is 1, and the value of dual channel is 2.

在获得所述音频文件的采样参数之后,采集单元603可以根据获取的音频文件的采样参数来设置麦克风采集用户的语音信号的采样参数,根据设置的采样参数,获取来自麦克风的语音信号,从而使得所述音频信号与所述语音信号具有相同的采样参数,以便于后续进行混音处理。After obtaining the sampling parameters of the audio file, the collection unit 603 may set the sampling parameters for the microphone to collect the user's voice signal according to the obtained sampling parameters of the audio file, and obtain the voice signal from the microphone according to the set sampling parameters, so that The audio signal and the speech signal have the same sampling parameters, so as to facilitate subsequent sound mixing processing.

在一种可能的实现方式中,所述音频信号的格式包括脉冲编码调制PCM 格式和波形WAV格式,所述音频信号包括背景音乐或音效。In a possible implementation manner, the format of the audio signal includes a pulse code modulation PCM format and a waveform WAV format, and the audio signal includes background music or sound effects.

在一种可能的实现方式中,所述移动终端还包括:In a possible implementation manner, the mobile terminal further includes:

音量调节单元,根据音量按钮状态的变化对所述背景音乐或音效的音量进行调节,在调高音量时,根据预设淡入步长逐渐增加音量,在调低音量时,根据预设淡出步长逐渐减小音量。The volume adjustment unit adjusts the volume of the background music or sound effect according to the change of the state of the volume button, when the volume is increased, the volume is gradually increased according to the preset fade-in step size, and when the volume is decreased, the volume is gradually increased according to the preset fade-out step size Gradually decrease the volume.

在一种可能的实现方式中,所述移动终端还包括:In a possible implementation manner, the mobile terminal further includes:

第二处理单元,用于对所述音频信号或所述语音信号进行变声、滤波、降噪处理。The second processing unit is configured to perform voice changing, filtering and noise reduction processing on the audio signal or the voice signal.

在一种可能的实现方式中,所述第一处理单元604包括:In a possible implementation manner, the first processing unit 604 includes:

幅度调整子单元,用于将所述音频信号的幅度调整为第一幅度阈值,将所述语音信号的幅度调整为第二幅度阈值;an amplitude adjustment subunit, configured to adjust the amplitude of the audio signal to a first amplitude threshold, and to adjust the amplitude of the speech signal to a second amplitude threshold;

叠加子单元,用于将幅度调整后的所述音频信号与所述语音信号叠加为一路;A superimposing subunit, used for superimposing the audio signal and the voice signal after the amplitude adjustment into one channel;

播放子单元,用于播放叠加为一路的信号。The playback sub-unit is used to play the signals that are superimposed into one channel.

在一种可能的实现方式中,所述第一处理单元604包括:In a possible implementation manner, the first processing unit 604 includes:

叠加子单元,用于将所述音频信号与所述语音信号叠加为一路;a superimposing subunit, used for superimposing the audio signal and the voice signal into one channel;

衰减子单元,用于将叠加后溢出的信号进行衰减处理;The attenuation subunit is used to attenuate the overflowed signal after superposition;

播放子单元,用于播放叠加为一路的信号。The playback sub-unit is used to play the signals that are superimposed into one channel.

需要说明的是,上述实施例提供的移动终端在处理直播声音时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的移动终端与直播声音处理方法属于同一构思,其具体实现过程详见方法实施例,此处不再赘述。It should be noted that, when the mobile terminal provided in the above-mentioned embodiment processes live sound, only the division of the above-mentioned functional modules is used as an example. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the mobile terminal and the live sound processing method provided by the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

本实施例中,移动终端的获取单元可以获取用户选择的音频文件,解码单元解码该音频文件得到音频信号,因而不再需要通过其他外放设备播放音频信号,也不再需要使用移动终端的麦克风采集该音频信号,在获取音频信号之后,采集单元可以调整移动终端的麦克风重点采集用户的语音信号,然后由混音播放单元将所获取的音频信号与所采集的用户的语音信号进行混音并播放,因而能够提高最终输出信号的质量。In this embodiment, the acquisition unit of the mobile terminal can acquire the audio file selected by the user, and the decoding unit decodes the audio file to obtain the audio signal, so it is no longer necessary to play the audio signal through other external playback devices, and it is no longer necessary to use the microphone of the mobile terminal After collecting the audio signal, after obtaining the audio signal, the collecting unit can adjust the microphone of the mobile terminal to focus on collecting the user's voice signal, and then the mixing and playing unit mixes the obtained audio signal with the collected user's voice signal and mixes it. playback, thus improving the quality of the final output signal.

实施例四Embodiment 4

相应的,本发明实施例还提供了一种移动终端,如图7所示,该移动终端可以包括射频(RF,Radio Frequency)电路701、包括有一个或一个以上计算机可读存储介质的存储器702、输入单元703、显示单元704、传感器705、音频电路706、无线保真(WiFi,WirelessFidelity)模块707、包括有一个或者一个以上处理核心的处理器708、以及电源709等部件。本领域技术人员可以理解,图7中示出的移动终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Correspondingly, an embodiment of the present invention further provides a mobile terminal. As shown in FIG. 7 , the mobile terminal may include a radio frequency (RF, Radio Frequency) circuit 701 and a memory 702 including one or more computer-readable storage media. , an input unit 703, a display unit 704, a sensor 705, an audio circuit 706, a wireless fidelity (WiFi, Wireless Fidelity) module 707, a processor 708 including one or more processing cores, and a power supply 709 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 7 does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components. in:

RF电路701可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器708处理;另外,将涉及上行的数据发送给基站。通常,RF电路701包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路701还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统 (GSM,Global System of Mobile communication)、通用分组无线服务(GPRS, GeneralPacket Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long TermEvolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。The RF circuit 701 can be used for receiving and sending signals during the process of sending and receiving information or talking. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 708 for processing; in addition, it sends the data related to the uplink to the base station. . Typically, the RF circuit 701 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc. In addition, the RF circuit 701 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM, Global System of Mobile communication), General Packet Radio Service (GPRS, General Packet Radio Service), Code Division Multiple Access (CDMA, Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long TermEvolution), email, Short Messaging Service (SMS, Short Messaging Service), etc.

存储器702可用于存储软件程序以及模块,处理器708通过运行存储在存储器702的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器 702可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本等) 等。此外,存储器702可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器702还可以包括存储器控制器,以提供处理器708和输入单元 703对存储器702的访问。The memory 702 can be used to store software programs and modules, and the processor 708 executes various functional applications and data processing by running the software programs and modules stored in the memory 702 . The memory 702 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data (such as audio data, phonebook, etc.) created by the use of the mobile terminal, etc. Additionally, memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 702 may also include a memory controller to provide processor 708 and input unit 703 access to memory 702.

输入单元703可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元703可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作 (比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器708,并能接收处理器708发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元703还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 703 can be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 703 may include a touch-sensitive surface as well as other input devices. A touch-sensitive surface, also known as a touch display or trackpad, collects the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable operation near the surface), and drive the corresponding connection device according to the preset program. Alternatively, the touch-sensitive surface may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 708, and can receive the command sent by the processor 708 and execute it. Additionally, touch-sensitive surfaces can be implemented using resistive, capacitive, infrared, and surface acoustic wave types. In addition to touch-sensitive surfaces, input unit 703 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元704可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元704可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器708 以确定触摸事件的类型,随后处理器708根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图7中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display unit 704 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, videos and any combination thereof. The display unit 704 may include a display panel, and optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface may cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 708 to determine the type of the touch event, and then the processor 708 displays the touch event according to the type of the touch event. The corresponding visual output is provided on the panel. Although in FIG. 7 the touch-sensitive surface and the display panel are implemented as two separate components to implement the input and input functions, in some embodiments, the touch-sensitive surface and the display panel may be integrated to implement the input and output functions.

终端还可包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or the backlight when the terminal is moved to the ear . As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. Repeat.

音频电路706、扬声器,传声器可提供用户与终端之间的音频接口。音频电路706可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路706接收后转换为音频数据,再将音频数据输出处理器708处理后,经 RF电路701以发送给比如另一终端,或者将音频数据输出至存储器702以便进一步处理。音频电路706还可能包括耳塞插孔,以提供外设耳机与终端的通信。Audio circuit 706, speakers, and microphones may provide an audio interface between the user and the terminal. The audio circuit 706 can convert the received audio data into an electrical signal, and transmit it to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is converted after being received by the audio circuit 706 In the form of audio data, the audio data is output to the processor 708 for processing, and then sent to, for example, another terminal via the RF circuit 701, or the audio data is output to the memory 702 for further processing. The audio circuit 706 may also include an earphone jack to provide communication between peripheral headphones and the terminal.

WiFi属于短距离无线传输技术,移动终端通过WiFi模块707可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块707,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the mobile terminal can help users to send and receive emails, browse web pages, access streaming media, etc. through the WiFi module 707, which provides users with wireless broadband Internet access. Although FIG. 7 shows the WiFi module 707, it can be understood that it is not a necessary component of the terminal, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器708是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器702内的软件程序和/或模块,以及调用存储在存储器702内的数据,执行终端的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器708可包括一个或多个处理核心;优选的,处理器708可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器708中。The processor 708 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 702, and calls the data stored in the memory 702. , perform various functions of the terminal and process data, so as to monitor the mobile phone as a whole. Optionally, the processor 708 may include one or more processing cores; preferably, the processor 708 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that the above-mentioned modulation and demodulation processor may not be integrated into the processor 708 .

移动终端还包括给各个部件供电的电源709(比如电池),优选的,电源可以通过电源管理系统与处理器708逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源709还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal also includes a power supply 709 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 708 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. Power supply 709 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

尽管未示出,移动终端还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端中的处理器708会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器702中,并由处理器 708来运行存储在存储器702中的应用程序,从而实现各种功能:Although not shown, the mobile terminal may also include a camera, a Bluetooth module, and the like, which will not be repeated here. Specifically, in this embodiment, the processor 708 in the mobile terminal loads the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 708 executes them and stores them in the memory 702. The application program in the memory 702, thereby realizing various functions:

获取用户选择的音频文件;解码所述音频文件得到音频信号;采集所述用户的语音信号;将所述音频信号与所述语音信号进行混音并播放。Acquire the audio file selected by the user; decode the audio file to obtain an audio signal; collect the user's voice signal; mix the audio signal and the voice signal and play.

所述音频文件可以通过网络从服务器获取,或者所述音频文件可以从所述移动终端的本地存储中获取,所述音频信号包括背景音乐或音效。The audio file may be acquired from a server through a network, or the audio file may be acquired from a local storage of the mobile terminal, and the audio signal includes background music or sound effects.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

以上对本发明实施例所提供的一种直播声音处理方法及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above provides a detailed introduction to a live sound processing method and a mobile terminal provided by the embodiments of the present invention. The principles and implementations of the present invention are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understanding The method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this description should not be understood to limit the present invention.

Claims (19)

1.一种直播声音处理方法,其特征在于,包括:1. a method for processing live sound, comprising: 在用户通过直播软件进入直播界面之后,获取所述用户选择的音频文件,包括:根据所述用户在所述直播界面的氛围管理器输入的音频文件的标识获取所述用户选择的音频文件;After the user enters the live broadcast interface through the live broadcast software, acquiring the audio file selected by the user includes: acquiring the audio file selected by the user according to the identifier of the audio file input by the user in the atmosphere manager of the live broadcast interface; 实时解码所述音频文件得到音频信号,包括:对所述音频文件分段解码,得到预置长度的音频信号;同时采集所述用户的语音信号;Decoding the audio file in real time to obtain an audio signal, comprising: decoding the audio file segmentally to obtain an audio signal of a preset length; simultaneously collecting the user's voice signal; 将所述音频信号与所述语音信号进行混音并播放,包括:将所述预置长度的音频信号与所述语音信号进行实时混音并播放。Mixing and playing the audio signal and the voice signal includes: mixing and playing the audio signal of the preset length in real time with the voice signal. 2.根据权利要求1所述的方法,其特征在于,所述获取所述用户选择的音频文件包括:通过网络从服务器获取所述用户选择的音频文件,或者从移动终端的本地存储中获取所述用户选择的音频文件。2. The method according to claim 1, wherein the acquiring the audio file selected by the user comprises: acquiring the audio file selected by the user from a server through a network, or acquiring the audio file selected by the local storage of the mobile terminal. the audio file selected by the user. 3.根据权利要求1所述的方法,其特征在于,所述实时解码所述音频文件得到音频信号包括:3. The method according to claim 1, wherein the real-time decoding of the audio file to obtain an audio signal comprises: 解析所述音频文件以获取所述音频文件的采样参数;parsing the audio file to obtain sampling parameters of the audio file; 根据所述音频文件的采样参数解码所述音频文件得到所述音频信号。The audio signal is obtained by decoding the audio file according to the sampling parameters of the audio file. 4.根据权利要求3所述的方法,其特征在于,所述音频文件的采样参数包括采样率、采样精度和声道模式,所述根据所述音频文件的采样参数解码所述音频文件得到所述音频信号包括:4. The method according to claim 3, wherein the sampling parameters of the audio file include sampling rate, sampling precision and channel mode, and the audio file is decoded according to the sampling parameters of the audio file to obtain the obtained data. The audio signal includes: 计算所述音频文件的编码码率,所述编码码率为所述采样率、采样精度、声道模式三者的乘积;Calculate the encoding bit rate of the audio file, where the encoding bit rate is the product of the sampling rate, sampling precision, and channel mode; 根据所述编码码率解码所述音频文件得到所述音频信号。The audio signal is obtained by decoding the audio file according to the encoding bit rate. 5.根据权利要求1至4任意一项所述的方法,其特征在于,所述音频信号的格式包括脉冲编码调制PCM格式和波形WAV格式,所述音频信号包括背景音乐或音效。5. The method according to any one of claims 1 to 4, wherein the format of the audio signal includes a pulse code modulation PCM format and a waveform WAV format, and the audio signal includes background music or sound effects. 6.根据权利要求5所述的方法,其特征在于,在解码所述音频文件得到音频信号之后,所述方法还包括:6. The method according to claim 5, wherein after decoding the audio file to obtain the audio signal, the method further comprises: 根据音量按钮状态的变化对所述背景音乐或音效的音量进行调节,在调高音量时,根据预设淡入步长逐渐增加音量,在调低音量时,根据预设淡出步长逐渐减小音量。The volume of the background music or sound effect is adjusted according to the change of the state of the volume button, when the volume is increased, the volume is gradually increased according to the preset fade-in step, and when the volume is decreased, the volume is gradually decreased according to the preset fade-out step . 7.根据权利要求1所述的方法,其特征在于,在将所述音频信号与所述语音信号进行混音并播放之前,所述方法还包括:7. The method according to claim 1, wherein before the audio signal and the voice signal are mixed and played, the method further comprises: 对所述音频信号或所述语音信号进行变声、滤波、降噪处理。Perform voice changing, filtering, and noise reduction processing on the audio signal or the speech signal. 8.根据权利要求1所述的方法,其特征在于,将所述音频信号与所述语音信号进行混音并播放包括:8. The method according to claim 1, wherein mixing and playing the audio signal and the voice signal comprises: 将所述音频信号的幅度调整为第一幅度阈值,将所述语音信号的幅度调整为第二幅度阈值;adjusting the amplitude of the audio signal to a first amplitude threshold, and adjusting the amplitude of the voice signal to a second amplitude threshold; 将幅度调整后的所述音频信号与所述语音信号叠加为一路;superimposing the audio signal after the amplitude adjustment and the voice signal into one channel; 播放叠加为一路的信号。Play the signal superimposed as one. 9.根据权利要求1所述的方法,其特征在于,将所述音频信号与所述语音信号进行混音并播放包括:9. The method according to claim 1, wherein mixing and playing the audio signal and the voice signal comprises: 将所述音频信号与所述语音信号叠加为一路;superimposing the audio signal and the voice signal into one channel; 将叠加后溢出的信号进行衰减处理;Attenuate the overflowed signal after superposition; 播放叠加为一路的信号。Play the signal superimposed as one. 10.一种移动终端,其特征在于,包括:10. A mobile terminal, comprising: 获取单元,用于在用户通过直播软件进入直播界面之后,获取所述用户选择的音频文件,包括:根据所述用户在所述直播界面的氛围管理器输入的音频文件的标识获取所述用户选择的音频文件;an obtaining unit, configured to obtain the audio file selected by the user after the user enters the live broadcast interface through the live broadcast software, including: obtaining the user selected audio file according to the identifier of the audio file input by the user in the atmosphere manager of the live broadcast interface audio files; 解码单元,用于实时解码所述音频文件得到音频信号,包括:对所述音频文件分段解码,得到预置长度的音频信号;a decoding unit, used for decoding the audio file in real time to obtain an audio signal, including: segment decoding the audio file to obtain an audio signal of a preset length; 采集单元,用于同时采集所述用户的语音信号;an acquisition unit for simultaneously acquiring the voice signal of the user; 第一处理单元,用于将所述音频信号与所述语音信号进行混音并播放,包括:将所述预置长度的音频信号与所述语音信号进行实时混音并播放。The first processing unit, configured to mix and play the audio signal and the voice signal, includes: mixing and playing the audio signal of the preset length and the voice signal in real time. 11.根据权利要求10所述的移动终端,其特征在于,所述获取单元具体用于,通过网络从服务器获取所述用户选择的音频文件,或者从所述移动终端的本地存储中获取所述用户选择的音频文件。11 . The mobile terminal according to claim 10 , wherein the acquiring unit is specifically configured to acquire the audio file selected by the user from a server through a network, or acquire the audio file from a local storage of the mobile terminal. 12 . User selected audio file. 12.根据权利要求10所述的移动终端,其特征在于,所述解码单元包括:12. The mobile terminal according to claim 10, wherein the decoding unit comprises: 解析子单元,用于解析所述音频文件以获取所述音频文件的采样参数;a parsing subunit for parsing the audio file to obtain sampling parameters of the audio file; 解码子单元,用于根据所述音频文件的采样参数解码所述音频文件得到所述音频信号。A decoding subunit, configured to decode the audio file according to the sampling parameter of the audio file to obtain the audio signal. 13.根据权利要求12所述的移动终端,其特征在于,所述音频文件的采样参数包括采样率、采样精度和声道模式;13. The mobile terminal according to claim 12, wherein the sampling parameters of the audio file include sampling rate, sampling precision and channel mode; 所述解码子单元具体用于,计算所述音频文件的编码码率,所述编码码率为所述采样率、采样精度、声道模式三者的乘积;根据所述编码码率解码所述音频文件得到所述音频信号。The decoding subunit is specifically configured to calculate the encoding bit rate of the audio file, where the encoding bit rate is the product of the sampling rate, sampling precision, and channel mode; decode the encoding bit rate according to the encoding bit rate. The audio file gets the audio signal. 14.根据权利要求10至13任意一项所述的移动终端,其特征在于,所述音频信号的格式包括脉冲编码调制PCM格式和波形WAV格式,所述音频信号包括背景音乐或音效。14. The mobile terminal according to any one of claims 10 to 13, wherein the format of the audio signal includes a pulse code modulation PCM format and a waveform WAV format, and the audio signal includes background music or sound effects. 15.根据权利要求14所述的移动终端,其特征在于,所述移动终端还包括:15. The mobile terminal according to claim 14, wherein the mobile terminal further comprises: 音量调节单元,根据音量按钮状态的变化对所述背景音乐或音效的音量进行调节,在调高音量时,根据预设淡入步长逐渐增加音量,在调低音量时,根据预设淡出步长逐渐减小音量。The volume adjustment unit adjusts the volume of the background music or sound effect according to the change of the state of the volume button, when the volume is increased, the volume is gradually increased according to the preset fade-in step size, and when the volume is decreased, the volume is gradually increased according to the preset fade-out step size Gradually decrease the volume. 16.根据权利要求10所述的移动终端,其特征在于,所述移动终端还包括:16. The mobile terminal according to claim 10, wherein the mobile terminal further comprises: 第二处理单元,用于对所述音频信号或所述语音信号进行变声、滤波、降噪处理。The second processing unit is configured to perform voice changing, filtering and noise reduction processing on the audio signal or the voice signal. 17.根据权利要求10所述的移动终端,其特征在于,所述第一处理单元包括:17. The mobile terminal according to claim 10, wherein the first processing unit comprises: 幅度调整子单元,用于将所述音频信号的幅度调整为第一幅度阈值,将所述语音信号的幅度调整为第二幅度阈值;an amplitude adjustment subunit, configured to adjust the amplitude of the audio signal to a first amplitude threshold, and to adjust the amplitude of the speech signal to a second amplitude threshold; 叠加子单元,用于将幅度调整后的所述音频信号与所述语音信号叠加为一路;A superimposing subunit, used for superimposing the audio signal and the voice signal after the amplitude adjustment into one channel; 播放子单元,用于播放叠加为一路的信号。The playback sub-unit is used to play the signals that are superimposed into one channel. 18.根据权利要求10所述的移动终端,其特征在于,所述第一处理单元包括:18. The mobile terminal according to claim 10, wherein the first processing unit comprises: 叠加子单元,用于将所述音频信号与所述语音信号叠加为一路;a superimposing subunit, used for superimposing the audio signal and the voice signal into one channel; 衰减子单元,用于将叠加后溢出的信号进行衰减处理;The attenuation subunit is used to attenuate the overflowed signal after superposition; 播放子单元,用于播放叠加为一路的信号。The playback sub-unit is used to play the signals that are superimposed into one channel. 19.一种存储介质,其上存储有计算机程序,其特征在于,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至9任一项所述的直播声音处理方法。19. A storage medium having a computer program stored thereon, characterized in that, when the computer program is run on a computer, the computer is made to execute the live sound processing method according to any one of claims 1 to 9 .
CN201610377817.XA 2016-05-31 2016-05-31 A kind of live sound processing method and mobile terminal Active CN105872253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610377817.XA CN105872253B (en) 2016-05-31 2016-05-31 A kind of live sound processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610377817.XA CN105872253B (en) 2016-05-31 2016-05-31 A kind of live sound processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105872253A CN105872253A (en) 2016-08-17
CN105872253B true CN105872253B (en) 2020-07-07

Family

ID=56643164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610377817.XA Active CN105872253B (en) 2016-05-31 2016-05-31 A kind of live sound processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105872253B (en)

Families Citing this family (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331736A (en) * 2016-08-24 2017-01-11 武汉斗鱼网络科技有限公司 Live client speech processing system and processing method thereof
CN106375846B (en) * 2016-09-19 2019-06-18 北京小米移动软件有限公司 Method and device for processing live audio
CN106406809B (en) * 2016-12-21 2023-06-23 维沃移动通信有限公司 Sound signal processing method and mobile terminal
CN106851394A (en) * 2017-01-18 2017-06-13 广东小天才科技有限公司 Background music switching method and device
CN107027050B (en) * 2017-04-13 2020-11-20 广州华多网络科技有限公司 Audio and video processing method and device for assisting live broadcast
CN107295169A (en) * 2017-06-19 2017-10-24 奇酷互联网络科技(深圳)有限公司 The optimization method and equipment and mobile terminal of a kind of background sound
CN109413492B (en) * 2017-08-18 2021-05-28 武汉斗鱼网络科技有限公司 Audio data reverberation processing method and system in live broadcast process
CN109559763B (en) * 2017-09-26 2021-01-15 华为技术有限公司 Real-time digital audio signal sound mixing method and device
CN107863095A (en) 2017-11-21 2018-03-30 广州酷狗计算机科技有限公司 Acoustic signal processing method, device and storage medium
CN108156575B (en) 2017-12-26 2019-09-27 广州酷狗计算机科技有限公司 Processing method, device and the terminal of audio signal
CN108156561B (en) 2017-12-26 2020-08-04 广州酷狗计算机科技有限公司 Audio signal processing method and device and terminal
CN108235052A (en) * 2018-01-09 2018-06-29 安徽小马创意科技股份有限公司 Multi-audio-frequency channel hardware audio mixing, acquisition and the method for broadcasting may be selected based on IOS
CN108111872B (en) * 2018-01-09 2021-01-01 武汉斗鱼网络科技有限公司 Audio live broadcasting system
CN108235047B (en) * 2018-01-30 2021-02-12 广州方硅信息技术有限公司 Audio playing method of live broadcast room and anchor terminal equipment
CN110166794B (en) * 2018-04-26 2021-11-16 腾讯科技(深圳)有限公司 Live broadcast audio processing method, device and system
CN110505496A (en) * 2018-05-16 2019-11-26 腾讯科技(深圳)有限公司 Live-broadcast control method and device, storage medium and electronic device
CN108520761A (en) * 2018-06-28 2018-09-11 广州优谷信息技术有限公司 A kind of bright read apparatus and sound effect treatment method with sound regulatory function
CN110767203B (en) * 2018-07-27 2022-10-28 北京达佳互联信息技术有限公司 Audio processing method and device, mobile terminal and storage medium
CN108965757B (en) * 2018-08-02 2021-04-06 广州酷狗计算机科技有限公司 Video recording method, device, terminal and storage medium
CN109036457B (en) 2018-09-10 2021-10-08 广州酷狗计算机科技有限公司 Method and apparatus for restoring audio signal
CN109257493B (en) * 2018-09-15 2021-04-16 深圳市创成微电子有限公司 Audio processing device control system based on APP
CN110910892A (en) * 2018-09-17 2020-03-24 北京京东尚科信息技术有限公司 Conference system terminal, audio data processing method and teleconference system
CN109410970A (en) * 2018-10-12 2019-03-01 北京微播视界科技有限公司 Method and apparatus for generating audio data
CN109547844A (en) * 2018-12-19 2019-03-29 网宿科技股份有限公司 Audio/video pushing method and plug-flow client based on WebRTC agreement
CN109451329B (en) * 2019-01-16 2021-01-29 广州市千钧网络科技有限公司 Audio mixing processing method and device
CN109788139A (en) * 2019-03-05 2019-05-21 北京会播科技有限公司 Mobile phone with direct broadcast function
CN110119264B (en) * 2019-05-21 2023-03-31 北京达佳互联信息技术有限公司 Sound effect adjusting method, device and storage medium
CN110677716B (en) * 2019-08-20 2022-02-01 咪咕音乐有限公司 Audio processing method, electronic device, and storage medium
CN111111188B (en) * 2019-12-24 2024-03-22 北京像素软件科技股份有限公司 Game sound effect control method and related device
CN111510738B (en) * 2020-04-26 2023-08-11 北京字节跳动网络技术有限公司 Audio transmission method and device in live broadcast
CN111554317B (en) * 2020-05-11 2024-04-09 美智纵横科技有限责任公司 Voice broadcasting method, equipment, computer storage medium and system
CN112019556B (en) * 2020-09-02 2022-12-13 广州趣丸网络科技有限公司 Voice live broadcast visualization method, device, equipment and storage medium
CN112423211A (en) * 2020-10-26 2021-02-26 努比亚技术有限公司 Multi-audio transmission control method, equipment and computer readable storage medium
CN112331223A (en) * 2020-11-09 2021-02-05 合肥名阳信息技术有限公司 Method for adding background music to dubbing
CN112423009A (en) * 2020-11-09 2021-02-26 珠海格力电器股份有限公司 Method and equipment for controlling live broadcast audio
CN113157244A (en) * 2021-05-13 2021-07-23 北京字节跳动网络技术有限公司 Sound effect adjusting method, device, equipment, medium and program product
CN113112986A (en) * 2021-05-13 2021-07-13 北京字节跳动网络技术有限公司 Audio synthesis method, apparatus, device, medium, and program product
CN113132794A (en) * 2021-05-13 2021-07-16 北京字节跳动网络技术有限公司 Live background sound processing method, device, equipment, medium and program product
CN113542785B (en) * 2021-07-13 2023-04-07 北京字节跳动网络技术有限公司 Switching method for input and output of audio applied to live broadcast and live broadcast equipment
CN113852834A (en) * 2021-09-06 2021-12-28 北京达佳互联信息技术有限公司 Content display method, device, equipment and storage medium
CN114827656A (en) * 2022-04-22 2022-07-29 深圳市皓丽软件有限公司 Processing method and device for mixing multi-channel audio in microphone data
CN115119007B (en) * 2022-06-23 2023-03-03 恩平市新盈科电声科技有限公司 Big data based audio acquisition and processing system and method for online live broadcast recording
CN119999221A (en) * 2022-12-14 2025-05-13 海信视像科技股份有限公司 Audio processing method and electronic device
CN116261008B (en) * 2022-12-14 2024-08-02 海信视像科技股份有限公司 Audio processing method and audio processing device
CN116092507B (en) * 2023-03-22 2023-06-20 广州感音科技有限公司 Audio mixing method, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402982A (en) * 2010-09-14 2012-04-04 盛乐信息技术(上海)有限公司 Background sound selectable reading system and implementation method thereof
CN103440862A (en) * 2013-08-16 2013-12-11 北京奇艺世纪科技有限公司 Method, device and equipment for synthesizing voice and music
CN104952471A (en) * 2015-06-16 2015-09-30 深圳新创客电子科技有限公司 Method, device and equipment for synthesizing media file
CN104967960A (en) * 2015-03-25 2015-10-07 腾讯科技(深圳)有限公司 Voice data processing method, and voice data processing method and system in game live broadcasting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402982A (en) * 2010-09-14 2012-04-04 盛乐信息技术(上海)有限公司 Background sound selectable reading system and implementation method thereof
CN103440862A (en) * 2013-08-16 2013-12-11 北京奇艺世纪科技有限公司 Method, device and equipment for synthesizing voice and music
CN104967960A (en) * 2015-03-25 2015-10-07 腾讯科技(深圳)有限公司 Voice data processing method, and voice data processing method and system in game live broadcasting
CN104952471A (en) * 2015-06-16 2015-09-30 深圳新创客电子科技有限公司 Method, device and equipment for synthesizing media file

Also Published As

Publication number Publication date
CN105872253A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105872253B (en) A kind of live sound processing method and mobile terminal
CN104967900B (en) A kind of method and apparatus generating video
US10200634B2 (en) Video generation method, apparatus and terminal
CN109273017B (en) Code control method, device and electronic device
WO2015085959A1 (en) Voice processing method and device
WO2019062541A1 (en) Real-time digital audio signal mixing method and device
CN106210323B (en) Voice playing method and terminal equipment
CN110213504B (en) Video processing method, information sending method and related equipment
CN106468998A (en) A method for displaying information and a terminal
US10283168B2 (en) Audio file re-recording method, device and storage medium
CN106302087A (en) Instant communication method, Apparatus and system
CN106126160B (en) A sound effect adjustment method and user terminal
EP3416040A1 (en) Sound effect processing method and mobile terminal
CN105959482B (en) A kind of scene sound effect control method, and electronic device
CN106506437B (en) Audio data processing method and device
CN106887244B (en) Audio switching method and device
WO2016029351A1 (en) Method and terminal for processing media file
CN106126170B (en) Sound effect setting method of terminal and terminal
CN106126165A (en) A kind of audio stream processing method and mobile terminal
CN114999604A (en) Visit report generation method and device for clinical research project
WO2020118560A1 (en) Recording method and apparatus, electronic device and computer readable storage medium
WO2015117550A1 (en) Method and apparatus for acquiring reverberated wet sound
CN109155803B (en) Audio data processing method, terminal device and storage medium
CN103345930B (en) data synthesis method, device and terminal
CN105159655B (en) Behavior event playing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant