Call atmosphere generation method and device, electronic equipment and storage medium

文档序号:516255 发布日期:2021-05-28 浏览:16次 中文

阅读说明:本技术 通话氛围生成方法、装置、电子设备和存储介质 (Call atmosphere generation method and device, electronic equipment and storage medium ) 是由 金丹·潘迪亚 于 2019-11-28 设计创作,主要内容包括:本申请涉及一种通话氛围生成方法、装置、电子设备和存储介质。所述方法包括:发送呼叫请求;响应在呼叫请求对应的呼叫界面上触发的主题设定指令,切换到主题设定指令对应的主题界面;响应在主题界面上触发的主题选择指令,获取主题选择指令对应的背景音乐;获取主叫方的通话语音,把背景音乐和通话语音发送给呼叫请求对应的被叫方;接收被叫方发送的被叫方的通话语音,并播放背景音乐和被叫方的通话语音。采用本方案在通话语音中添加背景音乐抑制噪声对通话语音的干扰,提高了通话音频的清晰度。(The application relates to a call atmosphere generation method and device, electronic equipment and a storage medium. The method comprises the following steps: sending a call request; responding to a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction; responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction; acquiring the call voice of a calling party, and sending the background music and the call voice to a called party corresponding to the call request; and receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party. By adopting the scheme, the background music is added in the call voice to inhibit the interference of noise to the call voice, and the definition of call audio is improved.)

1. A call ambience generating method, the method comprising:

sending a call request;

responding to a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction;

responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction;

acquiring the call voice of a calling party, and sending the background music and the call voice of the calling party to a called party corresponding to the call request;

and receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party.

2. The method of claim 1, wherein sending the background music and the call voice to a called party corresponding to the call request comprises:

filtering the call voice according to a preset filter;

carrying out digital mixed audio processing on the filtered call voice and the background music to obtain mixed call voice;

and sending the mixed call voice to a called party corresponding to the call request.

3. The method of claim 1, wherein before the sending the background music and the call voice to the called party corresponding to the call request, the method further comprises:

detecting the signal intensity corresponding to the session connection based on the session connection established by the call request;

and when the signal intensity is smaller than the preset intensity, sending the call voice to a called party corresponding to the call request.

4. A method according to any one of claims 1 to 3, characterized in that the method further comprises:

detecting the first loudness of background music in real time;

and when the first loudness is greater than or less than the preset loudness, adjusting the first loudness of the background music to the preset loudness.

5. A method according to any one of claims 1 to 3, characterized in that the method further comprises:

detecting the first loudness of background music and the second loudness of call voice in real time;

and when the ratio of the first loudness to the second loudness is not equal to a preset ratio, adjusting the first loudness and the second loudness to be equal to the preset ratio.

6. The method of claim 1, wherein the call request corresponds to at least one called party.

7. The method of claim 1, further comprising:

and when detecting that the background music corresponding to the called party is different from the background music of the calling party, synchronizing the background music corresponding to the called party or the background music of the calling party according to a background music synchronization strategy.

8. A call atmosphere setting apparatus, characterized in that the apparatus comprises:

the first sending module is used for sending a call request;

the switching module is used for responding to a theme setting instruction triggered by a user on a calling interface corresponding to a calling request and switching to the theme interface corresponding to the theme setting instruction;

the obtaining module is used for responding to a theme selection instruction triggered on the theme interface by a user and obtaining background music corresponding to the theme selection instruction;

the second sending module is used for acquiring the call voice of the calling party and sending the background music and the call voice of the calling party to the called party corresponding to the call request;

and the playing module is used for receiving the call voice of the called party sent by the called party and playing the background music and the call voice of the called party.

9. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for generating a call atmosphere, an electronic device, and a storage medium.

Background

With the development of communication technology, the functions of mobile communication devices (e.g., mobile phones, etc.) are also continuously improved, and besides simple voice and video communication, various functions such as photographing, graphic recognition, etc. can be set on the mobile communication devices. As the functions of the terminal are continuously improved, the audio quality requirements of the user for the communication of the mobile communication device are higher and higher.

At present, when a user communicates through a mobile communication device terminal, the audio is generally processed through noise suppression, so that the audio quality is improved, but the denoising processing cannot meet the requirement of the user on the call audio quality.

Disclosure of Invention

In view of the above, it is necessary to provide a call atmosphere generation method, device, electronic device, and storage medium capable of improving call audio quality.

A call ambience generating method, the method comprising:

sending a call request;

responding to a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction;

responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction;

acquiring the call voice of a calling party, and sending the background music and the call voice of the calling party to a called party corresponding to the call request;

and receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party.

In one embodiment, the sending the background music and the call voice to the called party corresponding to the call request includes:

filtering the call voice according to a preset filter;

carrying out digital mixed audio processing on the filtered call voice and the background music to obtain mixed call voice;

and sending the mixed call voice to a called party corresponding to the call request.

In one embodiment, before the sending the background music and the call voice to the called party corresponding to the call request, the method further includes:

detecting the signal intensity corresponding to the session connection based on the session connection established by the call request;

and when the signal intensity is smaller than the preset intensity, sending the call voice to a called party corresponding to the call request.

In one embodiment, the method further comprises:

detecting the first loudness of background music in real time;

and when the first loudness is greater than or less than the preset loudness, adjusting the first loudness of the background music to the preset loudness. In one embodiment, the method further comprises:

detecting the first loudness of background music and the second loudness of call voice in real time;

and when the ratio of the first loudness to the second loudness is not equal to a preset ratio, adjusting the first loudness and the second loudness to be equal to the preset ratio.

In one embodiment, the call request corresponds to at least one called party.

In one embodiment, the method further comprises:

and when detecting that the background music corresponding to the called party is different from the background music of the calling party, synchronizing the background music corresponding to the called party and the background music of the calling party according to a background music synchronization strategy.

A call atmosphere generation apparatus, the apparatus comprising:

the first sending module is used for sending a call request;

the switching module is used for responding to a theme setting instruction triggered by a user on a calling interface corresponding to a calling request and switching to the theme interface corresponding to the theme setting instruction;

the obtaining module is used for responding to a theme selection instruction triggered on the theme interface by a user and obtaining background music corresponding to the theme selection instruction;

the second sending module is used for acquiring the call voice of the calling party and sending the background music and the call voice of the calling party to the called party corresponding to the call request;

and the playing module is used for receiving the call voice of the called party sent by the called party and playing the background music and the call voice of the called party.

An electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:

sending a call request;

receiving a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction;

receiving a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction;

receiving and acquiring the call voice of a calling party, and sending the background music and the call voice of the calling party to a called party corresponding to the call request;

and receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party.

A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:

sending a call request;

receiving a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction;

receiving a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction;

receiving and acquiring the call voice of a calling party, and sending the background music and the call voice of the calling party to a called party corresponding to the call request;

and receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party.

According to the call atmosphere generation method, the call atmosphere generation device, the electronic equipment and the storage medium, the call request is sent, the theme setting instruction triggered on the call interface corresponding to the call request is responded, and the theme interface corresponding to the theme setting instruction is switched; responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction; after obtaining the background music, noise elimination is carried out, and when the call voice of the calling party is obtained, the background music and the call voice of the calling party are sent to a called party corresponding to the call request; when receiving the background music and the call voice, the called party plays the background music and the call voice simultaneously through the loudspeaker; based on session connection, receiving the called party's call voice sent by the called party, playing background music and the called party's call voice, playing background music while carrying out a call, suppressing the interference of noise to the call voice by playing background music, improving the clarity of the call audio, and avoiding the distortion of the call audio.

Drawings

FIG. 1 is a diagram of an application environment of a call ambience generation method in an embodiment;

FIG. 2 is a flow chart illustrating a method for creating a call ambience in an embodiment;

FIG. 3 is a flow chart illustrating a call ambience generation step in one embodiment;

FIG. 4 is a flowchart illustrating a method for creating a call ambience in another embodiment;

FIG. 5 is a diagram of a call interface in one embodiment;

FIG. 6 is a diagram of a subject interface in one embodiment;

FIG. 7 is a block diagram showing the construction of a call atmosphere creation means in one embodiment;

FIG. 8 is a block diagram showing the construction of a call atmosphere creation means in another embodiment;

FIG. 9 is a diagram illustrating an internal structure of an electronic device in one embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The call atmosphere generation method provided by the application can be applied to the application environment shown in fig. 1. Wherein the first terminal 102 communicates with the second terminal 104 via a network. The first terminal 102 sends a call request; responding to a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction; responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction; and acquiring the call voice of the calling party, and sending the background music and the call voice to the called party corresponding to the call request through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices, and the terminal 104 may be, but is not limited to, various personal computers, notebooks, smartphones, tablets, and portable wearable devices.

It is to be understood that the terms "first," "second," and the like as used herein may be used herein to describe various terminals, but these terminals are not limited by these terms. These terms are only used to distinguish a first terminal from another terminal. For example, a first terminal may be termed a second terminal, and, similarly, a second terminal may be termed a first terminal, without departing from the scope of the present application. The first terminal and the second terminal are both terminals, but they are not the same terminal.

In one embodiment, as shown in fig. 2, a call atmosphere generation method is provided, which is described by taking the method as an example applied to the first terminal 102 in fig. 1, and includes the following steps:

step 202, a call request is sent.

Wherein the call request is for transmission to a called party, and the session connection is established based on the communication network. The call request may be made by dialing through a dialer on the terminal, or by voice dialing, and the manner of generating the call request is not limited herein.

Specifically, a calling party and a called party communicate with each other, and a call request is sent to the called party through a dialer or voice dialing on a terminal based on a communication network. The communication mode is not limited to voice communication, but may also be audio/video communication, etc.

And step 204, responding to a theme setting instruction triggered on the call interface corresponding to the call request, and switching to the theme interface corresponding to the theme setting instruction.

The theme setting instruction is used for setting a theme of session connection established based on the call request, wherein the theme of session connection provides a conversation atmosphere when the session is connected, and the atmosphere can be quiet, easy, melancholy, romantic and the like. The theme setting instruction should not be limited to be generated by a user triggering on a call interface, but may be generated by other methods such as timer timing triggering.

The theme interface can display theme selection functions, the theme interface can include different types of themes, different theme types can be displayed on the theme interface in a list form or a picture and text combination form, one theme corresponds to at least one type of background music, the background music is music or audio content provided during a call, and the background music can provide relaxing, friendly or other specific types of atmospheres for voice call participants; the theme interface can also display a sound control function, a preset filtering function and the like, wherein the sound control function is to detect the loudness of the background music in real time through the sound module, control the loudness of the background music through negative feedback adjustment, and reduce the loudness of the background music through negative feedback adjustment when the negative feedback adjustment is used for detecting that the loudness of the background music is greater than the preset loudness, so as to realize the automatic control and adjustment of the background music.

Specifically, when responding to a triggered theme setting instruction on a call interface corresponding to a call request, the first terminal 102 switches to the theme interface corresponding to the theme setting instruction, where the switching manner may be to pop up the theme interface corresponding to the theme setting instruction on the call interface, or to suspend the theme interface corresponding to the theme setting instruction on the call interface.

In an embodiment, after the first terminal 102 sends the call request, the timer is triggered to start timing, when the timing time of the timer is equal to the preset time, the theme setting on the call interface is triggered to generate a theme setting instruction, and the first terminal 102 switches to the theme interface corresponding to the theme setting instruction in response to the theme setting instruction corresponding to the call request, where the switching manner may be to pop up the theme interface corresponding to the theme setting instruction on the call interface or to suspend the theme interface corresponding to the theme setting instruction on the call interface. The timer is used for triggering at fixed time, so that the triggering operation can be reduced, and the theme setting is facilitated.

And step 206, responding to the theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction.

The theme selection instruction is used for selecting background music corresponding to a theme, and the theme of one theme type may correspond to a plurality of pieces of background music, for example, the background music corresponding to the theme of a quiet type includes: background music 1, background music 2, background music 3, background music 4, etc. The background music may be acquired from the local memory of the first terminal 102, or may be acquired from the cloud memory by connecting to the cloud through an interface, and the manner of acquiring the background music is not limited.

In one embodiment, the first terminal responds to a theme setting instruction triggered on a call interface corresponding to the call request, and switches to a theme interface corresponding to theme setting, wherein the theme interface can comprise a predefined theme and a self-defined theme, and the self-defined theme is that a user defines the theme according to actual requirements and selects corresponding background music; and responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction from a local memory or a cloud storage.

And step 208, acquiring the call voice of the calling party, and sending the background music and the call voice of the calling party to the called party corresponding to the call request.

Specifically, the first terminal 102 obtains the call voice of the calling party through the voice unit, processes the call voice, processes the processed call voice and the background music through digital signal processing to obtain a digital signal corresponding to the call voice and a digital signal corresponding to the background music, and sends the obtained digital signal of the call voice and the obtained digital signal of the background music to the called party corresponding to the call request; the processing method for processing the call voice is not limited to filtering the call voice.

Step 210, receiving the called party's call voice sent by the called party, and playing the background music and the called party's call voice.

Specifically, a session connection is established based on a call request, the first terminal receives the call voice of the called party sent by the called party, triggers a loudspeaker, and plays background music and the received call voice of the called party through the loudspeaker; the played background music can be the background music corresponding to the first terminal, the played background music can also be a theme interface corresponding to the theme setting instruction by responding to the theme setting instruction triggered on the called interface, responding to the theme selection instruction on the theme interface, and acquiring the corresponding background music according to the theme setting instruction, wherein the acquired background music can be the same as the background music of the calling party or different from the background music of the calling party; the background music can be obtained from a local memory or a cloud memory, and the like.

In the call atmosphere generation method, a call request is sent, a theme setting instruction triggered on a call interface corresponding to the call request is responded, and a theme interface corresponding to the theme setting instruction is switched; responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction; after obtaining the background music, noise elimination is firstly carried out, when the call voice of the calling party is obtained, the background music and the call voice of the calling party are sent to the called party corresponding to the call request, the call voice of the called party sent by the called party is received, and the background music and the call voice of the called party are played; when receiving the background music and the call voice of a called party, the first terminal plays the background music and the call voice simultaneously through the loudspeaker, plays the background music while calling, suppresses the interference of noise to the call voice by adding the background music in the call voice, improves the definition of the call audio, avoids the distortion of the call audio, and simultaneously improves the call environment.

In one embodiment, before sending the background music and the call voice to the called party corresponding to the call request, the method further comprises:

detecting the signal intensity corresponding to the session connection based on the session connection established by the call request; and when the signal intensity is smaller than the preset intensity, sending the call voice to a called party corresponding to the call request.

Wherein, the signal strength is used to indicate the strength of the current session connection establishment signal. The signal strength affects the audio quality of the call, and the audio quality of the call is poor when the signal strength is less than the signal strength required by the normal call. Signal strength can be expressed in power in dBm.

The preset intensity is a preset signal intensity, and when the signal intensity is greater than or equal to the preset intensity, the first terminal sends the background music and the call sound to a called party corresponding to the call request.

Specifically, before sending the background music and the call voice to the called party corresponding to the call request, the first Terminal sends an AT instruction to a corresponding Terminal Adapter (Terminal Adapter, TA) through an API interface, acquires the signal strength of the current session connection through a GET () function in the AT instruction, processes the call voice and the background music by using a digital signal processing algorithm if the acquired signal strength is greater than or equal to a preset strength, and sends the processed digital signal to the called party corresponding to the call request. And if the acquired signal intensity is smaller than the preset intensity, triggering the first terminal to generate a background music sending termination instruction, and sending the call voice to a called party corresponding to the call request. When the detected signal intensity is less than the preset intensity, the sending of the background music is stopped, and the effect that the audio quality is reduced because the sending of the background music occupies network bandwidth resources is avoided.

In one embodiment, the method further comprises:

detecting the first loudness of background music in real time;

and when the first loudness is greater than or less than the preset loudness, adjusting the first loudness of the background music to the preset loudness.

Wherein loudness is used to represent the size of the sound; the preset loudness is the preset loudness of background music; the first loudness is used to represent the size of the sound of the background music. It will be understood that the terms "first", "second", etc. as used herein may be used herein to describe different loudness, but that the loudness is not limited by these terms. These terms are only used to distinguish a first loudness from another loudness.

Specifically, a first terminal sends a call request, responds to a theme setting instruction triggered on a call interface corresponding to the call request, switches to a theme interface corresponding to the theme setting instruction, responds to a theme selection instruction triggered on the theme interface, acquires background music corresponding to the theme selection instruction, acquires call voice of a calling party, executes a corresponding background music loudness detection instruction when the first terminal sends the background music and the call voice to a called party corresponding to the call request, detects the first loudness of the background music in real time, compares the acquired first loudness with a preset loudness through a function, generates a loudness adjustment instruction when the first loudness is greater than or less than the preset loudness, executes the loudness adjustment instruction until the first loudness of the background music is adjusted to the preset loudness, avoids the loudness of the background music from influencing the sound effect of the call voice due to too large loudness or too small loudness by detecting the loudness of the background music in real time, detecting the loudness of background music in real time improves the audio quality effect of the call.

In one embodiment, the method further comprises:

detecting the first loudness of background music and the second loudness of call voice in real time;

and when the ratio of the first loudness to the second loudness is not equal to the preset ratio, adjusting the first loudness and the second loudness to the ratio equal to the preset ratio.

The preset ratio is a relative ratio of a first loudness and a second loudness, the preset ratio is a fixed value, there is an inverse proportion relationship between the first loudness and the second loudness, for example, k represents that the preset ratio is a constant, a represents the first loudness, b represents the second loudness, and the relationship between the first loudness and the second loudness can be expressed as a/b-k.

Specifically, the first terminal sends a call request, responds to a theme setting instruction triggered on a call interface corresponding to the call request, switches to a theme interface corresponding to the theme setting instruction, responds to a theme selection instruction triggered on the theme interface, acquires background music corresponding to the theme selection instruction, acquires call voice of a calling party, executes a background music loudness detection instruction and a call voice loudness detection instruction when the background music and the call voice of the calling party are sent to a called party corresponding to the call request, detects a first loudness of the background music and a second loudness of the call voice in real time, generates a first loudness adjustment instruction if the ratio of the first loudness to the second loudness is not equal to a preset ratio, executes the first loudness adjustment instruction according to the second loudness and the preset ratio until the first loudness of the background music is adjusted to be consistent with the ratio of the second loudness to be equal to the preset ratio, and sending the background music and the call voice of the calling party to a called party corresponding to the call request, receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party. The first loudness of the background music and the second loudness of the call voice are detected in real time, the first loudness of the background music is adjusted according to the preset ratio, the influence on the sound effect of the call voice caused by overlarge or undersize of the loudness of the background music is avoided, and the loudness of the background music is detected in real time, so that the audio quality effect of the call is improved.

In one embodiment, the method further comprises synchronizing the background music corresponding to the called party or the background music of the calling party according to the theme synchronization policy when detecting that the background music corresponding to the called party is different from the background music of the calling party.

The theme synchronization strategy is that when the background music of the calling party is different from the background music of the called party, the background music of the called party is synchronized into the same background music as the background music of the calling party. The method for detecting the background music can judge whether the background music of the calling party and the background music of the called party are the same or not by collecting the frequency of the background music and comparing the frequency, can also detect whether the background music of the calling party and the background music of the called party are the same or not by extracting the voiceprint of the background music, the voiceprint of the background music is extracted to firstly divide the background music into blocks, the background music of each block is subjected to Fourier change to obtain the characteristic value of each block, each characteristic value is sequenced according to the sequence, namely the voiceprint of the background music is obtained, and when the background music of the calling party and the background music of the called party are detected to be the same or not, only the judgment on whether the characteristic values of the background music of the calling party and. The theme synchronization policy may also be that when the background music of the calling party and the background music of the called party are different, the background music of the calling party is synchronized to the same background music as the background music of the called party.

Specifically, a first terminal sends a call request, responds to a theme setting instruction triggered on a call interface corresponding to the call request, switches to the theme interface corresponding to the theme setting instruction, responds to a theme selection instruction triggered on the theme interface, acquires background music corresponding to the theme selection instruction, synchronizes background music of a called party to background music same as background music of the calling party or synchronizes the background music of the calling party to background music same as the background music of the called party when detecting that the background music corresponding to the called party is different from the background music of the calling party, sends the background music and call voice to the called party corresponding to the call request, receives the call voice of the called party sent by the called party, and plays the background music and the call voice of the called party; by synchronizing the background music of the calling party and the background music of the called party, the problem that the conversation audio frequency quality of the calling party and the conversation audio frequency quality of the called party are different and the conversation audio frequency effect of conversation connection is influenced due to the fact that the background music of the calling party and the background music of the called party are different is avoided.

In one embodiment, as shown in fig. 3, a flow of a call atmosphere generating step is provided, which is described by taking the method as an example applied to the first terminal 102 in fig. 1, and includes the following steps:

step 302, a call request is issued.

And step 304, displaying a calling interface corresponding to the calling request.

Specifically, after the first terminal sends a call request, a call interface corresponding to the call request is displayed, and the call interface comprises a theme setting button and other function buttons.

And step 306, responding to a theme setting instruction triggered on the calling interface corresponding to the calling request.

And 308, displaying a theme list corresponding to the theme setting instruction.

Specifically, after responding to a theme setting instruction triggered on a call interface corresponding to the call request, the first terminal switches to a theme interface corresponding to the theme setting instruction, where the theme interface includes a preloaded theme list, such as a map.

In step 310, the background music corresponding to the theme setting instruction is obtained.

Specifically, a theme selection instruction of a user on a theme interface is responded, and background music corresponding to the theme setting instruction is acquired.

In step 312, the background music and the call voice of the calling party are transmitted.

In step 314, the background music and the call voice of the called party are played.

In one embodiment, a calling party dials a dialer of a first terminal, the first terminal sends a call request to a called party after receiving the dial, and displays a call interface corresponding to the call request, the call interface comprises a theme setting button and other function buttons, the first terminal responds to a theme setting instruction generated by triggering the theme setting button on the theme interface by the calling party, switches to the theme interface corresponding to the theme setting instruction, and displays a preloaded theme list on the theme interface; the method comprises the steps that a first terminal responds to a theme selection instruction of a user on a theme interface to obtain background music corresponding to a theme setting instruction; the method comprises the steps of obtaining call voice of a calling party, sending background music and the call voice of the calling party to a called party corresponding to a call request, receiving the call voice of the called party sent by the called party by a first terminal based on session connection established by the call request, and triggering a loudspeaker to play the background music and the received call voice of the called party at the same time.

In the communication atmosphere generating step, a call interface corresponding to the call request is displayed by sending the call request, a theme setting instruction triggered on the call interface corresponding to the call request is responded, and a theme list corresponding to the theme setting instruction is displayed; the method comprises the steps of obtaining background music corresponding to a theme setting instruction, obtaining conversation voice of a calling party, sending the conversation voice and the background music to the called party corresponding to a calling request, receiving the conversation voice of the called party sent by the called party based on conversation connection established by the calling request, recording the received background music and the conversation voice in a loudspeaker, playing the background music and the conversation voice through the loudspeaker, and adding the background music in the conversation voice to inhibit noise interference, so that the quality of conversation audio is improved, and meanwhile, the conversation environment is also improved.

In one embodiment, as shown in fig. 4, a call atmosphere generation method is provided, which is described by taking the method as an example applied to the first terminal 102 in fig. 1, and includes the following steps:

step 402, a call request is sent.

Step 404, responding to a theme setting instruction triggered on the call interface corresponding to the call request, and switching to the theme interface corresponding to the theme setting instruction.

And step 406, responding to the theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction.

And step 408, acquiring the call voice of the calling party, and filtering the call voice according to a preset filter.

The filter is used for filtering the received sound signal, eliminating the interference of noise to the sound signal and avoiding sound distortion. The sound filtering processing can be performed through matlab, wherein the sound signal processing based on matlab comprises an elliptical low-pass filter, an elliptical high-pass filter, an elliptical band-pass filter, a bilinear transformation Chebyshev digital high-pass filter and the like, a sound () function can be called to play back the processed sound after the sound signal processing is performed, the elliptical low-pass filter is used for filtering out specific frequency sound signals in the sound signal, the elliptical high-pass filter is used for filtering out high frequency volume sound signals in the sound signal, and the elliptical band-pass filter is used for filtering out low frequency sound signals and high frequency sound signals in the sound signal; the filtering process of sound can also process call voice through an equalizer, wherein the equalizer is a filter which is used for adjusting electric signals of various frequencies to compensate defects of a loudspeaker and a sound field, can reduce intersymbol interference and has a compensation function, and the equalizer comprises a frequency domain equalizer and a time domain equalizer.

Specifically, the method includes the steps of acquiring a call voice of a calling party, converting the call voice into a digital signal through a digital signal processing technology, filtering the digital signal according to a sound filtering algorithm, and encoding the processed call voice in a Pulse Code Modulation (PCM) mode.

In one embodiment, after acquiring a call voice of a calling party, a first terminal identifies the acquired call voice through a male and female voice identification technology, wherein the voice frequencies of male voice and female voice are different, male and female voice identification can be realized according to the voice frequency of the call voice, for example, the voice frequency is full, soft and elastic under 150Hz, and the voice frequency has a soundness, strength and non-cloudiness characteristic under 150Hz-500Hz, and corresponding filtering processing is acquired according to the identified voice frequency characteristic, so that the audio quality of the call voice is improved and call voice distortion is avoided.

And step 410, performing digital mixed audio processing on the filtered call voice and the background music to obtain mixed call voice.

In the digital mixed audio processing, sound signals are superposed through an audio mixing algorithm. The audio mixing algorithm includes linear superposition averaging, adaptive weighted mixing algorithm, and the like.

Step 412, sending the mixed call voice to the called party corresponding to the call request.

Step 414, receiving the call voice of the called party, and playing the background music and the call voice of the called party.

The received call voice of the called party is subjected to filtering processing according to a preset filter.

In the communication atmosphere generation method, a call request is sent; responding to a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction; responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction; acquiring call voice of a calling party, and filtering the call voice according to a preset filter; carrying out digital mixed audio processing on the filtered call voice and the background music to obtain mixed call voice; sending the mixed call voice to a called party corresponding to the call request, filtering the call voice before mixing background music and the call voice, converting the call voice into a digital signal and background music into a digital signal, mixing the call voice converted into the digital signal and the background music converted into the digital signal by an audio mixing algorithm, removing noise of the mixed call voice, sending the mixed call voice to the called party corresponding to the call request, receiving the call voice of the called party, and playing the background music and the call voice of the called party; the method comprises the following steps of carrying out filtering processing on call voice before audio mixing, and avoiding call voice distortion and noise interference; and after the call voice and the background music are mixed, denoising is carried out again, so that the user can clearly receive the call voice and the background music, and the requirement of the user on the call audio quality is met.

In one embodiment, the call request corresponds to at least one called party.

Specifically, in an Application program (App) supporting an audio and video call function, a calling party may establish a session group, and the calling party sends a call request to a plurality of called parties, and switches to a theme interface corresponding to the theme setting instruction in response to a theme setting instruction triggered on a call interface corresponding to the call request, where the theme setting instruction may be generated by a user triggering a theme setting button on the call interface or by obtaining a theme setting voice; responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction; the method comprises the steps that call voice of a calling party is obtained, filtering processing is carried out on the call voice according to a preset filter, the call voice after filtering processing and background music are subjected to digital mixed audio processing to obtain mixed call voice, the mixed call voice is sent to a called party corresponding to a call request, and after the call voice of the called party sent by a called party is received, background music and the received call voice of the called party are played through a loudspeaker by a first terminal; the method comprises the following steps of carrying out filtering processing on call voice before audio mixing, and avoiding call voice distortion and noise interference; the denoising processing is realized again after the call voice and the background music are mixed, so that the user can clearly receive the call voice and the background music and the requirement of the user on the call audio quality is met.

An application scenario for call ambience generation is as follows.

In an embodiment, a first terminal sends a call request, displays a call interface corresponding to the call request, as shown in fig. 5, the call interface includes theme setting and other functions, responds to a theme setting instruction triggered on the call interface corresponding to the call request, and switches to a theme interface corresponding to the theme setting instruction, as shown in fig. 6, the theme interface is displayed on the call interface in a pop-up window manner, themes on the theme interface are loaded and displayed on the theme interface in a list manner, the theme interface includes various themes such as theme 1, theme 2, theme 3, and the like, and the theme type is not limited herein; responding to a theme selection instruction triggered on a theme interface, acquiring background music corresponding to the theme selection instruction, acquiring call voice of a calling party, sending the background music and the call voice to a called party corresponding to a call request, recording the background music and the call voice in a loudspeaker of the called party, playing the background music and the call voice through the loudspeaker corresponding to the called party, acquiring the call voice of the called party by a second terminal, sending the call voice and the background music to the calling party, and closing session connection corresponding to the background music when the call is finished.

It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 7, there is provided a call atmosphere generating apparatus 700 including: a first sending module 702, a switching module 704, an obtaining module 706, a second sending module 708, and a playing module 710, wherein:

a first sending module 702, configured to send a call request.

The switching module 704 is configured to respond to a theme setting instruction triggered on a call interface corresponding to the call request, and switch to a theme interface corresponding to the theme setting instruction.

The obtaining module 706 is configured to respond to a theme selection instruction triggered on the theme interface, and obtain background music corresponding to the theme selection instruction.

The second sending module 708 is configured to obtain the call voice of the calling party, and send the background music and the call voice of the calling party to a called party corresponding to the call request.

The playing module 710 receives the called party's call voice sent by the called party, and plays the background music and the called party's call voice.

In the call atmosphere generation device, a call request is sent through a first sending module, and a theme setting instruction triggered on a call interface corresponding to the call request is responded, so that the call atmosphere generation device is switched to a theme interface corresponding to the theme setting instruction; responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction; acquiring the call voice of a calling party, and sending the background music and the call voice to a called party corresponding to the call request; receiving the call voice of the called party sent by the called party, and playing background music and the call voice of the called party; by adding the background music in the call voice, the interference of noise to the call voice is suppressed, the distortion of the call voice is avoided, and the audio quality of the call voice is improved.

In another implementation, as shown in fig. 8, there is provided a call atmosphere generating apparatus 700 including: a first sending module 702, a switching module 704, an obtaining module 706, a second sending module 708, a playing module 710, a filtering module 712, a first detecting module 714, a second detecting module 716, and a synchronizing module 718, wherein:

the filtering module 712 is configured to perform filtering processing on the call voice according to a preset filter; and carrying out digital mixed audio processing on the filtered call voice and the background music to obtain mixed call voice.

Specifically, the filtering module 712 filters the call voice to eliminate interference of noise to the call voice, thereby avoiding distortion of the call voice signal.

A first detecting module 714, configured to detect, based on the session connection established by the call request, a signal strength corresponding to the session connection; and when the signal intensity is smaller than the preset intensity, sending the call voice to a called party corresponding to the call request.

The first detection module 714 detects the signal strength of the session connection, so as to avoid that the background music and the call voice are sent to the called party when the signal strength is less than the preset strength, which causes call audio distortion and signal loss.

A second detecting module 716, configured to detect a first loudness of the background music in real time; and when the first loudness is greater than or less than the preset loudness, adjusting the first loudness of the background music to the preset loudness.

In one embodiment, the second detecting module 716 is further configured to detect a first loudness of background music and a second loudness of speech in real time; and when the ratio of the first loudness to the second loudness is not equal to the preset ratio, adjusting the first loudness and the second loudness to the ratio equal to the preset ratio.

A synchronizing module 718, configured to synchronize the background music corresponding to the called party or the background music of the calling party according to a background music synchronizing policy when it is detected that the background music corresponding to the called party is different from the background music of the calling party.

For the specific definition of the call ambience generating device, reference may be made to the above definition of the call ambience generating method, which is not described herein again. All or part of each module in the call atmosphere generation device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The electronic device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a call ambience generating method. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.

In one embodiment, an electronic device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

sending a call request;

responding to a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction;

responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction;

acquiring the call voice of a calling party, and sending the background music and the call voice of the calling party to a called party corresponding to the call request;

and receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

sending the background music and the conversation voice to a called party corresponding to the call request, comprising:

filtering the call voice according to a preset filter;

carrying out digital mixed audio processing on the filtered call voice and the background music to obtain mixed call voice;

and sending the mixed call voice to a called party corresponding to the call request.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

before sending the background music and the conversation voice to the called party corresponding to the call request, the method further comprises the following steps:

detecting the signal intensity corresponding to the session connection based on the session connection established by the call request;

and when the signal intensity is smaller than the preset intensity, sending the call voice to a called party corresponding to the call request.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

detecting the first loudness of background music in real time;

and when the first loudness is greater than or less than the preset loudness, adjusting the first loudness of the background music to the preset loudness.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

detecting the first loudness of background music and the second loudness of call voice in real time;

and when the ratio of the first loudness to the second loudness is not equal to the preset ratio, adjusting the first loudness and the second loudness to the ratio equal to the preset ratio.

In one embodiment, the processor, when executing the computer program, further implements the following:

the call request corresponds to at least one called party.

In one embodiment, the processor, when executing the computer program, further performs the steps of:

and when detecting that the background music corresponding to the called party is different from the background music of the calling party, synchronizing the background music corresponding to the called party and the background music of the calling party according to the background music synchronization strategy.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

sending a call request;

responding to a theme setting instruction triggered on a calling interface corresponding to the calling request, and switching to a theme interface corresponding to the theme setting instruction;

responding to a theme selection instruction triggered on the theme interface, and acquiring background music corresponding to the theme selection instruction;

acquiring the call voice of a calling party, and sending the background music and the call voice of the calling party to a called party corresponding to the call request;

and receiving the call voice of the called party sent by the called party, and playing the background music and the call voice of the called party.

In one embodiment, the computer program when executed by the processor further performs the steps of:

sending the background music and the conversation voice to a called party corresponding to the call request, comprising:

filtering the call voice according to a preset filter;

carrying out digital mixed audio processing on the filtered call voice and the background music to obtain mixed call voice;

and sending the mixed call voice to a called party corresponding to the call request.

In one embodiment, the computer program when executed by the processor further performs the steps of:

before sending the background music and the conversation voice to the called party corresponding to the call request, the method further comprises the following steps:

detecting the signal intensity corresponding to the session connection based on the session connection established by the call request;

and when the signal intensity is smaller than the preset intensity, sending the call voice to a called party corresponding to the call request.

In one embodiment, the computer program when executed by the processor further performs the steps of:

detecting the first loudness of background music in real time;

and when the first loudness is greater than or less than the preset loudness, adjusting the first loudness of the background music to the preset loudness.

In one embodiment, the computer program when executed by the processor further performs the steps of:

detecting the first loudness of background music and the second loudness of call voice in real time;

and when the ratio of the first loudness to the second loudness is not equal to the preset ratio, adjusting the first loudness and the second loudness to the ratio equal to the preset ratio.

In one embodiment, the computer program when executed by the processor further implements the following:

the call request corresponds to at least one called party.

In one embodiment, the computer program when executed by the processor further performs the steps of:

and when detecting that the background music corresponding to the called party is different from the background music of the calling party, synchronizing the background music corresponding to the called party and the background music of the calling party according to the background music synchronization strategy.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种闹钟的提醒方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类