Summary of the invention
The embodiment of the present invention provides the method for the sound signal processing of conversing in a kind of trunking communication, single, the inefficient problem of talking mode that can solve trunking communication.Described technical scheme is as follows:
First aspect, provides the method for the sound signal processing of conversing in a kind of trunking communication, and described method comprises:
Obtain the voice signal in trunking communication;
According to described voice signal, determine the type of voice signal;
According to the type of described voice signal, described voice signal is processed, obtain the digital audio signal of pulse code modulation pcm encoder;
Digital audio signal to described pcm encoder is processed, the digital audio signal that obtains transmitting for trunking communication;
The described digital audio signal transmitting for trunking communication is sent to base station.
In conjunction with first aspect, the implementation that the first is possible is: described in obtain the voice signal in trunking communication, comprising:
Obtain voice signal by microphone; Or
By audio files is read, obtain voice signal, described sound signal storage is in described audio files.
In conjunction with first aspect, the possible implementation of the second is: described according to described voice signal, determine the type of voice signal, and comprising:
If the amplitude of described voice signal is continuous, determine that the type of voice signal is analoging sound signal;
If the amplitude of described voice signal is discrete, determine that the type of voice signal is digital audio signal.
In conjunction with first aspect, the third possible implementation is: described according to the type of described voice signal, described voice signal is processed, and obtain the digital audio signal of pulse code modulation pcm encoder, comprising:
In the time that the type of described voice signal is analoging sound signal, to described voice signal sample, quantification, pcm encoder, obtain the digital audio signal of pcm encoder;
In the time that the type of described voice signal is digital audio signal, described voice signal is decoded, obtain the digital audio signal of pcm encoder.
In conjunction with first aspect, the 4th kind of possible implementation is: the described digital audio signal to described pcm encoder is processed, and the digital audio signal that obtains transmitting for trunking communication, comprising:
According to the standard of transmission of sound signals in trunking communication, the digital audio signal of described pcm encoder is encoded, the digital audio signal that obtains transmitting for trunking communication.
In conjunction with the 4th kind of possible implementation of first aspect, the 5th kind of possible implementation is: in described trunking communication, the standard of transmission of sound signals is adaptive multi-rate AMR coding transmission standard.
In conjunction with first aspect, the 6th kind of possible implementation is: described in obtain the voice signal in trunking communication before, also comprise:
Receive the first instruction or the second instruction, described the first instruction is used to indicate the reception of carrying out voice signal by microphone, and described the second instruction is used to indicate reads audio files, and described sound signal storage is in described audio files.
In conjunction with the 6th kind of possible implementation of first aspect, the 7th kind of possible implementation is: described the first instruction or the second instruction produce or are triggered and produced by transducer by programmable button is touched.
Second aspect, provides the audio-signal processing apparatus in a kind of trunking communication, and described device comprises:
Acquisition module, for obtaining the voice signal of trunking communication;
Determination module, for the voice signal obtaining according to described acquisition module, determines the type of voice signal;
The first processing module, processes for the voice signal described acquisition module being obtained according to the type of the definite voice signal of described determination module, obtains the digital audio signal of pulse code modulation pcm encoder;
The second processing module, processes the digital audio signal that obtains transmitting for trunking communication for the digital audio signal of pcm encoder that described the first processing module is obtained;
Sending module, sends to base station for the digital audio signal transmitting for trunking communication that described the second processing module is obtained.
In conjunction with second aspect, the implementation that the first is possible is: described acquisition module, specifically for:
Obtain voice signal by microphone; Or
By audio files is read, obtain voice signal, described sound signal storage is in described audio files.
In conjunction with second aspect, the possible implementation of the second is: described determination module, specifically for:
If the amplitude of described voice signal is continuous, determine that the type of voice signal is analoging sound signal;
If the amplitude of described voice signal is discrete, determine that the type of voice signal is digital audio signal.
In conjunction with second aspect, the third possible implementation is: described the first processing unit, specifically for:
In the time that the type of described voice signal is analoging sound signal, to described voice signal sample, quantification, pcm encoder, obtain the digital audio signal of pcm encoder;
In the time that the type of described voice signal is digital audio signal, described voice signal is decoded, obtain the digital audio signal of pcm encoder.
In conjunction with second aspect, the 4th kind of possible implementation is: described the second processing unit, specifically for:
According to the standard of transmission of sound signals in trunking communication, the digital audio signal of described pcm encoder is encoded, the digital audio signal that obtains transmitting for trunking communication.
In conjunction with second aspect, the 5th kind of possible implementation is: described device, also comprises:
Receiver module, for receiving the first instruction or the second instruction, described the first instruction is used to indicate the reception of carrying out voice signal by microphone, and described the second instruction is used to indicate reads audio files, and described sound signal storage is in described audio files.
The technical scheme that the embodiment of the present invention provides, by according to the type of the voice signal in definite trunking communication, obtain voice signal, this voice signal is processed to the digital audio signal that obtains pulse code modulation pcm encoder, digital audio signal to this pcm encoder is processed, the digital audio signal that obtains transmitting for trunking communication, and send, realize in trunking communication, according to the type of voice signal, voice signal is processed and is sent to base station, base station is sent to and do not occupy the user terminal of right of speech side, thereby can realize talking mode variation in trunking communication, improve transmission efficiency.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
In the trunking communication of setting up with QChat technology, those who answer is directly access in call, only can passively listen to, and now those who answer in meeting, when this those who answer occupies after right of speech, due to now inconvenient by microphone transmission call voice signal, and the content of call is stored in other audio files such as recording file.The embodiment of the present invention provides the audio signal processing method in a kind of trunking communication for this reason, and referring to Fig. 1, the method flow that the present embodiment provides is specific as follows:
101, obtain the voice signal in trunking communication;
Particularly, the specific implementation of this step includes but not limited to:
Obtain voice signal by microphone; Or
By audio files is read, obtain voice signal, described sound signal storage is in described audio files.
It should be noted that, this step is in the time obtaining voice signal, and synchronization can adopt two kinds of obtain manners simultaneously, also can sequentially adopt a kind of obtain manner.Preferably, overlapping for fear of sound, and cause the poor problem of ease for use, synchronization only limits to a kind of obtain manner, the first obtain manner is for to obtain voice signal by microphone, the second obtain manner, for by audio files is read, obtains voice signal, and sound signal storage is in described audio files.When monitoring while obtaining voice signal by microphone, audio files is not read to obtain voice signal; In the time that monitoring is obtained voice signal by audio files is read, do not obtain voice signal by microphone.Concrete employing can limit above-mentioned which kind of mode according to specific needs, and the embodiment of the present invention is not specifically limited.
102,, according to voice signal, determine the type of voice signal;
Particularly, the specific implementation of this step includes but not limited to:
If the amplitude of voice signal is continuous, determine that the type of voice signal is analoging sound signal;
If the amplitude of voice signal is discrete, determine that the type of voice signal is digital audio signal.
103, according to the type of voice signal, voice signal is processed, obtained the digital audio signal of pulse code modulation pcm encoder;
Particularly, the specific implementation of this step includes but not limited to:
In the time that the type of voice signal is analoging sound signal, to voice signal sample, quantification, pcm encoder, obtain the digital audio signal of pcm encoder;
In the time that the type of voice signal is digital audio signal, voice signal is decoded, obtain the digital audio signal of pcm encoder.
104, the digital audio signal of pcm encoder is processed the digital audio signal that obtains transmitting for trunking communication;
Particularly, the specific implementation of this step includes but not limited to:
According to the standard of transmission of sound signals in trunking communication, the digital audio signal of pcm encoder is encoded, the digital audio signal that obtains transmitting for trunking communication.
105, the digital audio signal transmitting for trunking communication is sent to base station.
The type of the definite voice signal of voice signal that the embodiment of the present invention is obtained by basis is processed the voice signal obtaining, obtain the digital audio signal of pulse code modulation pcm encoder, digital audio signal to this pcm encoder is processed, the digital audio signal that obtains transmitting for trunking communication, and send to base station, realize in trunking communication, according to the type of voice signal, voice signal is processed and is sent to base station, base station is sent to and do not occupy the user terminal of right of speech side, thereby can realize talking mode variation in trunking communication, improve transmission efficiency.
Embodiment bis-
The embodiment of the present invention provides the audio signal processing method in a kind of trunking communication, and in conjunction with the content of above-described embodiment one, referring to Fig. 2, the method flow that the present embodiment provides specifically can be as follows:
201, receive the first instruction or the second instruction, the first instruction is used to indicate the reception of carrying out voice signal by microphone, and the second instruction is used to indicate reads audio files, and sound signal storage is in audio files;
Preferably, the first instruction or the second instruction by programmable button touched and produce or be triggered and produce by transducer.
After being triggered by touching programmable button by user in the first instruction or the second instruction and producing, reception the first instruction or the second instruction;
For example: in terminal, be provided with two buttons, corresponding first instruction of button, the first instruction is used to indicate the reception of carrying out voice signal by microphone, corresponding the second instruction of another button, the second instruction is used to indicate reads audio files, and sound signal storage is in audio files, in the time that user touches a button, receive the first instruction, in the time that user touches another button, receive the second instruction.
The button of the present embodiment can be two, corresponding first instruction of button, corresponding the second instruction of another button; Can also be other forms, for example: button can be one, click corresponding the first instruction of this button, double-click corresponding the second instruction of this button, specifically can specifically limit according to actual needs, the embodiment of the present invention be not specifically limited.The present embodiment the first instruction or the second instruction can be used to indicate the reception of carrying out voice signal by microphone, can also be used to indicate audio files is read, and specifically can specifically limit according to actual needs, and the invention process is not specifically limited.
After the first instruction or the second instruction are produced by trigger sensor by user, receive the first instruction or the second instruction.Preferably, this transducer is infrared ray sensor., the present embodiment does not limit the kind of transducer, can be infrared ray sensor, can also be other transducers.
For example, in terminal, be provided with two infrared ray sensors, in the time approaching an infrared ray sensor, corresponding the first instruction, the first instruction is used to indicate the reception of carrying out voice signal by microphone, in the time approaching another infrared ray sensor, corresponding the second instruction, the second instruction is used to indicate by audio files is read, sound signal storage, in audio files, in the time that user approaches an infrared ray sensor by finger, triggers the first instruction, in the time that user approaches another infrared ray sensor by finger, trigger the second instruction.
The infrared ray sensor of the present embodiment can be two, corresponding first instruction of infrared ray sensor, corresponding the second instruction of another infrared ray sensor; Can also be other forms, for example: infrared ray sensor can be one, odd number approaches corresponding the first instruction of infrared ray sensor, and even number approaches corresponding the second instruction of infrared ray sensor, specifically can specifically limit according to actual needs, the embodiment of the present invention is not specifically limited.The present embodiment the first instruction or the second instruction can be used to indicate the reception of carrying out voice signal by microphone, can also be used to indicate audio files is read, and specifically can specifically limit according to actual needs, and the invention process is not specifically limited.
It should be noted that, " first " and " second " be only on word for distinguishing two instructions, i.e. the first instruction also can be called as the second instruction, the second instruction also can be called as the first instruction.
202, according to the instruction receiving, obtain the voice signal in trunking communication;
Particularly, the specific implementation of this step includes but not limited to:
When the instruction receiving is, while carrying out the reception of voice signal by microphone, to obtain voice signal by microphone;
When the instruction receiving is when voice signal is read,, by audio files is read, obtain voice signal, sound signal storage is in audio files.
When user occupies after right of speech, terminal can be obtained by microphone user's voice signal, and microphone is the equipment of the voice signal for receiving user's input, for example: can be microphone or microphone.Can also be by reading of audio files to be obtained, sound signal storage is in audio files.
In order to realize the flexibility of call, the demand of personalization while meeting user's communication, in the time that this sound signal storage is in multiple audio files, in the time obtaining voice signal, need to carry out read operation to multiple audio files, this operation can comprise: reading command and sequence instruction.
For example, sound signal storage is in two audio files, be in audio files 1 and audio files 2, user selects a sound file 1 and audio files 2 as the voice signal in the trunking communications of obtaining, now, can read successively according to the numbering of audio files 1 and audio files 2 order from small to large, reading order is audio files 1-audio files 2; Certainly, also can read according to the select a sound sequencing of file of user, for example: user's file 2 that first selects a sound, after the file 1 that selects a sound, the order that reads audio files is audio files 2-audio files 1; Can also read according to the sequencing of audio files memory time; Can also be according to the numbering of audio files order from big to small.Concrete which kind of mode that adopts can specifically arrange according to actual needs, and this method embodiment is not specifically limited.
The present embodiment does not limit in the number of audio files sound signal storage, can be 2, can also be 3, waits other positive integer value.Sound signal storage is not limited at the form of audio files, can be AAC(Advanced Audio Coding, Advanced Audio Coding) voice signal of coded format, can also be AMR(Adaptive Multi-Rate, adaptive multi-rate) voice signal of coded format.
203,, according to voice signal, determine the type of voice signal;
Particularly, the specific implementation of this step includes but not limited to:
If the amplitude of voice signal is continuous, determine that the type of voice signal is analoging sound signal;
If the amplitude of voice signal is discrete, determine that the type of voice signal is digital audio signal.
Be that the continuous or discrete type that judges voice signal is analoging sound signal or digital audio signal according to the amplitude of the voice signal obtaining, concrete judgment mode is prior art, repeats no longer one by one herein.
In order to make to determine the simple to operate, convenient of type, particularly, the specific implementation of this step also includes but not limited to:
If voice signal obtains by microphone, determine that the type of voice signal is analoging sound signal;
If voice signal obtains by reading audio files, determine that the type of voice signal is digital audio signal.
204, according to the type of voice signal, voice signal is processed, obtained the digital audio signal of pulse code modulation pcm encoder;
Particularly, the specific implementation of this step includes but not limited to:
In the time that the type of voice signal is analoging sound signal, to voice signal sample, quantification, pcm encoder, obtain the digital audio signal of pcm encoder;
In the time that the type of voice signal is digital audio signal, voice signal is decoded, obtain the digital audio signal of pcm encoder
For example: got voice signal by step 202, determined that by step 203 type of voice signal is analoging sound signal, to voice signal sample, quantification, pcm encoder, obtain the digital audio signal of pcm encoder.
Get voice signal by step 202, determined that by step 203 type of voice signal is digital audio signal, voice signal has been decoded, obtained the digital audio signal of pcm encoder.
205, the digital audio signal of pcm encoder is processed the digital audio signal that obtains transmitting for trunking communication;
Particularly, the specific implementation of this step includes but not limited to:
According to the standard of transmission of sound signals in trunking communication, the digital audio signal of pcm encoder is encoded, the digital audio signal that obtains transmitting for trunking communication.
In trunking communication, the standard of transmission of sound signals is formulated in order to improve communication quality in radio communication, in communication, the voice signal that occupies the user of right of speech side is processed into the digital audio signal that is easy to transmit in radio communication, namely this voice signal is encoded according to wireless communication standard, obtain the digital audio signal by standard code.Can be EVRC(Enhanced Variable Rate Coder in the present embodiment, Enhanced Variable Rate Coder) can also be QCELP(Qualcomm Code Excited Linear Prediction, high pass Qualcomm Code Excited Linear Prediction (QCELP)).
For the ease of the transmission of information, preferably, in trunking communication, the standard of transmission of sound signals is adaptive multi-rate AMR coding transmission standard.
206, the digital audio signal transmitting for trunking communication is sent to base station.
Particularly, the implementation of this step includes but not limited to:
By communication, the digital audio signal transmitting for trunking communication is sent to base station, make base station send to the terminal of not occupying the user of right of speech side in trunking communication, this terminal of not occupying the user of right of speech side need to be decoded to this digital audio signal, just can obtain occupying the acoustic information of right of speech side.
The type of the definite voice signal of voice signal that the embodiment of the present invention is obtained by basis is processed the voice signal obtaining, obtain the digital audio signal of pulse code modulation pcm encoder, digital audio signal to this pcm encoder is processed, the digital audio signal that obtains transmitting for trunking communication, and send to base station, realize in trunking communication, according to the type of voice signal, voice signal is processed and is sent to base station, base station is sent to and do not occupy the user terminal of right of speech side, thereby can realize talking mode variation in trunking communication, improve transmission efficiency.
Embodiment tri-
Referring to Fig. 3, the embodiment of the present invention provides the audio-signal processing apparatus in a kind of trunking communication, and this device is for carrying out the audio signal processing method of the trunking communication that above-described embodiment one to embodiment bis-provides, and this device comprises:
Acquisition module 301, for obtaining the voice signal of trunking communication;
Determination module 302, for the voice signal obtaining according to acquisition module 301, determines the type of voice signal;
The first processing module 303, processes for voice signal acquisition module 301 being obtained according to the type of the definite voice signal of determination module 302, obtains the digital audio signal of pulse code modulation pcm encoder;
The second processing module 304, processes the digital audio signal that obtains transmitting for trunking communication for the digital audio signal of pcm encoder that the first processing module 303 is obtained;
Sending module 305, sends to base station for the digital audio signal transmitting for trunking communication that the second processing module 304 is obtained.
Wherein, acquisition module 301, specifically for
Obtain voice signal by microphone; Or
By audio files is read, obtain voice signal, sound signal storage is in described audio files.
Wherein, determination module 302, specifically for:
If the amplitude of voice signal is continuous, determine that the type of voice signal is analoging sound signal;
If the amplitude of voice signal is discrete, determine that the type of voice signal is digital audio signal.
Wherein, the first processing module 303, specifically for:
In the time that the type of voice signal is analoging sound signal, to voice signal sample, quantification, pcm encoder, obtain the digital audio signal of pcm encoder;
In the time that the type of voice signal is digital audio signal, voice signal is decoded, obtain the digital audio signal of pcm encoder.
Wherein, the second processing module 304, specifically for
According to the standard of transmission of sound signals in trunking communication, the digital audio signal of pcm encoder is encoded, the digital audio signal that obtains transmitting for trunking communication.
Referring to Fig. 4, this device also comprises, receiver module 306, specifically for:
Be used for receiving the first instruction or the second instruction, the first instruction is used to indicate the reception of carrying out voice signal by microphone, and the second instruction is used to indicate reads audio files, and sound signal storage is in audio files.
Wherein, acquisition module 301 obtains the mode of the voice signal in trunking communication specifically can be referring to the associated description of the step 202 in above-described embodiment two, the voice signal that determination module 302 obtains according to acquisition module 301, the mode of determining the type of voice signal specifically can be referring to the associated description of the step 203 in above-described embodiment two, the voice signal that the first processing module 303 is obtained acquisition module 301 according to the type of the definite voice signal of determination module 302 is processed, the mode that obtains the digital audio signal of pulse code modulation pcm encoder specifically can be referring to the associated description of the step 204 of above-described embodiment two, the digital audio signal of the pcm encoder that the second processing module 304 obtains the first processing module 303 is processed, the mode of the digital audio signal that obtains transmitting for trunking communication specifically can be referring to the associated description of the step 205 of above-described embodiment two, the digital audio signal transmitting for trunking communication that sending module 305 obtains the second processing module 304 sends to the mode of base station specifically can be referring to the associated description of the step 206 of above-described embodiment two, receiver module 306 receives the mode of the first instruction or the second instruction specifically can be referring to the associated description of the step 201 of above-described embodiment two.Repeat no longer one by one herein.
In sum, the device that the embodiment of the present invention provides, the type of the definite voice signal of the voice signal that obtains by basis is processed the voice signal obtaining, obtain the digital audio signal of pulse code modulation pcm encoder, digital audio signal to this pcm encoder is processed, the digital audio signal that obtains transmitting for trunking communication, and send to base station, realize in trunking communication, according to the type of voice signal, voice signal is processed and is sent to base station, base station is sent to and do not occupy the user terminal of right of speech side, thereby can realize talking mode variation in trunking communication, improve transmission efficiency.
Embodiment tetra-
The embodiment of the present invention provides the audio-signal processing apparatus in a kind of trunking communication, referring to Fig. 5, this audio-signal processing apparatus comprises microphone 401, memory 402, processor 403, for example DSP(Digital Signal Processing, digital signal processing unit), user interface 404, for example display screen or pointing device or transducer, transmitter 405, communication bus 406.Communication bus 406 is for realizing the connection communication between these devices.
Wherein, microphone 401, for obtaining voice signal.
Memory 402, for stored sound file, sound signal storage is in audio files.
Processor 403, for the audio files of memory 402 is read, obtains voice signal; Also for according to voice signal, determine the type of voice signal, according to the type of voice signal, voice signal is processed, obtain the digital audio signal of pulse code modulation pcm encoder, digital audio signal to pcm encoder is processed, the digital audio signal that obtains transmitting for trunking communication.
Memory 402, also for voice signal, the digital audio signal of pulse code modulation pcm encoder and the digital audio signal transmitting for trunking communication in type, the trunking communication of the voice signal of storage cluster communication.
Transmitter 405, for sending to base station by the digital audio signal transmitting for trunking communication.
Preferably, processor 403, also for being continuous or discretely to judge the amplitude of voice signal.
Preferably, processor 403, also for the voice signal that is analoging sound signal to type sample, quantification, pcm encoder, obtain the digital audio signal of pcm encoder; Also decode for the voice signal that is digital audio signal to type, obtain the digital audio signal of pcm encoder.
Preferably, processor 403, for according to the standard of trunking communication transmission of sound signals, encodes to the digital audio signal of pcm encoder, the digital audio signal that obtains transmitting for trunking communication.
Memory 402, also for the standard of storage cluster communication transmission of sound signals.
User interface 404, for receiving the first instruction or the second instruction, the first instruction is used to indicate by microphone 401 carries out the reception of voice signal, and the second instruction is used to indicate processor 403 audio files is read, and sound signal storage is in audio files.
It should be noted that, in the respective embodiments described above, especially mentioned different modules, cannot coordinate enforcement if not having illustrated, can combine arbitrarily, to realize more useful effect, be not subject to pro forma restriction.Device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skills, in the situation that not paying performing creative labour, are appreciated that and implement.
The device that the embodiment of the present invention provides, the type of the definite voice signal of the voice signal that obtains by basis is processed the voice signal obtaining, obtain the digital audio signal of pulse code modulation pcm encoder, digital audio signal to this pcm encoder is processed, the digital audio signal that obtains transmitting for trunking communication, and send to base station, realize in trunking communication, according to the type of voice signal, voice signal is processed and is sent to base station, base station is sent to and do not occupy the user terminal of right of speech side, thereby can realize talking mode variation in trunking communication, improve transmission efficiency.
It should be noted that: when the voice signal of the audio-signal processing apparatus in the trunking communication that above-described embodiment provides in Processing Cluster communication, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the internal structure of equipment, to complete all or part of function described above.In addition, the audio signal processing method embodiment in audio-signal processing apparatus and trunking communication in the trunking communication that above-described embodiment provides belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.