Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but the present invention is not limited to the following examples.
Referring to Fig. 1, intelligent terminal in the embodiment of the invention can be landline telephone, mobile phone or the soft Phone of PC etc., switching network can be traditional PSTN, mobile telephone exchange network or any network of finishing the exchange of speech function and P2P (Peerto Peer, equity) network etc.; Signaling flow is not made any hypothesis, promptly use the signaling of original exchange of speech net, signaling is not done change; Include the speech data that the user shares in the Media Stream.The embodiment of the invention does not limit communicating pair or all is intelligent terminal in many ways, in actual applications, only requires that a side (local terminal or opposite end) gets final product for intelligent terminal.The embodiment of the invention also is applicable to the communication in the videoconference, and be the equipment of videoconference with the opposite end that the intelligent terminal of local terminal communicates this moment, and the opposite end voice signal that local terminal is received is the signal behind the audio mixing of being sent by this equipment.
With the local terminal is intelligent terminal, this end subscriber and end subscriber is respectively user A and user B is an example, the embodiment of the invention provides a kind of method and intelligent terminal of realizing that speech data is shared, at least a by from local terminal voice signal and opposite end voice signal, selecting, speech data stack with sharing realizes voice sharing in the intelligent terminal side.
Embodiment one
Sharing mode is set is to have only user B to listen to shared speech data to user A in the present embodiment, and referring to Fig. 2, the described method of the embodiment of the invention specifically may further comprise the steps:
Step 101: the local terminal intelligent terminal receives the control signal of opposite end voice signal (being the voice signal of user B) and user A input, and this control signal comprises that speech data obtains signal and sharing mode signal;
Wherein, speech data obtains signal and obtains the signal that needs shared speech data for the instruction intelligent terminal, and the sharing mode signal is that the signal of communicating pair to the shared mode of speech data is set;
Step 102: the local terminal intelligent terminal obtains signal according to the speech data of receiving, obtains shared speech data;
The speech data of sharing can be the speech documents of user's appointment or the speech documents of intelligent terminal acquiescence, it can be stored in flash memory, hard disk or the internal memory of intelligent terminal, also can obtain from computer or network by the interface (as USB interface) of intelligent terminal; The coded format of speech documents has multiple, and as forms such as way, wmv, wherein, the user once can share a plurality of speech documents, and can control respectively;
Step 103: intelligent terminal judges whether that success obtains speech data, if then execution in step 104; Otherwise, finish;
Step 104: intelligent terminal is promptly specified the mode of having only user B to listen to according to the sharing mode signal of receiving, selects local terminal voice signal (being the voice signal of user A), superposing voice data on the local terminal voice signal;
Intelligent terminal can provide audio frequency control interface (software interface or hardware interface) to give user A, receive the control signal of user A input by audio frequency control interface, further, can also comprise the audio operation signal in this control signal, as play/stop, suspending/resuming, replacing etc., and the audio attribute conditioning signal, as regulating volume, tone etc.; Correspondingly, intelligent terminal can carry out the adjusting of audio operation and/or audio attribute according to above-mentioned control signal to the speech data that obtains; Audio operation and audio attribute are regulated and can be carried out simultaneously, also can only carry out wherein a kind of;
Step 105: the intelligent terminal local terminal voice signal behind the speech data that will superpose is transferred to end subscriber B, and plays the opposite end voice signal of receiving; Be the voice signal that user B can hear user A, also can hear the shared speech data that the intelligent terminal of user A provides; And user A can only hear the voice signal of user B.
Present embodiment is by superposeing local terminal voice signal and shared speech data, can be implemented in the voice communication course of local terminal and opposite end and provide shared speech data for the opposite end, control has alleviated the burden of switch flexibly, has perhaps saved the cost that sets up the background music server separately; Improved the reliability of whole system effectively, realized, simple and convenient, easy realization with intelligent terminal.
Embodiment two
Sharing mode is set is to have only user A to listen to shared speech data to user A in the present embodiment, and referring to Fig. 3, the described method of the embodiment of the invention specifically may further comprise the steps:
Step 201: the local terminal intelligent terminal receives the control signal of opposite end voice signal (being the voice signal of user B) and user A input, and this control signal comprises that speech data obtains signal and sharing mode signal;
Wherein, speech data obtains signal and obtains the signal that needs shared speech data for the instruction intelligent terminal, and the sharing mode signal is that the signal of communicating pair to the shared mode of speech data is set;
Step 202: the local terminal intelligent terminal obtains signal according to the speech data of receiving, obtains shared speech data;
The speech data of sharing can be the speech documents of user's appointment or the speech documents of intelligent terminal acquiescence, it can be stored in flash memory, hard disk or the internal memory of intelligent terminal, also can obtain from computer or network by the interface (as USB interface) of intelligent terminal; The coded format of speech documents has multiple, and as forms such as wav, wmv, wherein, the user once can share a plurality of speech documents, and can control respectively;
Step 203: intelligent terminal judges whether that success obtains speech data, if then execution in step 204; Otherwise, finish;
Step 204: intelligent terminal is promptly specified the mode of having only user A to listen to according to the sharing mode signal of receiving, selects the opposite end voice signal, superposing voice data on the voice signal of opposite end;
Intelligent terminal can provide audio frequency control interface (software interface or hardware interface) to give user A, receive the control signal of user A input by audio frequency control interface, further, can also comprise the audio operation signal in this control signal, as play/stop, suspending/resuming, replacing etc., and the audio attribute conditioning signal, as regulating volume, tone etc.; Correspondingly, intelligent terminal can carry out the adjusting of audio operation and/or audio attribute according to above-mentioned control signal to the speech data that obtains; Audio operation and audio attribute are regulated and can be carried out simultaneously, also can only carry out wherein a kind of;
Step 205: intelligent terminal is transferred to the local terminal voice signal to end subscriber B, and plays the opposite end voice signal behind the speech data that superposeed; Be the voice signal that user B can only hear user A, and user A can hear the voice signal of user B, also can hear the shared speech data that the intelligent terminal of user A provides.
Present embodiment is by superposeing opposite end voice signal and shared speech data, can be implemented in the voice communication course of local terminal and opposite end and provide shared speech data for local terminal, control has alleviated the burden of switch flexibly, has perhaps saved the cost that sets up the background music server separately; Improved the reliability of whole system effectively, realized, simple and convenient, easy realization with intelligent terminal.
Embodiment three
User A is provided with sharing mode and listens to shared speech data simultaneously for user A and user B in the present embodiment, and referring to Fig. 4, the described method of the embodiment of the invention specifically may further comprise the steps:
Step 301: the local terminal intelligent terminal receives the control signal of opposite end voice signal (being the voice signal of user B) and user A input, and this control signal comprises that speech data obtains signal and sharing mode signal;
Wherein, speech data obtains signal and obtains the signal that needs shared speech data for the instruction intelligent terminal, and the sharing mode signal is that the signal of communicating pair to the shared mode of speech data is set;
Step 302: the local terminal intelligent terminal obtains signal according to the speech data of receiving, obtains shared speech data;
The speech data of sharing can be the speech documents of user's appointment or the speech documents of intelligent terminal acquiescence, it can be stored in flash memory, hard disk or the internal memory of intelligent terminal, also can obtain from computer or network by the interface (as USB interface) of intelligent terminal; The coded format of speech documents has multiple, and as forms such as wav, wmv, wherein, the user once can share a plurality of speech documents, and can control respectively;
Step 303: intelligent terminal judges whether that success obtains speech data, if then execution in step 304; Otherwise, finish;
Step 304: intelligent terminal is according to the sharing mode signal of receiving, the mode of promptly specifying both sides to listen to simultaneously, select local terminal voice signal (being the voice signal of user A) and opposite end voice signal (being the voice signal of user B), superposing voice data on local terminal voice signal and opposite end voice signal respectively;
Intelligent terminal can provide audio frequency control interface (software interface or hardware interface) to give user A, receive the control signal of user A input by audio frequency control interface, further, can also comprise the audio operation signal in this control signal, as play/stop, suspending/resuming, replacing etc., and the audio attribute conditioning signal, as regulating volume, tone etc.; Correspondingly, intelligent terminal can carry out the adjusting of audio operation and/or audio attribute according to above-mentioned control signal to the speech data that obtains; Audio operation and audio attribute are regulated and can be carried out simultaneously, also can only carry out wherein a kind of;
Step 305: the intelligent terminal local terminal voice signal behind the speech data that will superpose is transferred to end subscriber B, and plays the opposite end voice signal behind the speech data that superposeed; Be the voice signal that user A can hear user B, also can hear the shared speech data that the intelligent terminal of user A provides; User B can hear the voice signal of user A, also can hear the shared speech data that the intelligent terminal of user A provides.
Present embodiment is by superposeing local terminal voice signal and opposite end voice signal respectively with shared speech data, can be implemented in the voice communication course of local terminal and opposite end and provide shared speech data for both sides, control flexibly, alleviate the burden of switch, perhaps saved the cost that sets up the background music server separately; Improved the reliability of whole system effectively, realized, simple and convenient, easy realization with intelligent terminal.
Further, all can also comprise following step among above-mentioned three embodiment:
After intelligent terminal obtains speech data, this speech data is carried out format conversion, convert thereof into and be easy to the coded format that superposes and synthesize, as linear PCM (Pulse Code Modulation, pulse-code modulation) form; Perhaps this speech data is carried out the conversion of digital signal to analog signal.
In addition, all can also comprise following step among above-mentioned three embodiment:
Intelligent terminal carries out format conversion to the opposite end voice signal after receiving the opposite end voice signal;
Intelligent terminal is before the local terminal voice signal behind the speech data that will superpose is transferred to the opposite end, and the conversion of advanced row format converts thereof into a kind of coded format that is easy to transmission and exchange in switching network, as PCM or G.729, G.723 wait, is transferred to the opposite end then.
By speech data is carried out format conversion, can make it be easier to stack and synthetic; By the signal after the stack is carried out format conversion, can make it be easier to transmission and exchange in switching network.
Embodiment four
Referring to Fig. 5, the embodiment of the invention also provides a kind of intelligent terminal of realizing that speech data is shared, specifically comprises:
1) control signal input module is used to receive the control signal that this end subscriber is sent, and this control signal comprises that speech data obtains signal and sharing mode signal;
Further, the control signal of user input can also comprise audio operation signal and audio attribute conditioning signal, for example: play/stop, suspending/resuming, replacing etc., and regulate volume, tone etc.; When speech data was the multi-path voice signal, control signal also was a plurality of, is used for controlling every road voice signal respectively, for example, improved the volume of first via voice signal, reduced the volume of the second road voice signal etc.
2) speech data acquisition module is used for obtaining signal according to the speech data that the control signal input module is received, obtains speech data;
3) local terminal speech channel input module is used to receive the local terminal voice signal;
4) opposite end speech channel input module is used to receive the opposite end voice signal of sending the opposite end;
5) voice sharing module, be used for the sharing mode signal received according to the control signal input module, the opposite end voice signal that local terminal voice signal of receiving from local terminal speech channel input module and opposite end speech channel input module are received, select at least one voice signal, the speech data that the superposing voice data acquisition module obtains on all voice signals of selecting;
6) local terminal speech channel output module is used for when the voice sharing module selects the local terminal voice signal to superpose, and the local terminal voice signal after the opposite end sends stack when non-selected local terminal voice signal superposes, sends the local terminal voice signal to the opposite end;
7) opposite end speech channel output module is used for playing the opposite end voice signal after superposeing when the voice sharing module selects the opposite end voice signal to superpose, and when non-selected opposite end voice signal superposes, plays the opposite end voice signal.
In order to make speech data be easy to stack and synthetic, further, above-mentioned intelligent terminal can also comprise:
The speech data modular converter is used for after the speech data acquisition module obtains speech data, and speech data is carried out format conversion or carries out the conversion of digital signal to analog signal.For example, the voice signal of wav form is converted into the voice signal of PCM form.
Referring to Fig. 6, wherein, the voice sharing module can specifically comprise:
Signal selector, when the sharing mode signal that is used for receiving when the control signal input module is listened to speech data for having only local terminal, the opposite end voice signal of selecting speech channel input module in opposite end to receive; When the sharing mode signal is listened to speech data for having only the opposite end, the local terminal voice signal of selecting local terminal speech channel input module to receive; When the sharing mode signal is local terminal and opposite end when listening to speech data simultaneously, the opposite end voice signal of selecting local terminal voice signal that local terminal speech channel input module receives and opposite end speech channel input module to receive;
The signal superimposer is used for the speech data that the superposing voice data acquisition module obtains on all voice signals that signal selector is selected.
In order to make voice signal be easier to transmission and exchange in switching network, further, intelligent terminal can also comprise:
The voice signal modular converter, be used for stack that the voice sharing module is obtained the local terminal voice signal behind the speech data carry out format conversion, and the signal after will changing is transferred to local terminal speech channel output module; Also be used for after opposite end speech channel input module is received the opposite end voice signal, the opposite end voice signal is carried out format conversion, and the signal after will changing being transferred to the voice sharing module.
For example,, be a kind of specific implementation of above-mentioned intelligent terminal, realize voice sharing with the first audio frequency superimposer and first switch and the second audio frequency superimposer and second switch referring to Fig. 7.Wherein, when first switch closure, when second switch is opened, have only the opposite end to share the situation of speech data among the corresponding embodiment one:, to have only local terminal to share the situation of speech data among the corresponding embodiment two when first switch opens, when second switch is closed; When first switch, second switch were closed simultaneously, local terminal and opposite end were shared the situation of speech data simultaneously among the corresponding embodiment three.Controller realizes that speech data carries out audio operation and audio attribute is regulated to sharing; Transducer is realized the local terminal voice signal after the stack is carried out format conversion or the opposite end voice signal is carried out format conversion; Further, controller also can carry out format conversion to speech data earlier, is transferred to the first audio frequency superimposer then and the second audio frequency superimposer superposes.
When local terminal and opposite end were intelligent terminal, above-mentioned sharing mode typical application had following several:
1) local terminal and opposite end all are provided with shared audio frequency, and the audio frequency that local terminal provides can be heard in the opposite end, and local terminal can be heard the audio frequency that the opposite end provides, and both sides listen the other side not disturb mutually for the audio frequency of oneself sharing separately;
2) provide shared audio frequency by a side, both sides can both hear this audio frequency;
For example, the local terminal intelligent terminal provides shared audio frequency, and both sides can both hear this audio frequency;
3) local terminal and opposite end both sides are provided with shared audio frequency, and both sides can both hear the stack of shared audio frequency of local terminal and the shared audio frequency in opposite end, and promptly both sides can both hear the audio after two kinds of audio frequency synthesize;
4) local terminal and opposite end both sides are provided with shared audio frequency, oneself only hear the audio frequency that oneself is shared, and promptly local terminal is heard the shared audio frequency that local terminal is provided with, and the shared audio frequency that the opposite end is provided with is heard in the opposite end.
Application under other sharing modes can be analogized and obtained, and does not give unnecessary details one by one at this.
Present embodiment is selected voice signal and superposing voice data by the voice sharing module, can be implemented in the voice communication course of local terminal and opposite end to folk prescription or both call sides shared speech data is provided; Except sharing background music, can also the shared environment audio or other according to the speech data that the specific occasion needs are shared, control more flexibly, alleviated the burden of switch, perhaps saved the cost that sets up the background music server separately; Improved the reliability of whole system effectively, realized, improved user's ease for use, do not had miscellaneous assignment procedure, simple and convenient, easy realization with intelligent terminal.
The embodiment of the invention can utilize pure software or way of hardware and software combination to realize, corresponding software can be stored in the storage medium that can read, among the ROM (Read Only Memory, read-only memory) or flash memory as intelligent terminal.
Above-described embodiment is a more preferably embodiment of the present invention, and common variation that those skilled in the art carries out in the technical solution of the present invention scope and replacement all should be included in protection scope of the present invention.