WO2017219546A1 - Information processing method, terminal, and computer storage medium - Google Patents

Information processing method, terminal, and computer storage medium Download PDF

Info

Publication number
WO2017219546A1
WO2017219546A1 PCT/CN2016/102191 CN2016102191W WO2017219546A1 WO 2017219546 A1 WO2017219546 A1 WO 2017219546A1 CN 2016102191 W CN2016102191 W CN 2016102191W WO 2017219546 A1 WO2017219546 A1 WO 2017219546A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
information
node
network
group
Prior art date
Application number
PCT/CN2016/102191
Other languages
French (fr)
Chinese (zh)
Inventor
陈新
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017219546A1 publication Critical patent/WO2017219546A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications, and in particular, to an information processing method, a terminal, and a computer storage medium.
  • an embodiment of the present invention provides an information processing method, a terminal, and a computer storage medium to improve a voice broadcast effect.
  • An embodiment of the present invention provides an information processing method, where the method includes:
  • An embodiment of the present invention provides an information processing method, where the method includes:
  • An embodiment of the present invention provides a terminal, where the terminal includes: a first receiving unit, a first determining unit, a first storage unit, a first acquiring unit, and a first sending unit, where
  • the first receiving unit is configured to receive i network construction requests sent by the i terminals, where each terminal sends a network construction request, where i is a natural number greater than or equal to 1;
  • the first determining unit is configured to group the i terminals according to the receiving order of the i network construction requests, and determine network information of the i terminals;
  • the first storage unit is configured to save network information of the i terminals to an information data table
  • the first obtaining unit is configured to acquire a digital audio file
  • the first sending unit is configured to send the digital audio file according to network information of the i terminals.
  • An embodiment of the present invention provides a terminal, where the terminal includes: a second receiving unit, a third storage unit, a fourth storage unit, and a playing unit, where
  • the second receiving unit is configured to receive node information of the first terminal that is sent by the third terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal;
  • the third storage unit is configured to save the wireless communication identifier of the first terminal to the wireless List of communication identifiers;
  • the second receiving unit is further configured to receive a digital audio file sent by the third terminal;
  • the fourth storage unit is configured to save the digital audio file
  • the playing unit is configured to play the digital audio file.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute at least one of the foregoing information processing methods.
  • An embodiment of the present invention provides an information processing method and a terminal, and receives i network construction requests sent by i terminals, where each terminal sends a network construction request, where i is a natural number greater than or equal to 1; according to the i
  • the receiving order of the network request is grouped, the i terminals are grouped, the network information of the i terminals is determined, the network information of the i terminals is saved to the information data table, and the digital audio file is obtained, according to the The network information of the terminals transmits the digital audio file.
  • the information processing method and the terminal provided by the embodiment of the present invention, through the terminal sending a network construction request, establishing a tree network, recording, transmitting, and playing voice through the tree network established by the terminal, and the conference room where the sound reinforcement system is not configured indoors or outdoors Completing the host, speech, and other activities, and is not subject to the volume limit of the host or the speaker, so that each user in the venue has the same auditory effect, improving the user experience.
  • FIG. 1 is a schematic flowchart 1 of an information processing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a terminal tree network according to an embodiment of the present invention.
  • FIG. 3 is a second schematic flowchart of an information processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart 3 of an information processing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an information processing method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram 1 of a terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a second schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram 3 of a terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram 4 of a terminal according to an embodiment of the present invention.
  • An embodiment of the present invention provides an information processing method. As shown in FIG. 1 , the method may include:
  • Step 101 Receive i network construction requests sent by i terminals.
  • the execution body of the information processing method provided by the embodiment of the present invention is a terminal, and the terminal may be a mobile phone, a tablet computer, or the like, and may also be another terminal having a wireless communication function, an audio recording and a play function.
  • the terminal may include: a wireless short-range communication sub-module, a 3G/4G wireless communication sub-module, a tree-shaped network establishment sub-module, a recording sub-module, a voice data transceiver sub-module, and a play voice sub-module.
  • the wireless short-range communication sub-module is used for wireless communication between mobile terminals to assist in the task of establishing a tree network.
  • 3G/4G wireless communication sub-module for wireless communication between mobile terminals, on the one hand to assist in the task of establishing a tree network, and on the other hand for transmitting and receiving Sound stream data.
  • the tree network establishes a sub-module for transmitting, receiving, and processing a network request through wireless communication between the user's mobile terminal, thereby connecting the mobile terminals to establish a tree network.
  • a recording sub-module for recording a user's voice in real time and encoding the voice information as a voice data file.
  • the voice data transceiver sub-module is configured to receive voice stream data sent by other node mobile terminal, save as a voice data file, and forward the voice to other related mobile terminal terminals in real time. Play a voice sub-module for parsing saved voice data files and playing them in real time.
  • a terminal receives a network construction request sent by a plurality of other terminals, and the terminal that sends the network construction request is built into a tree network structure according to the network construction request, as shown in FIG. 2, the tree network is divided into three layers.
  • the mobile terminal is also divided into three types of nodes in the network, namely a root node, an intermediate node, and a leaf node.
  • the terminal that receives the i network construction request can be understood as the mobile phone terminal of the root node
  • the terminal that sends the network construction request can be understood as the intermediate node or the mobile terminal of the leaf node.
  • Each terminal sends a network request, and i is a natural number greater than or equal to 1.
  • Any one of the i network construction requests may include: a request identifier, a wireless communication identifier ID, and a node type.
  • the network construction request received or sent by each terminal may adopt a predefined format, for example, the predetermined format is: request identifier + wireless communication ID + node type.
  • the request identifier is used to identify the request type, so that the network construction request message distinguishes other sent information or messages, so that when the terminal receives the network construction request, the terminal can quickly recognize that the other terminal sends a request to establish a tree network.
  • the network requests and performs subsequent analysis of the network request.
  • the wireless communication ID in the network request refers to the 3G/4G wireless communication ID, which is generally the IP address and port number of the mobile terminal.
  • the mobile terminal can be used.
  • the socket interface establishes a TCP/IP connection for data transmission through this IP address and port with other mobile terminals.
  • the node type in the network request is to identify the location of each mobile terminal in the tree network, that is, the intermediate node or the leaf node.
  • the mobile terminal of each node can send and receive network request and node information through wireless communication, and the wireless communication mode can use the short message to send and receive network request between nodes, or use short-range wireless communication to send and receive network.
  • the request, the short-range wireless communication mode may be WIFI, Bluetooth, etc., and may also be other short-range wireless communication modes, which are not limited by the embodiment of the present invention.
  • Step 102 Group the i terminals according to the receiving order of the i network construction requests, determine network information of the i terminals, and save the network information of the i terminals to the information data table.
  • the network information may include: group information and node information, and the terminal saves the network information of the i terminals to the information data table, which may include:
  • the terminal saves the group information of the i terminals to the packet information data table, and saves the node information of the i terminals to the node information data table.
  • the first network establishment request is used for the first network establishment request, and the first network establishment request is a network construction request, and the terminal that sends the first network construction request is the first terminal.
  • grouping according to the order of receiving the network request may be performed to avoid random grouping, which leads to the intersection of different branches of the tree network, and thus two unsynchronized broadcast sounds due to the unreasonable transmission delay.
  • the terminal searches for the presence of the group information in the information data table
  • the first terminal is added to the second packet, and the node type in the first network request is set as a leaf node, and the first node is saved.
  • each of the grouping information meets a preset condition, setting the first terminal as an intermediate node terminal of the third group, creating group information of the third group, and saving the group of the third group
  • the information is sent to the group information data table, and the node type in the first network construction request is set as an intermediate node, and the node information of the first terminal is saved to the node information data table.
  • the root node determines the intermediate node and the leaf node of each group by grouping the sending network request nodes, thereby organizing all the nodes into a tree network having a three-layer structure.
  • the maximum number of nodes in each group is generally a pre-configured value, which depends on the total number of nodes in the network and the maximum number of leaf nodes that each intermediate node can connect. The more leaf nodes connected to the intermediate node, the more The greater the load on the intermediate node to transmit voice stream data, which affects the performance of the network and the user's listening experience, so it is generally necessary to select an appropriate value based on experience.
  • the number of total mobile terminal nodes is taken as 50, and the maximum number of mobile terminal nodes in each group is taken as an example to illustrate the grouping method and flow of the root node.
  • the root node mobile terminal treats each mobile terminal node that sends the network construction request as a new node to join the network, and dynamically groups the nodes.
  • the root node receives the first network construction request sent by the node I1. It first queries the packet and node information data table, and finds that there is no node in the network, and then uses I1 as the intermediate node of the first group to create the first group.
  • Group information can be the name "group 1", and save the information of group 1 to the group information data table, then change the node type of I1 to the intermediate node, and put the node of node I1 The point information is saved in the node information data table, so that the intermediate node I1 is added to the tree network.
  • the root node receives the second network construction request sent by the node L11. It also first queries the packet and node information data table, and finds that there is already a group 1 in the network, and the number of nodes in the group 1 does not reach the maximum mobile terminal node of each group. The number is added to the first packet, and the information of the node L11 is saved to the node information data table, and then the root node sends the receiving information of the leaf node L11 to the intermediate node I1, and the I1 mobile terminal node receives the number. After the information, the wireless communication ID of L11 is saved in the wireless communication ID list, so that the leaf node L11 is added to the tree network.
  • the root node receives the third to tenth network construction requests sent by the mobile terminal nodes L12 to L19, and the root node adds the leaf nodes L12 to L19 to the group 1 according to the step of adding the leaf node L11, and The information of the eight leaf nodes is saved in the node information data table, and the information of the eight leaf nodes is sent to the node I1.
  • the node's wireless communication ID is saved to the wireless communication ID list.
  • Node I1 saves the wireless communication IDs of the nine leaf nodes, laying the foundation for the subsequent transmission of voice stream data to the nine mobile terminal nodes.
  • the root node also adds leaf nodes L12 to L19 to the tree network.
  • the root node receives the eleventh network construction request sent by the node I2. It also first queries the packet and node information data table, and finds that the group 1 already exists in the network, and the number of members of the group 1 has reached the maximum mobile terminal of each group. The number of nodes, then I2 is used as the intermediate node of the second group, the group information of the second group is created, the name is "group 2", and the information of group 2 is saved into the group information data table, and then the node type of I2 is changed to The intermediate node saves the information of the node I2 to the node information data table, so that the intermediate node I2 is added to the tree network.
  • the root node successively receives the network construction request of the nine nodes, such as the nodes L21 to L29, and also adds the leaf nodes L21 to L29 to the group 2 according to the operation steps of the above-mentioned processing nodes L11 to L19, and also adds them to In a tree network.
  • the root node processes a series of network construction requests such as nodes I3, L31-L39, I4, L41-L49, I5, and L51-L59, and adds the intermediate nodes and leaf nodes according to the above steps.
  • Group 3, Group 4, and Group 5 are created separately, and these mobile terminal nodes are added to the tree network.
  • all mobile terminal nodes are connected to a tree network to prepare for subsequent transmission of digital audio files by the root node mobile phone.
  • Step 103 Acquire a digital audio file, and send the digital audio file according to network information of the i terminals.
  • the terminal acquires a voice stream, encodes the voice stream to obtain a digital audio file, and sends the digital audio file to an intermediate node terminal of each group in the group information data table, where the digital audio file is
  • the intermediate node terminal is further sent to the terminal in the leaf node, so that the intermediate node terminal of each packet can send the digital audio file to the leaf node terminal.
  • the digital audio file is a standard digital audio file, which is recorded by the user's voice, and then the voice information is encoded and processed, and finally saved to the mobile terminal, and is binary in the tree network. Voice stream transmission.
  • each person uses a mobile phone to send a network request to the host's mobile phone.
  • the host's mobile phone can be understood as the root node mobile phone.
  • the host's mobile phone receives and processes these network construction requests, and groups the mobile phone nodes that send the request, and determines
  • the intermediate node mobile phone of each group sends the node information of the corresponding group to the intermediate node mobile phone.
  • the intermediate node receives the node information, and saves the wireless communication ID of the leaf node mobile phone to the wireless communication ID list after parsing.
  • the method further includes:
  • the communication connection needs to be established before the digital audio file is transmitted.
  • the root node terminal needs to save the acquired digital audio file first, and then establish a communication connection with the intermediate node terminal. After establishing the connection, the digital audio file is sent to the intermediate node terminal.
  • the terminal sends a network construction request, establishes a tree network, records, transmits, and plays the voice through the tree network established by the terminal, and can complete the host in the indoor or outdoor venue where the sound reinforcement system is not configured. Activities such as speeches and speeches are not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
  • An embodiment of the present invention provides an information processing method. As shown in FIG. 3, the method may include:
  • Step 201 Receive node information of the first terminal sent by the third terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal, and saves the wireless communication identifier of the first terminal to the wireless A list of communication identifiers.
  • the execution body of the information processing method provided by the embodiment of the present invention is a terminal, and the terminal is a terminal of an intermediate node of a tree network, and the terminal may be a mobile phone, a tablet computer, etc., and may also have other wireless communication functions, audio recording and playback. Functional terminal.
  • the third terminal may be understood as a root node terminal, and the first terminal may be understood as a leaf node terminal.
  • the intermediate node terminal receives the node information of the leaf node sent by the root node, and saves the wireless communication identifier of the leaf node to the wireless communication identifier list.
  • Step 202 Receive a digital audio file sent by the third terminal, save the digital audio file, and play the digital audio file.
  • the intermediate node terminal receives the root node terminal to send the digital audio file, saves the digital audio file, and then plays the digital audio file, and the user of the intermediate node terminal can hear the root node. Digital audio file for the end user.
  • the method may further include:
  • Step 203 Send the digital audio file to a terminal corresponding to each wireless communication identifier in the wireless communication identifier list.
  • the intermediate node terminal sends the saved digital audio file sent by the root node terminal to the leaf node terminal corresponding to each wireless communication identifier stored in the wireless communication identifier list, and the leaf node terminal receives the digital audio file, and then plays the For digital audio files, the user of the leaf node terminal can hear the digital audio file of the root node end user.
  • the method may further include:
  • Step 204 Send a first network request to a third terminal, where the first network request is used to trigger the third terminal to determine network information based on the first network request, so that the third The terminal determines the network construction information according to the first network construction request.
  • the first network construction request includes: a request identifier, a wireless communication identifier, and a node type.
  • the intermediate node terminal sends a network construction request to the root node terminal, and the receiving sequence of the network forming request received by the root node terminal determines the network construction information, that is, determines to send the network.
  • the grouping information and node information of the requested terminal are included in the network construction information.
  • digital audio file transmission is performed by using interaction between mobile phone terminals of different node types in a tree network.
  • the event host or speaker speaks to the root node mobile terminal, and the mobile terminal records the voice streams in real time, and simultaneously encodes the voice information and saves it as a binary digital audio file; the root node mobile terminal establishes communication with its associated intermediate node mobile terminal respectively.
  • the intermediate node mobile terminal receives the recorded binary voice stream, temporarily stores it in the form of a binary digital audio file, and the intermediate node mobile terminal analyzes the audio file, and then The received voice stream is played out, and the user of the intermediate node mobile terminal can synchronously hear the host's speech in real time; at the same time, each intermediate node mobile terminal establishes a communication connection with its associated leaf node mobile terminal, and sends these communication links to the leaves.
  • the node mobile terminal transmits the received binary voice stream in real time; each leaf node mobile terminal receives the recorded binary voice stream and temporarily stores it in the form of a binary digital audio file, and the leaf node mobile terminal parses the audio file, and then receives the audio file.
  • the voice stream is played out, and the user of the leaf node mobile terminal can synchronously hear the host's speech in real time.
  • the terminal sends a network construction request, establishes a tree network, records, transmits, and plays the voice through the tree network established by the terminal, and can complete the host in the indoor or outdoor venue where the sound reinforcement system is not configured. Activities such as speeches and speeches are not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
  • An embodiment of the present invention provides an information processing method. As shown in FIG. 4, the method may include:
  • Step 301 The node terminal sends a network construction request to the root node terminal.
  • a tree-shaped network is established by using a mobile phone terminal, and digital audio file transmission is performed by using interaction between mobile phone terminals of different node types in the tree network.
  • the mobile phone terminal can include: a wireless short-range communication module, a 3G/4G wireless communication module, a tree network establishment module, a recording module, a voice data transceiver module, and a play voice module; the wireless short-range communication module is used for wirelessly with other mobile phone terminals.
  • 3G/4G wireless communication module is used for wireless communication with other mobile terminals, sending and receiving network request, assisting in establishing tree network or for transmitting and receiving voice stream data;
  • the network creation module is used to connect all mobile terminals to establish a tree network;
  • the recording module is used to record the voice of the host. And encoding the voice information into an audio digital file;
  • the voice data transceiver module is used to establish a network connection between the node mobile terminal, and send and receive voice stream data;
  • the play voice module is used to parse the received voice stream data and play them come out.
  • the node terminal may be a plurality of mobile phone terminals, and the plurality of mobile phone terminals send a network construction request to the root node mobile phone terminal in a predetermined format by using a wireless communication manner.
  • the predetermined format may be: request identification + wireless communication ID + node type.
  • Step 302 The root node terminal receives the network construction request, and determines the network construction information.
  • the root node mobile phone terminal parses the network construction request, and groups the node terminals according to the sequence of receiving the network request, and determines the node terminal as a middle of a certain group.
  • the node terminal is also a leaf node terminal, and the group information is saved in the group information data table, and the node information is saved in the node information data table.
  • Step 303 The root node terminal sends the node information of each group of leaf node terminals to the intermediate node terminal of each group.
  • Step 304 The intermediate node terminal receives the node information of the leaf node terminal and saves the information.
  • the intermediate node mobile phone terminal receives and parses the node information of the leaf nodes, and saves the wireless communication IDs of the leaf nodes to the local wireless communication ID list, so that all the mobile phone terminals form a tree network.
  • Step 305 The root node terminal acquires a digital audio file.
  • the user of the root node mobile terminal speaks to the root node mobile terminal, and the root node mobile terminal records in real time, and encodes the voice stream and saves it as a digital audio file, that is, the root node mobile terminal acquires the user's digital audio file.
  • Step 306 The root node terminal separately sends the digital audio file to the intermediate node terminal of each packet.
  • the root node mobile phone terminal and its associated intermediate node are respectively built by the wireless communication ID.
  • the connection is made, and then the voice stream data recorded in the audio file is sent to the intermediate node mobile terminal, that is, the digital audio file is sent.
  • Step 307 The intermediate node terminal receives the digital audio file, plays the digital audio file, and sends the digital audio file to the leaf node terminal.
  • the intermediate node mobile terminal receives the voice stream data, temporarily stores it as a digital audio file, parses the data stored in the digital audio file, and then plays it out.
  • the intermediate node mobile phone terminal and its associated leaf node respectively establish a connection through the wireless communication ID, and then send the voice stream data in the audio file to the leaf node mobile terminal, that is, send the leaf node mobile terminal digital audio file.
  • Step 308 The leaf node terminal receives the digital audio file and plays the digital audio file.
  • the leaf node mobile terminal receives the voice stream data and temporarily stores the data as a digital audio file, and the leaf node mobile terminal parses the data saved in the file, and then plays the data.
  • Embodiments of the present invention provide an information processing method, which implements voice stream data transmission through wireless communication between a root node terminal, an intermediate node terminal, and a leaf node terminal based on a tree network established between terminals, thereby completing a real-time playback function. . Therefore, before real-time playback, all terminals that need to play simultaneously need to be connected by wireless communication to form a tree network.
  • the corresponding mobile terminal establishes a TCP/IP connection and then transmits the voice stream data to the leaf node mobile terminal.
  • TCP between the nodes can be pre-established between the intermediate node and the leaf node mobile terminal and between the root node and the intermediate node mobile terminal in establishing the tree network.
  • /IP connection so that after the root node mobile phone terminal records the voice, each node can directly send and receive voice stream data.
  • a leaf node mobile terminal user starts a network construction request, and establishes a tree network through the interaction of each node mobile terminal, and the host's speech passes the system recording voice, and each node in the network sends and receives voice stream data. Finally, the leaf node mobile terminal user hears the entire process of the host's speech through the mobile terminal, as shown in FIG. 5.
  • the leaf node mobile terminal sends a network construction request to the root node mobile terminal (root).
  • the root parses the request and adds L11 to group 1 with I1 as the intermediate node, and saves L11. Packet and node information into the packet and node information data tables.
  • the root node mobile terminal (root) transmits the node information of the leaf node L11 to the intermediate node I1.
  • the I1 parses the node information and saves the wireless communication ID of the L11 to the local wireless communication ID list. In this way, the three node mobile terminals of L11, I1 and root are connected in the network.
  • the root node mobile terminal records the speech of the root node user, and encodes the voice information and saves it as a digital audio file.
  • the root node mobile terminal establishes a TCP/IP connection with the I1 node mobile terminal and the I1 node mobile terminal, and then transmits the recorded digital audio file to the I1 node mobile terminal.
  • the I1 node mobile terminal receives the digital audio file, parses and acquires the voice stream data, plays the digital audio file, and establishes a TCP/IP connection with the L11 wireless communication ID and the L11 node mobile terminal, and then transmits the received number to the L11 node mobile terminal. Audio file.
  • the L11 node mobile terminal receives the digital audio file, and after parsing and acquiring the voice stream data, plays the digital audio file. In this way, the user of the L11 node mobile terminal can hear the voice of the root node user by using the mobile terminal.
  • each terminal may further add a terminal to the tree network in the process of synchronously playing the digital audio file, so that the newly added terminal can receive the digital audio of the root node terminal. file.
  • some new members entered the venue to participate in the event. They used the mobile phone to send the host to the network to request the network.
  • the host's mobile phone dynamically groups the mobile phone nodes that send the network request. These mobile phone nodes either join existing ones that are not full, or create new ones. After a series of operations, these are sent to the network request.
  • the mobile node is dynamically added to the tree network, so that everyone who sends the network request can also hear the voice of the host from the mobile phone.
  • the terminal sends a network construction request, establishes a tree network, records, transmits, and plays the voice through the tree network established by the terminal, and can complete the host in the indoor or outdoor venue where the sound reinforcement system is not configured. Activities such as speeches and speeches are not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
  • the embodiment of the present invention provides a terminal 5, as shown in FIG. 6, the terminal 5 includes: a first receiving unit 50, a first determining unit 51, a first storage unit 52, a first obtaining unit 53, and a first sending unit. 54, among them,
  • the first receiving unit 50 is configured to receive i network construction requests sent by the i terminals, where each terminal sends a network construction request, where i is a natural number greater than or equal to 1;
  • the first determining unit 51 is configured to group the i terminals according to the receiving order of the i network construction requests, and determine network information of the i terminals;
  • the first storage unit 52 is configured to save the network information of the i terminals to the information data table;
  • the first obtaining unit 53 is configured to acquire a digital audio file.
  • the first sending unit 54 is configured to send the digital audio file according to the networking information of the i terminals.
  • the network forming request includes: a request identifier, a wireless communication identifier, and a node type.
  • the network information includes: group information and node information
  • the first storage unit 52 is configured to save the group information of the i terminals to the packet information data table, and is further configured to save the node information of the i terminals to the node information data table.
  • the first network construction request is a network construction request for any one of the i network construction requests, and the terminal that sends the first network construction request is the first terminal;
  • the first determining unit 51 is configured to search whether the group information exists in the information data table, and is further configured to: if the group information does not exist, set the first terminal as an intermediate node terminal of the first group, and create a Group information of the first group;
  • the first storage unit 52 is configured to save group information of the first group to the group information data table
  • the first determining unit 51 is configured to set a node type in the first network forming request as an intermediate node
  • the first storage unit 52 is configured to save node information of the first terminal to the node information data table
  • the first determining unit 51 is configured to determine, if the group information exists, whether each of the grouping information meets a preset condition, and if the second group in the grouping information does not meet the preset condition, The first terminal joins the second group, and sets a node type in the first network establishment request to a leaf node;
  • the first storage unit 52 is configured to save node information of the first terminal to the node information data table
  • the first sending unit 54 is configured to send the node information of the first terminal to the second terminal, the second terminal is an intermediate node terminal of the second group, and the node information carries the first terminal Node type and wireless communication ID.
  • the first determining unit 51 is configured to: if each of the grouping information meets a preset condition, set the first terminal to be an intermediate node terminal of the third group, and create the The group information of the three groups is configured to set the node type in the first network establishment request to be an intermediate node;
  • the first storage unit 52 is configured to save the group information of the third group to the group information data table, and is further configured to save the node information of the first terminal to the node information data table.
  • the first obtaining unit 53 is configured to acquire a voice stream, and encode the voice stream to obtain a digital audio file.
  • the first sending unit 54 is configured to send the digital audio file to an intermediate node terminal of each packet in the packet information data table, where the digital audio file is used for the intermediate node terminal to distribute Give the leaf node terminal.
  • the intermediate node terminal of each of the packets is sent to the leaf node terminal.
  • the terminal further includes: a second storage unit 55, a connection unit 56,
  • the second storage unit 55 is configured to save the digital audio file
  • the connecting unit 56 is configured to establish a connection with the intermediate node terminal according to a wireless communication identifier of an intermediate node terminal of each packet in the packet information data table.
  • the terminal provided by the embodiment of the present invention can establish a tree-shaped network by sending a network construction request, and record, transmit, and play voice through a tree network established by the terminal, and can complete hosting, speech, etc. in a venue where the sound reinforcement system is not installed indoors or outdoors.
  • the activity is not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
  • the embodiment of the present invention provides a terminal 6.
  • the terminal 6 includes: a second receiving unit 60, a third storage unit 61, a fourth storage unit 62, and a playing unit 63, where
  • the second receiving unit 60 is configured to receive the node information of the first terminal that is sent by the third terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal;
  • the third storage unit 61 is configured to save the wireless communication identifier of the first terminal to the wireless communication identifier list;
  • the second receiving unit 60 is further configured to receive a digital audio file sent by the third terminal;
  • the fourth storage unit 62 is configured to save the digital audio file
  • the playing unit 63 is configured to play the digital audio file.
  • the terminal further includes: a second sending unit 64, configured to send a first network request to the third terminal, so that the third terminal is configured according to the first
  • the network request determines network information
  • the first network request includes: a request identifier, a wireless communication identifier, and a node type.
  • the terminal further includes: a second sending unit 64, configured to send the digital audio file to a terminal corresponding to each wireless communication identifier in the wireless communication identifier list.
  • a second sending unit 64 configured to send the digital audio file to a terminal corresponding to each wireless communication identifier in the wireless communication identifier list.
  • the terminal provided by the embodiment of the present invention can establish a tree-shaped network by sending a network construction request, and record, transmit, and play voice through a tree network established by the terminal, and can complete hosting, speech, etc. in a venue where the sound reinforcement system is not installed indoors or outdoors. Activity and not subject to loud volume by the host or speaker The small limit makes every user in the venue have the same auditory effect and improves the user experience.
  • the embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute one or more of the foregoing information processing methods, for example, FIG. One or more of the methods shown in Figures 3, 4 and 5.
  • the computer storage medium may include various storage media such as a random storage medium RAM, a read-only storage medium ROM, a flash memory, a USB flash drive, or a magnetic tape, and may be a non-transitory storage medium.
  • the processor or processing circuit in the terminal provided by the foregoing embodiment can implement one or more of the above information processing methods by running an instruction.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiments of the invention disclose an information processing method and terminal. The information processing method comprises: receiving i connection establishment requests transmitted from i terminals, wherein each of the terminals transmits a connection establishment request, and i is a natural number exceeding or equal to 1; grouping, according to a receiving order of the i connection establishment requests, the i terminals, determining, connection establishment information of the i terminals, and storing, to an information table, the connection establishment information of the i terminals; and acquiring a digital audio file, and transmitting, according to the connection establishment information of the i terminals, the digital audio file. The embodiments of the invention also provide a computer storage medium.

Description

信息处理方法、终端和计算机存储介质Information processing method, terminal and computer storage medium 技术领域Technical field
本发明涉及通信领域,尤其涉及一种信息处理方法、终端和计算机存储介质。The present invention relates to the field of communications, and in particular, to an information processing method, a terminal, and a computer storage medium.
背景技术Background technique
人们常常会举行一些大型的集体活动,比如婚宴、公司年会等活动,参加的人数少则几十人,多则上百人不等。这种活动,一般八到十人围坐一桌,主席台配置专业的音响,主持人通过麦克风宣讲和主持会议。现有技术中,在上述大型的集体活动中,参会人员可以通过麦克风听到主持人的声音,但是,对于距离主席台较远的位置或者当参会人员在互相交谈,整个环境比较嘈杂时,一部分人就无法听清主持人的声音,使得活动达不到预期的效果。People often hold large-scale group activities, such as wedding banquets, company annual meetings, etc. The number of participants ranges from a few dozen to more than a hundred. This kind of activity, usually eight to ten people sit around a table, the podium is equipped with professional audio, the host preach and host the meeting through the microphone. In the prior art, in the above-mentioned large-scale group activities, the participants can hear the voice of the host through the microphone, but when the distance is far from the rostrum or when the participants are talking to each other, the whole environment is noisy. Some people can't hear the voice of the host, making the activity less than expected.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种信息处理方法、终端和计算机存储介质,提升语音播出效果。In view of this, an embodiment of the present invention provides an information processing method, a terminal, and a computer storage medium to improve a voice broadcast effect.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种信息处理方法,所述方法包括:An embodiment of the present invention provides an information processing method, where the method includes:
接收i个终端发送的i个建网请求,其中,每一个终端发送一个建网请求,i为大于等于1的自然数;Receiving i network construction requests sent by i terminals, wherein each terminal sends a network construction request, where i is a natural number greater than or equal to 1;
根据所述i个建网请求的接收顺序对所述i个终端进行分组,确定所述i个终端的建网信息,保存所述i个终端的建网信息至信息数据表; And determining, according to the receiving order of the i network construction requests, the i terminals, the network information of the i terminals, and the network information of the i terminals to the information data table;
获取数字音频文件,根据所述i个终端的建网信息发送所述数字音频文件。Obtaining a digital audio file, and transmitting the digital audio file according to the network information of the i terminals.
本发明实施例提供一种信息处理方法,所述方法包括:An embodiment of the present invention provides an information processing method, where the method includes:
接收第三终端发送的第一终端的节点信息,所述第一终端的节点信息携带所述第一终端的节点类型和无线通讯标识,保存所述第一终端的无线通讯标识至无线通讯标识列表;Receiving, by the third terminal, the node information of the first terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal, and saves the wireless communication identifier of the first terminal to the wireless communication identifier list. ;
接收所述第三终端发送的数字音频文件,保存所述数字音频文件,播放所述数字音频文件。Receiving a digital audio file sent by the third terminal, saving the digital audio file, and playing the digital audio file.
本发明实施例提供一种终端,所述终端包括:第一接收单元、第一确定单元、第一存储单元、第一获取单元、第一发送单元,其中,An embodiment of the present invention provides a terminal, where the terminal includes: a first receiving unit, a first determining unit, a first storage unit, a first acquiring unit, and a first sending unit, where
所述第一接收单元,配置为接收i个终端发送的i个建网请求,其中,每一个终端发送一个建网请求,i为大于等于1的自然数;The first receiving unit is configured to receive i network construction requests sent by the i terminals, where each terminal sends a network construction request, where i is a natural number greater than or equal to 1;
所述第一确定单元,配置为根据所述i个建网请求的接收顺序对所述i个终端进行分组,确定所述i个终端的建网信息;The first determining unit is configured to group the i terminals according to the receiving order of the i network construction requests, and determine network information of the i terminals;
所述第一存储单元,配置为保存所述i个终端的建网信息至信息数据表;The first storage unit is configured to save network information of the i terminals to an information data table;
所述第一获取单元,配置为获取数字音频文件;The first obtaining unit is configured to acquire a digital audio file;
所述第一发送单元,配置为根据所述i个终端的建网信息发送所述数字音频文件。The first sending unit is configured to send the digital audio file according to network information of the i terminals.
本发明实施例提供一种终端,所述终端包括:第二接收单元、第三存储单元、第四存储单元、播放单元,其中,An embodiment of the present invention provides a terminal, where the terminal includes: a second receiving unit, a third storage unit, a fourth storage unit, and a playing unit, where
所述第二接收单元,配置为接收第三终端发送的第一终端的节点信息,所述第一终端的节点信息携带所述第一终端的节点类型和无线通讯标识;The second receiving unit is configured to receive node information of the first terminal that is sent by the third terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal;
所述第三存储单元,配置为保存所述第一终端的无线通讯标识至无线 通讯标识列表;The third storage unit is configured to save the wireless communication identifier of the first terminal to the wireless List of communication identifiers;
所述第二接收单元,还配置为接收所述第三终端发送的数字音频文件;The second receiving unit is further configured to receive a digital audio file sent by the third terminal;
所述第四存储单元,配置为保存所述数字音频文件;The fourth storage unit is configured to save the digital audio file;
所述播放单元,配置为播放所述数字音频文件。The playing unit is configured to play the digital audio file.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述所述信息处理方法的至少其中之一。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute at least one of the foregoing information processing methods.
本发明实施例提供了一种信息处理方法和终端,接收i个终端发送的i个建网请求,其中,每一个终端发送一个建网请求,i为大于等于1的自然数;根据所述i个建网请求的接收顺序对所述i个终端进行分组,确定所述i个终端的建网信息,保存所述i个终端的建网信息至信息数据表;获取数字音频文件,根据所述i个终端的建网信息发送所述数字音频文件。本发明实施例提供的信息处理方法和终端,通过终端发送建网请求,建立树形网络,通过终端建立的树形网络录制、传输、播放语音,可以在室内或室外没有配置扩音系统的会场完成主持、演讲等活动,并且不受主持人或演讲者音量大小限制,使会场中每一个用户都有相同的听觉效果,提高了用户体验。An embodiment of the present invention provides an information processing method and a terminal, and receives i network construction requests sent by i terminals, where each terminal sends a network construction request, where i is a natural number greater than or equal to 1; according to the i The receiving order of the network request is grouped, the i terminals are grouped, the network information of the i terminals is determined, the network information of the i terminals is saved to the information data table, and the digital audio file is obtained, according to the The network information of the terminals transmits the digital audio file. The information processing method and the terminal provided by the embodiment of the present invention, through the terminal sending a network construction request, establishing a tree network, recording, transmitting, and playing voice through the tree network established by the terminal, and the conference room where the sound reinforcement system is not configured indoors or outdoors Completing the host, speech, and other activities, and is not subject to the volume limit of the host or the speaker, so that each user in the venue has the same auditory effect, improving the user experience.
附图说明DRAWINGS
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。In the drawings, which are not necessarily to scale, the Like reference numerals with different letter suffixes may indicate different examples of similar components. The drawings generally illustrate the various embodiments discussed herein by way of example and not limitation.
图1为本发明实施例提供的信息处理方法流程示意图一; 1 is a schematic flowchart 1 of an information processing method according to an embodiment of the present invention;
图2为本发明实施例提供的终端树形网络示例图;2 is a schematic diagram of a terminal tree network according to an embodiment of the present invention;
图3为本发明实施例提供的信息处理方法流程示意图二;3 is a second schematic flowchart of an information processing method according to an embodiment of the present invention;
图4为本发明实施例提供的信息处理方法流程示意图三;4 is a schematic flowchart 3 of an information processing method according to an embodiment of the present invention;
图5为本发明实施例提供的信息处理方法示例图;FIG. 5 is a schematic diagram of an information processing method according to an embodiment of the present disclosure;
图6为本发明实施例提供的终端结构示意图一;FIG. 6 is a schematic structural diagram 1 of a terminal according to an embodiment of the present disclosure;
图7为本发明实施例提供的终端结构示意图二;FIG. 7 is a second schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图8为本发明实施例提供的终端结构示意图三;FIG. 8 is a schematic structural diagram 3 of a terminal according to an embodiment of the present disclosure;
图9为本发明实施例提供的终端结构示意图四。FIG. 9 is a schematic structural diagram 4 of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit this invention.
实施例一Embodiment 1
本发明实施例提供一种信息处理方法,如图1所示,该方法可以包括:An embodiment of the present invention provides an information processing method. As shown in FIG. 1 , the method may include:
步骤101、接收i个终端发送的i个建网请求。Step 101: Receive i network construction requests sent by i terminals.
本发明实施例提供的信息处理方法的执行主体为终端,该终端可以为手机、平板电脑等,还可以是其它具有无线通信功能、音频录制和播放功能的终端。该终端可以包括:无线近距离通讯子模块、3G/4G无线通讯子模块、树形网络建立子模块、录音子模块、语音数据收发子模块、播放语音子模块。无线近距离通讯子模块,用于手机终端之间的无线通讯,协助完成建立树形网络的任务。3G/4G无线通讯子模块,用于手机终端之间无线通讯,一方面可以协助完成建立树形网络的任务,另一方面用于收发语 音流数据。树形网络建立子模块,用于通过用户手机终端之间的无线通讯,发送、接受、处理建网请求,从而把手机终端连接起来,建立一个树形网络。录音子模块,用于实时录制用户的语音,并编码这些语音信息保存为语音数据文件。语音数据收发子模块,用于接受其他节点手机终端发送的语音流数据,保存为语音数据文件,并实时转发这些语音给其他相关的手机终端。播放语音子模块,用于解析保存的语音数据文件,并实时播放这些语音。The execution body of the information processing method provided by the embodiment of the present invention is a terminal, and the terminal may be a mobile phone, a tablet computer, or the like, and may also be another terminal having a wireless communication function, an audio recording and a play function. The terminal may include: a wireless short-range communication sub-module, a 3G/4G wireless communication sub-module, a tree-shaped network establishment sub-module, a recording sub-module, a voice data transceiver sub-module, and a play voice sub-module. The wireless short-range communication sub-module is used for wireless communication between mobile terminals to assist in the task of establishing a tree network. 3G/4G wireless communication sub-module for wireless communication between mobile terminals, on the one hand to assist in the task of establishing a tree network, and on the other hand for transmitting and receiving Sound stream data. The tree network establishes a sub-module for transmitting, receiving, and processing a network request through wireless communication between the user's mobile terminal, thereby connecting the mobile terminals to establish a tree network. A recording sub-module for recording a user's voice in real time and encoding the voice information as a voice data file. The voice data transceiver sub-module is configured to receive voice stream data sent by other node mobile terminal, save as a voice data file, and forward the voice to other related mobile terminal terminals in real time. Play a voice sub-module for parsing saved voice data files and playing them in real time.
可选地,一个终端接收其它多个终端发送的建网请求,根据这些建网请求将发送建网请求的终端建为树形网络结构,如图2所示,树形网络分为三个层次,手机终端在网络中也分为三种节点类型,分别是根节点(root node)、中间节点(intermediate node)、叶节点(leaf node)。本发明实施例中,接收i个建网请求的终端可以理解为根节点的手机终端,发送建网请求的终端可以理解为中间节点、或叶节点的手机终端。Optionally, a terminal receives a network construction request sent by a plurality of other terminals, and the terminal that sends the network construction request is built into a tree network structure according to the network construction request, as shown in FIG. 2, the tree network is divided into three layers. The mobile terminal is also divided into three types of nodes in the network, namely a root node, an intermediate node, and a leaf node. In the embodiment of the present invention, the terminal that receives the i network construction request can be understood as the mobile phone terminal of the root node, and the terminal that sends the network construction request can be understood as the intermediate node or the mobile terminal of the leaf node.
其中,每一个终端发送一个建网请求,i为大于等于1的自然数。所述i个建网请求中的任意一个建网请求可以包括:请求标识、无线通讯标识ID、节点类型。Each terminal sends a network request, and i is a natural number greater than or equal to 1. Any one of the i network construction requests may include: a request identifier, a wireless communication identifier ID, and a node type.
本发明实施例中,各终端接收或发送的建网请求可以采用预定义的格式,例如,预定格式为:请求标识+无线通讯ID+节点类型。In the embodiment of the present invention, the network construction request received or sent by each terminal may adopt a predefined format, for example, the predetermined format is: request identifier + wireless communication ID + node type.
其中,请求标识用于标识请求类型,使得建网请求消息区别其它发送的信息或消息,以便终端在收到建网请求时,能很快识别出是其它终端发来要求建立树形网络的建网请求,并进行后续解析该建网请求。The request identifier is used to identify the request type, so that the network construction request message distinguishes other sent information or messages, so that when the terminal receives the network construction request, the terminal can quickly recognize that the other terminal sends a request to establish a tree network. The network requests and performs subsequent analysis of the network request.
建网请求中的无线通讯ID是指3G/4G无线通讯ID,一般是该手机终端的IP地址和端口号,在各节点手机终端3G/4G无线数据网络都打开的情况下,手机终端可以使用套接字接口,通过这个IP地址和端口和其他手机终端建立起TCP/IP连接进行数据传输。 The wireless communication ID in the network request refers to the 3G/4G wireless communication ID, which is generally the IP address and port number of the mobile terminal. In the case that the mobile phone terminal 3G/4G wireless data network is open, the mobile terminal can be used. The socket interface establishes a TCP/IP connection for data transmission through this IP address and port with other mobile terminals.
建网请求中的节点类型是为了标识每一个手机终端在树形网络的位置,即中间节点或叶节点。The node type in the network request is to identify the location of each mobile terminal in the tree network, that is, the intermediate node or the leaf node.
本发明实施例中,各节点手机终端间可以通过无线通讯方式收发建网请求和节点信息,无线通讯方式可以采用节点间以短消息形式收发建网请求,或者采用近距离无线通信方式收发建网请求,近距离无线通讯方式可以是WIFI、蓝牙等,还可以是其它的近距离无线通讯方式,本发明实施例对此不做限定。In the embodiment of the present invention, the mobile terminal of each node can send and receive network request and node information through wireless communication, and the wireless communication mode can use the short message to send and receive network request between nodes, or use short-range wireless communication to send and receive network. The request, the short-range wireless communication mode may be WIFI, Bluetooth, etc., and may also be other short-range wireless communication modes, which are not limited by the embodiment of the present invention.
步骤102、根据所述i个建网请求的接收顺序对所述i个终端进行分组,确定所述i个终端的建网信息,保存所述i个终端的建网信息至信息数据表。Step 102: Group the i terminals according to the receiving order of the i network construction requests, determine network information of the i terminals, and save the network information of the i terminals to the information data table.
其中,建网信息可以包括:分组信息和节点信息,终端保存所述i个终端的建网信息至信息数据表,具体可以包括:The network information may include: group information and node information, and the terminal saves the network information of the i terminals to the information data table, which may include:
终端保存所述i个终端的分组信息至分组信息数据表,并保存所述i个终端的节点信息至节点信息数据表。The terminal saves the group information of the i terminals to the packet information data table, and saves the node information of the i terminals to the node information data table.
可选地,以第一建网请求进行说明,第一建网请求为所述i个建网请求中的任意一个建网请求,发送所述第一建网请求的终端为第一终端。Optionally, the first network establishment request is used for the first network establishment request, and the first network establishment request is a network construction request, and the terminal that sends the first network construction request is the first terminal.
在本实施例中根据建网请求的接收顺顺序进行分组,可以使得避免随意分组,导致树形网络不同分支的交叉,进而由于传输延时不通导致的两个不同步的播出声音。In this embodiment, grouping according to the order of receiving the network request may be performed to avoid random grouping, which leads to the intersection of different branches of the tree network, and thus two unsynchronized broadcast sounds due to the unreasonable transmission delay.
终端在所述信息数据表中查找是否存在分组信息;The terminal searches for the presence of the group information in the information data table;
若不存在分组信息,设定所述第一终端为第一分组的中间节点终端,创建所述第一分组的组信息,保存所述第一分组的组信息至所述分组信息数据表,设定所述第一建网请求中的节点类型为中间节点,保存所述第一终端的节点信息至所述节点信息数据表;If there is no group information, setting the first terminal as an intermediate node terminal of the first group, creating group information of the first group, and saving group information of the first group to the group information data table, Determining, in the first network request, a node type as an intermediate node, and saving node information of the first terminal to the node information data table;
若存在分组信息,确定所述分组信息中的每一个分组是否满足预设条 件;If there is grouping information, it is determined whether each of the grouping information satisfies a preset bar Piece
若所述分组信息中第二分组未满足预设条件,将所述第一终端加入所述第二分组,设定所述第一建网请求中的节点类型为叶节点,保存所述第一终端的节点信息至所述节点信息数据表,发送所述第一终端的节点信息至第二终端,所述第二终端为所述第二分组的中间节点终端,所述节点信息携带所述第一终端的节点类型和无线通讯标识;If the second packet in the packet information does not meet the preset condition, the first terminal is added to the second packet, and the node type in the first network request is set as a leaf node, and the first node is saved. Sending node information of the terminal to the node information data table, transmitting node information of the first terminal to the second terminal, the second terminal is an intermediate node terminal of the second group, and the node information carries the The node type and wireless communication identifier of a terminal;
若所述分组信息中的每一个分组均满足预设条件,设定所述第一终端为第三分组的中间节点终端,创建所述第三分组的组信息,保存所述第三分组的组信息至所述分组信息数据表,设定所述第一建网请求中的节点类型为中间节点,保存所述第一终端的节点信息至所述节点信息数据表。If each of the grouping information meets a preset condition, setting the first terminal as an intermediate node terminal of the third group, creating group information of the third group, and saving the group of the third group The information is sent to the group information data table, and the node type in the first network construction request is set as an intermediate node, and the node information of the first terminal is saved to the node information data table.
本发明实施例中,建网过程中根节点终端通过对发送建网请求节点进行分组,确定每组的中间节点和叶节点,从而把所有节点组织成一个具有三层结构的树形网络。In the embodiment of the present invention, during the network construction process, the root node determines the intermediate node and the leaf node of each group by grouping the sending network request nodes, thereby organizing all the nodes into a tree network having a three-layer structure.
其中,每组最大节点个数一般是预先配置的一个值,它取决于网络中节点的总数,以及每个中间节点能连接的最大叶节点的数量,中间节点连接的叶节点越多,则该中间节点传输语音流数据的负载就越大,这会影响到网络的性能和用户的听觉体验,因此一般需要根据经验选择适当的数值。The maximum number of nodes in each group is generally a pre-configured value, which depends on the total number of nodes in the network and the maximum number of leaf nodes that each intermediate node can connect. The more leaf nodes connected to the intermediate node, the more The greater the load on the intermediate node to transmit voice stream data, which affects the performance of the network and the user's listening experience, so it is generally necessary to select an appropriate value based on experience.
示例性的,以总手机终端节点数量取50进行说明,每组最大手机终端节点数取10为例说明根节点的分组方法和流程。根节点手机终端把每一个发送建网请求的手机终端节点都看作要加入网络的新节点,对节点进行动态分组。Exemplarily, the number of total mobile terminal nodes is taken as 50, and the maximum number of mobile terminal nodes in each group is taken as an example to illustrate the grouping method and flow of the root node. The root node mobile terminal treats each mobile terminal node that sends the network construction request as a new node to join the network, and dynamically groups the nodes.
首先,根节点接收到节点I1发送的第一个建网请求,它先查询分组和节点信息数据表,发现网络中还没节点,则把I1作为第一分组的中间节点,创建第一分组的组信息,组信息可以为名称“组1”,并保存组1的信息到分组信息数据表中,然后把I1的节点类型改为中间节点,并把节点I1的节 点信息保存到节点信息数据表中,这样,中间节点I1就加入到树形网络中。First, the root node receives the first network construction request sent by the node I1. It first queries the packet and node information data table, and finds that there is no node in the network, and then uses I1 as the intermediate node of the first group to create the first group. Group information, group information can be the name "group 1", and save the information of group 1 to the group information data table, then change the node type of I1 to the intermediate node, and put the node of node I1 The point information is saved in the node information data table, so that the intermediate node I1 is added to the tree network.
接着,根节点接收到节点L11发送的第二个建网请求,它同样先查询分组和节点信息数据表,发现网络中已经有组1,并且组1的节点数量没有达到每组最大手机终端节点数,则把L11节点加入到第一分组中,并把节点L11的信息保存到节点信息数据表中,然后根节点把叶节点L11的接收信息发送给中间节点I1,I1手机终端节点收到该信息后,把L11的无线通讯ID保存到无线通讯ID列表中,这样叶节点L11就加入到树形网络中。Then, the root node receives the second network construction request sent by the node L11. It also first queries the packet and node information data table, and finds that there is already a group 1 in the network, and the number of nodes in the group 1 does not reach the maximum mobile terminal node of each group. The number is added to the first packet, and the information of the node L11 is saved to the node information data table, and then the root node sends the receiving information of the leaf node L11 to the intermediate node I1, and the I1 mobile terminal node receives the number. After the information, the wireless communication ID of L11 is saved in the wireless communication ID list, so that the leaf node L11 is added to the tree network.
接着,根节点先后收到手机终端节点L12到L19发送的第三个到第十个建网请求,根节点按照上述添加叶节点L11的步骤也把叶节点L12到L19添加到组1中,并把这八个叶节点的信息保存到节点信息数据表中,再先后把这八个叶节点的信息发送给节点I1。节点I1陆续收到这些节点信息后,分别把节点的无线通讯ID保存到无线通讯ID列表中。节点I1就保存了九个叶节点的无线通讯ID,为后续给这九个手机终端节点传输语音流数据打下了基础。这样根节点把叶节点L12到L19也添加到树形网络中。Then, the root node receives the third to tenth network construction requests sent by the mobile terminal nodes L12 to L19, and the root node adds the leaf nodes L12 to L19 to the group 1 according to the step of adding the leaf node L11, and The information of the eight leaf nodes is saved in the node information data table, and the information of the eight leaf nodes is sent to the node I1. After node I1 successively receives the information of these nodes, the node's wireless communication ID is saved to the wireless communication ID list. Node I1 saves the wireless communication IDs of the nine leaf nodes, laying the foundation for the subsequent transmission of voice stream data to the nine mobile terminal nodes. Thus the root node also adds leaf nodes L12 to L19 to the tree network.
接着,根节点接收到节点I2发送的第十一个建网请求,它同样先查询分组和节点信息数据表,发现网络中已经有组1,并且组1的成员数量已经达到每组最大手机终端节点数,于是把I2作为第二分组的中间节点,创建第二分组的组信息,名称为“组2”,并保存组2的信息到分组信息数据表中,然后把I2的节点类型改为中间节点,并把节点I2的信息保存到节点信息数据表中,这样中间节点I2就加入到树形网络中。Then, the root node receives the eleventh network construction request sent by the node I2. It also first queries the packet and node information data table, and finds that the group 1 already exists in the network, and the number of members of the group 1 has reached the maximum mobile terminal of each group. The number of nodes, then I2 is used as the intermediate node of the second group, the group information of the second group is created, the name is "group 2", and the information of group 2 is saved into the group information data table, and then the node type of I2 is changed to The intermediate node saves the information of the node I2 to the node information data table, so that the intermediate node I2 is added to the tree network.
接着根节点先后接收到节点L21到L29等九个节点的建网请求,同样按照上述处理节点L11到L19建网请求的操作步骤,把叶节点L21到L29加入组2,同时也把它们添加到树形网络中。Then, the root node successively receives the network construction request of the nine nodes, such as the nodes L21 to L29, and also adds the leaf nodes L21 to L29 to the group 2 according to the operation steps of the above-mentioned processing nodes L11 to L19, and also adds them to In a tree network.
用同样的方法,根节点先后处理节点I3、L31-L39、I4、L41-L49、I5、L51-L59等一系列建网请求,按照上述添加中间节点和叶节点的操作步骤, 分别创建组3、组4、组5,并先后把这些手机终端节点添加到树形网络中。这样通过根节点的分组操作,所有的手机终端节点被连接到一个树形网络中,为后续进行根节点手机发送数字音频文件做准备。In the same way, the root node processes a series of network construction requests such as nodes I3, L31-L39, I4, L41-L49, I5, and L51-L59, and adds the intermediate nodes and leaf nodes according to the above steps. Group 3, Group 4, and Group 5 are created separately, and these mobile terminal nodes are added to the tree network. In this way, through the grouping operation of the root node, all mobile terminal nodes are connected to a tree network to prepare for subsequent transmission of digital audio files by the root node mobile phone.
步骤103、获取数字音频文件,根据所述i个终端的建网信息发送所述数字音频文件。Step 103: Acquire a digital audio file, and send the digital audio file according to network information of the i terminals.
可选地,终端获取语音流,将所述语音流编码处理,获得数字音频文件;发送所述数字音频文件至所述分组信息数据表中每一分组的中间节点终端,所述数字音频文件,用于所述中间节点终端进一步发送给叶节点中终端,这样的话,就可以使得所述每一分组的中间节点终端将所述数字音频文件发送至叶节点终端。Optionally, the terminal acquires a voice stream, encodes the voice stream to obtain a digital audio file, and sends the digital audio file to an intermediate node terminal of each group in the group information data table, where the digital audio file is The intermediate node terminal is further sent to the terminal in the leaf node, so that the intermediate node terminal of each packet can send the digital audio file to the leaf node terminal.
本发明实施例中,数字音频文件是一种标准的数字音频文件,它是经过录制用户的语音,然后把这些语音信息编码处理得到,最终保存到手机终端中,并在树形网络中以二进制语音流形式传输。In the embodiment of the present invention, the digital audio file is a standard digital audio file, which is recorded by the user's voice, and then the voice information is encoded and processed, and finally saved to the mobile terminal, and is binary in the tree network. Voice stream transmission.
示例性的,在一个大型宴会活动中,场地中布置了10-20张圆桌,每8-10人围坐在一张圆桌旁。每一个人用手机都给主持人的手机发送建网请求,主持人的手机可以理解为根节点手机,主持人的手机接收并处理这些建网请求,对发送请求的手机节点进行分组,并确定每组的中间节点手机,向中间节点手机发送对应分组的节点信息。中间节点接收这些节点信息,解析后保存叶节点手机的无线通讯ID到无线通讯ID列表中。这样通过各节点手机终端的交互,所有的手机终端都连接到以主持人的手机为根节点的树形网络中。树形网络建好后,主持人对着手机讲话,活动中的每个人都能从自己的手机中同步听到主持人的声音。Illustratively, in a large banquet event, 10-20 round tables were placed in the venue, and 8-10 people sat around a round table. Each person uses a mobile phone to send a network request to the host's mobile phone. The host's mobile phone can be understood as the root node mobile phone. The host's mobile phone receives and processes these network construction requests, and groups the mobile phone nodes that send the request, and determines The intermediate node mobile phone of each group sends the node information of the corresponding group to the intermediate node mobile phone. The intermediate node receives the node information, and saves the wireless communication ID of the leaf node mobile phone to the wireless communication ID list after parsing. In this way, through the interaction of the mobile terminals of the nodes, all the mobile terminals are connected to the tree network with the host's mobile phone as the root node. After the tree network is built, the host speaks to the mobile phone, and everyone in the event can hear the voice of the host from his mobile phone.
可选的,在所述获取语音流,将所述语音流编码处理,获得数字音频文件之后,还包括:Optionally, after the acquiring the voice stream, and encoding the voice stream to obtain the digital audio file, the method further includes:
保存所述数字音频文件; Saving the digital audio file;
根据所述分组信息数据表中每一分组的中间节点终端的无线通讯标识与所述中间节点终端建立连接。Establishing a connection with the intermediate node terminal according to the wireless communication identifier of the intermediate node terminal of each packet in the packet information data table.
可选地,在传输数字音频文件之前,若各终端之间未建立通信连接,需要先建立通信连接再进行数字音频文件传输。根节点终端需要先将获取的数字音频文件保存,然后与中间节点终端建立通讯连接,建立连接后,将数字音频文件发送给中间节点终端。Optionally, before the digital audio file is transmitted, if a communication connection is not established between the terminals, the communication connection needs to be established before the digital audio file is transmitted. The root node terminal needs to save the acquired digital audio file first, and then establish a communication connection with the intermediate node terminal. After establishing the connection, the digital audio file is sent to the intermediate node terminal.
本发明实施例提供的信息处理方法,通过终端发送建网请求,建立树形网络,通过终端建立的树形网络录制、传输、播放语音,可以在室内或室外没有配置扩音系统的会场完成主持、演讲等活动,并且不受主持人或演讲者音量大小限制,使会场中每一个用户都有相同的听觉效果,提高了用户体验。The information processing method provided by the embodiment of the present invention, the terminal sends a network construction request, establishes a tree network, records, transmits, and plays the voice through the tree network established by the terminal, and can complete the host in the indoor or outdoor venue where the sound reinforcement system is not configured. Activities such as speeches and speeches are not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
实施例二Embodiment 2
本发明实施例提供一种信息处理方法,如图3所示,该方法可以包括:An embodiment of the present invention provides an information processing method. As shown in FIG. 3, the method may include:
步骤201、接收第三终端发送的第一终端的节点信息,所述第一终端的节点信息携带所述第一终端的节点类型和无线通讯标识,保存所述第一终端的无线通讯标识至无线通讯标识列表。Step 201: Receive node information of the first terminal sent by the third terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal, and saves the wireless communication identifier of the first terminal to the wireless A list of communication identifiers.
本发明实施例提供的信息处理方法的执行主体为终端,该终端为树形网络的中间节点的终端,该终端可以为手机、平板电脑等,还可以是其它具有无线通信功能、音频录制和播放功能的终端。The execution body of the information processing method provided by the embodiment of the present invention is a terminal, and the terminal is a terminal of an intermediate node of a tree network, and the terminal may be a mobile phone, a tablet computer, etc., and may also have other wireless communication functions, audio recording and playback. Functional terminal.
可选地,第三终端可以理解为根节点终端,第一终端可以理解为叶节点终端。中间节点终端接收根节点发送的叶节点的节点信息,将叶节点的无线通讯标识保存到无线通讯标识列表中。Optionally, the third terminal may be understood as a root node terminal, and the first terminal may be understood as a leaf node terminal. The intermediate node terminal receives the node information of the leaf node sent by the root node, and saves the wireless communication identifier of the leaf node to the wireless communication identifier list.
步骤202、接收所述第三终端发送的数字音频文件,保存所述数字音频文件,播放所述数字音频文件。 Step 202: Receive a digital audio file sent by the third terminal, save the digital audio file, and play the digital audio file.
可选地,当根节点终端发送数字音频文件时,中间节点终端接收根节点终端发送数字音频文件,并保存该数字音频文件,然后播放该数字音频文件,中间节点终端的用户可以听到根节点终端用户的数字音频文件。Optionally, when the root node terminal sends the digital audio file, the intermediate node terminal receives the root node terminal to send the digital audio file, saves the digital audio file, and then plays the digital audio file, and the user of the intermediate node terminal can hear the root node. Digital audio file for the end user.
可选地,在步骤202之后,所述方法还可以包括:Optionally, after step 202, the method may further include:
步骤203、发送所述数字音频文件至所述无线通讯标识列表中每一个无线通讯标识对应的终端。Step 203: Send the digital audio file to a terminal corresponding to each wireless communication identifier in the wireless communication identifier list.
可选地,中间节点终端将保存的根节点终端发送的数字音频文件发送给无线通讯标识列表中存储的每一个无线通讯标识对应的叶节点终端,叶节点终端接收该数字音频文件,然后播放该数字音频文件,叶节点终端的用户可以听到根节点终端用户的数字音频文件。Optionally, the intermediate node terminal sends the saved digital audio file sent by the root node terminal to the leaf node terminal corresponding to each wireless communication identifier stored in the wireless communication identifier list, and the leaf node terminal receives the digital audio file, and then plays the For digital audio files, the user of the leaf node terminal can hear the digital audio file of the root node end user.
可选地,在步骤201之前,所述方法还可以包括:Optionally, before step 201, the method may further include:
步骤204、发送第一建网请求至第三终端,其中,所述第一建网请求,用于触发第三终端基于所述第一建网请求确定建网信息,从而以使得所述第三终端根据所述第一建网请求确定建网信息。Step 204: Send a first network request to a third terminal, where the first network request is used to trigger the third terminal to determine network information based on the first network request, so that the third The terminal determines the network construction information according to the first network construction request.
其中,第一建网请求包括:请求标识、无线通讯标识、节点类型。The first network construction request includes: a request identifier, a wireless communication identifier, and a node type.
可选地,在根节点终端给中间节点终端发送节点信息之前,中间节点终端向根节点终端发送建网请求,根节点终端接收的建网请求的接收顺序确定建网信息,即确定发送建网请求的终端的分组信息和节点信息。Optionally, before the root node terminal sends the node information to the intermediate node terminal, the intermediate node terminal sends a network construction request to the root node terminal, and the receiving sequence of the network forming request received by the root node terminal determines the network construction information, that is, determines to send the network. The grouping information and node information of the requested terminal.
本发明实施例,利用树形网络中不同节点类型手机终端之间的交互来进行数字音频文件的传输。In the embodiment of the present invention, digital audio file transmission is performed by using interaction between mobile phone terminals of different node types in a tree network.
示例性的,在某一场所参加活动的所有成员打开手机通过发送建网请求建立一个树形网络。活动主持人或演讲者对着根节点手机终端讲话,手机终端实时录制这些语音流,同时编码这些语音信息并保存为二进制数字音频文件;根节点手机终端分别和它关联的中间节点手机终端建立通讯连 接,并向这些中间节点手机终端实时发送录制的二进制语音流;中间节点手机终端接收到录制的二进制语音流,以二进制数字音频文件形式暂存到本地,中间节点手机终端解析这些音频文件,然后把接收到的语音流播放出来,中间节点手机终端的用户就能实时同步听到主持人的讲话;同时每个中间节点手机终端分别和它关联的叶节点手机终端建立通讯连接,并向这些叶节点手机终端实时发送接收到的二进制语音流;每个叶节点手机终端接收到录制的二进制语音流,以二进制数字音频文件形式暂存到本地,叶节点手机终端解析这些音频文件,然后把接收到的语音流播放出来,叶节点手机终端的用户就能实时同步听到主持人的讲话。Exemplarily, all members who participate in an activity at a certain place open the mobile phone to establish a tree network by sending a network request. The event host or speaker speaks to the root node mobile terminal, and the mobile terminal records the voice streams in real time, and simultaneously encodes the voice information and saves it as a binary digital audio file; the root node mobile terminal establishes communication with its associated intermediate node mobile terminal respectively. Even And transmitting the recorded binary voice stream to the mobile terminal of the intermediate node in real time; the intermediate node mobile terminal receives the recorded binary voice stream, temporarily stores it in the form of a binary digital audio file, and the intermediate node mobile terminal analyzes the audio file, and then The received voice stream is played out, and the user of the intermediate node mobile terminal can synchronously hear the host's speech in real time; at the same time, each intermediate node mobile terminal establishes a communication connection with its associated leaf node mobile terminal, and sends these communication links to the leaves. The node mobile terminal transmits the received binary voice stream in real time; each leaf node mobile terminal receives the recorded binary voice stream and temporarily stores it in the form of a binary digital audio file, and the leaf node mobile terminal parses the audio file, and then receives the audio file. The voice stream is played out, and the user of the leaf node mobile terminal can synchronously hear the host's speech in real time.
本发明实施例提供的信息处理方法,通过终端发送建网请求,建立树形网络,通过终端建立的树形网络录制、传输、播放语音,可以在室内或室外没有配置扩音系统的会场完成主持、演讲等活动,并且不受主持人或演讲者音量大小限制,使会场中每一个用户都有相同的听觉效果,提高了用户体验。The information processing method provided by the embodiment of the present invention, the terminal sends a network construction request, establishes a tree network, records, transmits, and plays the voice through the tree network established by the terminal, and can complete the host in the indoor or outdoor venue where the sound reinforcement system is not configured. Activities such as speeches and speeches are not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
实施例三Embodiment 3
本发明实施例提供一种信息处理方法,如图4所示,该方法可以包括:An embodiment of the present invention provides an information processing method. As shown in FIG. 4, the method may include:
步骤301、节点终端发送建网请求至根节点终端。Step 301: The node terminal sends a network construction request to the root node terminal.
本发明实施例通过手机终端建立树形网络,利用树形网络中不同节点类型手机终端之间的交互来进行数字音频文件的传输。该手机终端可以包括:无线近距离通讯模块、3G/4G无线通讯模块、树形网络建立模块、录音模块、语音数据收发模块、播放语音模块;无线近距离通讯模块用于和其他手机终端进行无线通讯,收发建网请求,协助完成建立树形网络;3G/4G无线通讯模块用于和其他手机终端进行无线通讯,收发建网请求,协助完成建立树形网络或者用于收发语音流数据;树形网络建立模块用于把所有手机终端联系起来,建立一个树形网络;录音模块用于录制主持人的声音, 并把这些语音信息编码保存成音频数字文件;语音数据收发模块用于建立节点手机终端之间的网络连接,并收发语音流数据;播放语音模块用于解析接收的语音流数据,并把它们播放出来。In the embodiment of the present invention, a tree-shaped network is established by using a mobile phone terminal, and digital audio file transmission is performed by using interaction between mobile phone terminals of different node types in the tree network. The mobile phone terminal can include: a wireless short-range communication module, a 3G/4G wireless communication module, a tree network establishment module, a recording module, a voice data transceiver module, and a play voice module; the wireless short-range communication module is used for wirelessly with other mobile phone terminals. Communication, sending and receiving network request, assisting in the establishment of tree network; 3G/4G wireless communication module is used for wireless communication with other mobile terminals, sending and receiving network request, assisting in establishing tree network or for transmitting and receiving voice stream data; The network creation module is used to connect all mobile terminals to establish a tree network; the recording module is used to record the voice of the host. And encoding the voice information into an audio digital file; the voice data transceiver module is used to establish a network connection between the node mobile terminal, and send and receive voice stream data; the play voice module is used to parse the received voice stream data and play them come out.
可选地,节点终端可以为多个手机终端,该多个手机终端通过无线通信方式以预定的格式向根节点手机终端发送建网请求。预定的格式可以为:请求标识+无线通讯ID+节点类型。Optionally, the node terminal may be a plurality of mobile phone terminals, and the plurality of mobile phone terminals send a network construction request to the root node mobile phone terminal in a predetermined format by using a wireless communication manner. The predetermined format may be: request identification + wireless communication ID + node type.
步骤302、根节点终端接收建网请求,确定建网信息。Step 302: The root node terminal receives the network construction request, and determines the network construction information.
可选地,根节点手机终端接收到多个手机终端发送的建网请求后,解析建网请求,按照建网请求接收的先后顺序,对节点终端进行分组,确定节点终端作为某一组的中间节点终端,还是叶节点终端,并把分组信息保存到分组信息数据表中,节点信息保存到节点信息数据表中。Optionally, after receiving the network construction request sent by the multiple mobile phone terminals, the root node mobile phone terminal parses the network construction request, and groups the node terminals according to the sequence of receiving the network request, and determines the node terminal as a middle of a certain group. The node terminal is also a leaf node terminal, and the group information is saved in the group information data table, and the node information is saved in the node information data table.
步骤303、根节点终端将每一组叶节点终端的节点信息分别发送给每一组的中间节点终端。Step 303: The root node terminal sends the node information of each group of leaf node terminals to the intermediate node terminal of each group.
步骤304、中间节点终端接收叶节点终端的节点信息,并保存。Step 304: The intermediate node terminal receives the node information of the leaf node terminal and saves the information.
可选地,中间节点手机终端接收并解析这些叶节点的节点信息,并把这些叶节点的无线通讯ID保存到本地的无线通讯ID列表中,这样所有的手机终端就组成了一个树形网络。Optionally, the intermediate node mobile phone terminal receives and parses the node information of the leaf nodes, and saves the wireless communication IDs of the leaf nodes to the local wireless communication ID list, so that all the mobile phone terminals form a tree network.
步骤305、根节点终端获取数字音频文件。Step 305: The root node terminal acquires a digital audio file.
可选地,根节点手机终端的用户对根节点手机终端讲话,根节点手机终端实时录音,并对语音流编码处理后保存为数字音频文件,即根节点手机终端获取用户的数字音频文件。Optionally, the user of the root node mobile terminal speaks to the root node mobile terminal, and the root node mobile terminal records in real time, and encodes the voice stream and saves it as a digital audio file, that is, the root node mobile terminal acquires the user's digital audio file.
步骤306、根节点终端将数字音频文件分别发送至每一分组的中间节点终端。Step 306: The root node terminal separately sends the digital audio file to the intermediate node terminal of each packet.
可选地,根节点手机终端分别和它关联的中间节点通过无线通讯ID建 立连接,然后向这些中间节点手机终端发送音频文件中录制的语音流数据,即发送数字音频文件。Optionally, the root node mobile phone terminal and its associated intermediate node are respectively built by the wireless communication ID. The connection is made, and then the voice stream data recorded in the audio file is sent to the intermediate node mobile terminal, that is, the digital audio file is sent.
步骤307、中间节点终端接收数字音频文件,播放数字音频文件,并发送所述数字音频文件至叶节点终端。Step 307: The intermediate node terminal receives the digital audio file, plays the digital audio file, and sends the digital audio file to the leaf node terminal.
中间节点手机终端接收语音流数据,暂存为数字音频文件,解析数字音频文件中保存的数据,然后播放出来。同时中间节点手机终端分别和它关联的叶节点通过无线通讯ID建立连接,然后向这些叶节点手机终端发送音频文件中的语音流数据,即发送叶节点手机终端数字音频文件。The intermediate node mobile terminal receives the voice stream data, temporarily stores it as a digital audio file, parses the data stored in the digital audio file, and then plays it out. At the same time, the intermediate node mobile phone terminal and its associated leaf node respectively establish a connection through the wireless communication ID, and then send the voice stream data in the audio file to the leaf node mobile terminal, that is, send the leaf node mobile terminal digital audio file.
步骤308、叶节点终端接收数字音频文件,并播放数字音频文件。Step 308: The leaf node terminal receives the digital audio file and plays the digital audio file.
可选地,叶节点手机终端接收语音流数据,暂存为数字音频文件,叶节点手机终端解析文件中保存的数据,然后播放出来。Optionally, the leaf node mobile terminal receives the voice stream data and temporarily stores the data as a digital audio file, and the leaf node mobile terminal parses the data saved in the file, and then plays the data.
本发明实施例提供信息处理方法,基于终端之间建立的树形网络,通过根节点终端、中间节点终端、叶节点终端之间的无线通讯,实现语音流数据的传输,从而完成实时放音功能。因此,在进行实时放音之前,需要先把所有需要同时放音的终端通过无线通讯关联起来,组织成一个树形网络。Embodiments of the present invention provide an information processing method, which implements voice stream data transmission through wireless communication between a root node terminal, an intermediate node terminal, and a leaf node terminal based on a tree network established between terminals, thereby completing a real-time playback function. . Therefore, before real-time playback, all terminals that need to play simultaneously need to be connected by wireless communication to form a tree network.
各节点手机终端之间要正常收发语音流数据,首先需要在发送方和接收方两个节点手机终端间建立无线通讯连接,这种连接一般是使用双方无线通讯ID建立起TCP/IP连接,然后双方才能进行数据传输。当根节点手机终端录制根节点用户语音后,从分组和节点信息数据表中查询出所有分组的中间节点手机终端无线通讯ID,使用每一个无线通讯ID依次和该ID对应的手机终端建立起TCP/IP连接,然后向中间节点手机终端发送语音流数据;同样当中间节点手机终端接收语音流数据后,遍历本地保存的叶节点手机终端无线通讯ID列表,使用每一个无线通讯ID依次和该ID对应的手机终端建立起TCP/IP连接,然后向叶节点手机终端发送语音流数据。考 虑建立连接带来系统的延时,为了提升系统性能,可以在建立树形网络时中间节点和叶节点手机终端之间以及根节点和中间节点手机终端之间就预先建立起节点之间的TCP/IP连接,这样在根节点手机终端录制语音后,各节点可以直接收发语音流数据。To properly send and receive voice stream data between mobile terminals of each node, it is first necessary to establish a wireless communication connection between the sender and the receiver two mobile terminals. This connection generally establishes a TCP/IP connection using the wireless communication IDs of both parties, and then Both parties can carry out data transmission. After the root node mobile terminal records the root node user voice, the intermediate node mobile terminal wireless communication ID of all the packets is queried from the group and node information data table, and each wireless communication ID is used to establish a TCP with the mobile terminal corresponding to the ID. /IP connection, and then send voice stream data to the intermediate node mobile terminal; also when the intermediate node mobile terminal receives the voice stream data, traverses the locally stored leaf node mobile terminal wireless communication ID list, and uses each wireless communication ID in turn and the ID The corresponding mobile terminal establishes a TCP/IP connection and then transmits the voice stream data to the leaf node mobile terminal. Test Considering the delay of the system brought by the connection, in order to improve the system performance, the TCP between the nodes can be pre-established between the intermediate node and the leaf node mobile terminal and between the root node and the intermediate node mobile terminal in establishing the tree network. /IP connection, so that after the root node mobile phone terminal records the voice, each node can directly send and receive voice stream data.
示例性的,以一个叶节点手机终端用户从发起一个建网请求开始,通过各节点手机终端的交互组建一个树形网络,主持人的讲话经过系统录制语音、网络中各节点收发语音流数据,最终叶节点手机终端用户通过手机终端听到主持人的讲话的整个过程,如图5所示。Exemplarily, a leaf node mobile terminal user starts a network construction request, and establishes a tree network through the interaction of each node mobile terminal, and the host's speech passes the system recording voice, and each node in the network sends and receives voice stream data. Finally, the leaf node mobile terminal user hears the entire process of the host's speech through the mobile terminal, as shown in FIG. 5.
首先叶节点手机终端(例如L11)向根节点手机终端(root)发送建网请求,root收到请求后,解析该请求并把L11添加到以I1为中间节点的组1中,并保存L11的分组和节点信息到分组和节点信息数据表中。根节点手机终端(root)向中间节点I1发送叶节点L11的节点信息,I1收到这些节点信息后,解析这些节点信息并把L11的无线通讯ID保存到本地无线通讯ID列表中。这样L11、I1、root三个节点手机终端在网络中联系起来。First, the leaf node mobile terminal (for example, L11) sends a network construction request to the root node mobile terminal (root). After receiving the request, the root parses the request and adds L11 to group 1 with I1 as the intermediate node, and saves L11. Packet and node information into the packet and node information data tables. The root node mobile terminal (root) transmits the node information of the leaf node L11 to the intermediate node I1. After receiving the node information, the I1 parses the node information and saves the wireless communication ID of the L11 to the local wireless communication ID list. In this way, the three node mobile terminals of L11, I1 and root are connected in the network.
根节点手机终端录制根节点用户的讲话,并把语音信息编码后保存为数字音频文件。根节点手机终端用I1的无线通讯ID和I1节点手机终端建立TCP/IP连接,然后向I1节点手机终端发送录制的数字音频文件。I1节点手机终端接收到数字音频文件,解析获取语音流数据后,播放数字音频文件,并且用L11的无线通讯ID和L11节点手机终端建立TCP/IP连接,然后向L11节点手机终端发送接收的数字音频文件。L11节点手机终端接收到数字音频文件,解析获取语音流数据后,播放数字音频文件。这样L11节点手机终端的用户就可以用手机终端听到根节点用户的声音。The root node mobile terminal records the speech of the root node user, and encodes the voice information and saves it as a digital audio file. The root node mobile terminal establishes a TCP/IP connection with the I1 node mobile terminal and the I1 node mobile terminal, and then transmits the recorded digital audio file to the I1 node mobile terminal. The I1 node mobile terminal receives the digital audio file, parses and acquires the voice stream data, plays the digital audio file, and establishes a TCP/IP connection with the L11 wireless communication ID and the L11 node mobile terminal, and then transmits the received number to the L11 node mobile terminal. Audio file. The L11 node mobile terminal receives the digital audio file, and after parsing and acquiring the voice stream data, plays the digital audio file. In this way, the user of the L11 node mobile terminal can hear the voice of the root node user by using the mobile terminal.
本发明实施例提供的信息处理方法中,在建网完成后,各终端在同步播放数字音频文件过程中,还可以增加终端到树形网络,使得新增的终端可以接收根节点终端的数字音频文件。 In the information processing method provided by the embodiment of the present invention, after the network is completed, each terminal may further add a terminal to the tree network in the process of synchronously playing the digital audio file, so that the newly added terminal can receive the digital audio of the root node terminal. file.
示例性的,在一个大型宴会举行过程中,陆续有一些新成员进入会场参加活动,们分别用手机向主持人发送加入网络的建网请求。主持人的手机对这些发送建网请求的手机节点进行动态分组,这些手机节点或者加入已有的还没满员的分组中,或者创建新的分组,经过一系列的操作,把这些发送建网请求的手机节点动态加入到树形网络中,这样发送建网请求的每个人也都能从手机中同步听到主持人的声音。Exemplarily, during a large banquet, some new members entered the venue to participate in the event. They used the mobile phone to send the host to the network to request the network. The host's mobile phone dynamically groups the mobile phone nodes that send the network request. These mobile phone nodes either join existing ones that are not full, or create new ones. After a series of operations, these are sent to the network request. The mobile node is dynamically added to the tree network, so that everyone who sends the network request can also hear the voice of the host from the mobile phone.
本发明实施例提供的信息处理方法,通过终端发送建网请求,建立树形网络,通过终端建立的树形网络录制、传输、播放语音,可以在室内或室外没有配置扩音系统的会场完成主持、演讲等活动,并且不受主持人或演讲者音量大小限制,使会场中每一个用户都有相同的听觉效果,提高了用户体验。The information processing method provided by the embodiment of the present invention, the terminal sends a network construction request, establishes a tree network, records, transmits, and plays the voice through the tree network established by the terminal, and can complete the host in the indoor or outdoor venue where the sound reinforcement system is not configured. Activities such as speeches and speeches are not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
实施例四Embodiment 4
本发明实施例提供一种终端5,如图6所示,所述终端5包括:第一接收单元50、第一确定单元51、第一存储单元52、第一获取单元53、第一发送单元54,其中,The embodiment of the present invention provides a terminal 5, as shown in FIG. 6, the terminal 5 includes: a first receiving unit 50, a first determining unit 51, a first storage unit 52, a first obtaining unit 53, and a first sending unit. 54, among them,
所述第一接收单元50,配置为接收i个终端发送的i个建网请求,其中,每一个终端发送一个建网请求,i为大于等于1的自然数;The first receiving unit 50 is configured to receive i network construction requests sent by the i terminals, where each terminal sends a network construction request, where i is a natural number greater than or equal to 1;
所述第一确定单元51,配置为根据所述i个建网请求的接收顺序对所述i个终端进行分组,确定所述i个终端的建网信息;The first determining unit 51 is configured to group the i terminals according to the receiving order of the i network construction requests, and determine network information of the i terminals;
所述第一存储单元52,配置为保存所述i个终端的建网信息至信息数据表;The first storage unit 52 is configured to save the network information of the i terminals to the information data table;
所述第一获取单元53,配置为获取数字音频文件;The first obtaining unit 53 is configured to acquire a digital audio file.
所述第一发送单元54,配置为根据所述i个终端的建网信息发送所述数字音频文件。 The first sending unit 54 is configured to send the digital audio file according to the networking information of the i terminals.
可选地,所述建网请求包括:请求标识、无线通讯标识、节点类型。Optionally, the network forming request includes: a request identifier, a wireless communication identifier, and a node type.
可选地,所述建网信息包括:分组信息和节点信息;Optionally, the network information includes: group information and node information;
所述第一存储单元52,配置为保存所述i个终端的分组信息至分组信息数据表,还用于保存所述i个终端的节点信息至节点信息数据表。The first storage unit 52 is configured to save the group information of the i terminals to the packet information data table, and is further configured to save the node information of the i terminals to the node information data table.
可选地,第一建网请求为所述i个建网请求中的任意一个建网请求,发送所述第一建网请求的终端为第一终端;Optionally, the first network construction request is a network construction request for any one of the i network construction requests, and the terminal that sends the first network construction request is the first terminal;
所述第一确定单元51,配置为在所述信息数据表中查找是否存在分组信息;还配置为若不存在分组信息,设定所述第一终端为第一分组的中间节点终端,创建所述第一分组的组信息;The first determining unit 51 is configured to search whether the group information exists in the information data table, and is further configured to: if the group information does not exist, set the first terminal as an intermediate node terminal of the first group, and create a Group information of the first group;
所述第一存储单元52,配置为保存所述第一分组的组信息至所述分组信息数据表;The first storage unit 52 is configured to save group information of the first group to the group information data table;
所述第一确定单元51,配置为设定所述第一建网请求中的节点类型为中间节点;The first determining unit 51 is configured to set a node type in the first network forming request as an intermediate node;
所述第一存储单元52,配置为保存所述第一终端的节点信息至所述节点信息数据表;The first storage unit 52 is configured to save node information of the first terminal to the node information data table;
所述第一确定单元51,配置为若存在分组信息,确定所述分组信息中的每一个分组是否满足预设条件;还用于若所述分组信息中第二分组未满足预设条件,将所述第一终端加入所述第二分组,设定所述第一建网请求中的节点类型为叶节点;The first determining unit 51 is configured to determine, if the group information exists, whether each of the grouping information meets a preset condition, and if the second group in the grouping information does not meet the preset condition, The first terminal joins the second group, and sets a node type in the first network establishment request to a leaf node;
所述第一存储单元52,配置为保存所述第一终端的节点信息至所述节点信息数据表;The first storage unit 52 is configured to save node information of the first terminal to the node information data table;
所述第一发送单元54,配置为发送所述第一终端的节点信息至第二终端,所述第二终端为所述第二分组的中间节点终端,所述节点信息携带所述第一终端的节点类型和无线通讯标识。 The first sending unit 54 is configured to send the node information of the first terminal to the second terminal, the second terminal is an intermediate node terminal of the second group, and the node information carries the first terminal Node type and wireless communication ID.
可选地,所述第一确定单元51,配置为若所述分组信息中的每一个分组均满足预设条件,设定所述第一终端为第三分组的中间节点终端,创建所述第三分组的组信息,配置为设定所述第一建网请求中的节点类型为中间节点;Optionally, the first determining unit 51 is configured to: if each of the grouping information meets a preset condition, set the first terminal to be an intermediate node terminal of the third group, and create the The group information of the three groups is configured to set the node type in the first network establishment request to be an intermediate node;
所述第一存储单元52,配置为保存所述第三分组的组信息至所述分组信息数据表,具体还用于保存所述第一终端的节点信息至所述节点信息数据表。The first storage unit 52 is configured to save the group information of the third group to the group information data table, and is further configured to save the node information of the first terminal to the node information data table.
可选地,所述第一获取单元53,配置为获取语音流,将所述语音流编码处理,获得数字音频文件;Optionally, the first obtaining unit 53 is configured to acquire a voice stream, and encode the voice stream to obtain a digital audio file.
所述第一发送单元54,配置为发送所述数字音频文件至所述分组信息数据表中每一分组的中间节点终端,其中,所述所述数字音频文件,用于所述中间节点终端分发给叶节点终端。以使得所述每一分组的中间节点终端将所述数字音频文件发送至叶节点终端。The first sending unit 54 is configured to send the digital audio file to an intermediate node terminal of each packet in the packet information data table, where the digital audio file is used for the intermediate node terminal to distribute Give the leaf node terminal. The intermediate node terminal of each of the packets is sent to the leaf node terminal.
可选地,如图7所示,所述终端还包括:第二存储单元55、连接单元56,Optionally, as shown in FIG. 7, the terminal further includes: a second storage unit 55, a connection unit 56,
所述第二存储单元55,配置为保存所述数字音频文件;The second storage unit 55 is configured to save the digital audio file;
所述连接单元56,配置为根据所述分组信息数据表中每一分组的中间节点终端的无线通讯标识与所述中间节点终端建立连接。The connecting unit 56 is configured to establish a connection with the intermediate node terminal according to a wireless communication identifier of an intermediate node terminal of each packet in the packet information data table.
可选地,本发明实施例提供的终端的理解可以参考实施例一至实施例三的信息处理方法的说明,本发明实施例在此不再赘述。For an understanding of the terminal provided by the embodiment of the present invention, reference may be made to the description of the information processing method in the first embodiment to the third embodiment, and details are not described herein again.
本发明实施例提供的终端,通过发送建网请求,建立树形网络,通过终端建立的树形网络录制、传输、播放语音,可以在室内或室外没有配置扩音系统的会场完成主持、演讲等活动,并且不受主持人或演讲者音量大小限制,使会场中每一个用户都有相同的听觉效果,提高了用户体验。 The terminal provided by the embodiment of the present invention can establish a tree-shaped network by sending a network construction request, and record, transmit, and play voice through a tree network established by the terminal, and can complete hosting, speech, etc. in a venue where the sound reinforcement system is not installed indoors or outdoors. The activity is not limited by the volume of the host or the speaker, so that every user in the venue has the same auditory effect and improves the user experience.
实施例五Embodiment 5
本发明实施例提供一种终端6,如图8所示,所述终端6包括:第二接收单元60、第三存储单元61、第四存储单元62、播放单元63,其中,The embodiment of the present invention provides a terminal 6. As shown in FIG. 8, the terminal 6 includes: a second receiving unit 60, a third storage unit 61, a fourth storage unit 62, and a playing unit 63, where
所述第二接收单元60,配置为接收第三终端发送的第一终端的节点信息,所述第一终端的节点信息携带所述第一终端的节点类型和无线通讯标识;The second receiving unit 60 is configured to receive the node information of the first terminal that is sent by the third terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal;
所述第三存储单元61,配置为保存所述第一终端的无线通讯标识至无线通讯标识列表;The third storage unit 61 is configured to save the wireless communication identifier of the first terminal to the wireless communication identifier list;
所述第二接收单元60,还配置为接收所述第三终端发送的数字音频文件;The second receiving unit 60 is further configured to receive a digital audio file sent by the third terminal;
所述第四存储单元62,配置为保存所述数字音频文件;The fourth storage unit 62 is configured to save the digital audio file;
所述播放单元63,配置为播放所述数字音频文件。The playing unit 63 is configured to play the digital audio file.
可选地,如图9所示,所述终端还包括:第二发送单元64,用于发送第一建网请求至所述第三终端,以使得所述第三终端根据所述第一建网请求确定建网信息,所述第一建网请求包括:请求标识、无线通讯标识、节点类型。Optionally, as shown in FIG. 9, the terminal further includes: a second sending unit 64, configured to send a first network request to the third terminal, so that the third terminal is configured according to the first The network request determines network information, and the first network request includes: a request identifier, a wireless communication identifier, and a node type.
可选地,如图9所示,所述终端还包括:第二发送单元64,配置为发送所述数字音频文件至所述无线通讯标识列表中每一个无线通讯标识对应的终端。Optionally, as shown in FIG. 9, the terminal further includes: a second sending unit 64, configured to send the digital audio file to a terminal corresponding to each wireless communication identifier in the wireless communication identifier list.
可选地,本发明实施例提供的终端的理解可以参考实施例一至实施例三的信息处理方法的说明,本发明实施例在此不再赘述。For an understanding of the terminal provided by the embodiment of the present invention, reference may be made to the description of the information processing method in the first embodiment to the third embodiment, and details are not described herein again.
本发明实施例提供的终端,通过发送建网请求,建立树形网络,通过终端建立的树形网络录制、传输、播放语音,可以在室内或室外没有配置扩音系统的会场完成主持、演讲等活动,并且不受主持人或演讲者音量大 小限制,使会场中每一个用户都有相同的听觉效果,提高了用户体验。The terminal provided by the embodiment of the present invention can establish a tree-shaped network by sending a network construction request, and record, transmit, and play voice through a tree network established by the terminal, and can complete hosting, speech, etc. in a venue where the sound reinforcement system is not installed indoors or outdoors. Activity and not subject to loud volume by the host or speaker The small limit makes every user in the venue have the same auditory effect and improves the user experience.
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述信息处理方法的一个或多个,例如,执行图1、图3、图4及图5所示方法中的一个或多个。所述计算机存储介质可包括随机存储介质RAM、只读存储介质ROM、闪存Flash、U盘或磁带等各种存储介质,可选为非瞬间存储介质。The embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute one or more of the foregoing information processing methods, for example, FIG. One or more of the methods shown in Figures 3, 4 and 5. The computer storage medium may include various storage media such as a random storage medium RAM, a read-only storage medium ROM, a flash memory, a USB flash drive, or a magnetic tape, and may be a non-transitory storage medium.
前述实施例提供的终端中的处理器或处理电路,通过运行指令,可以实现上述信息处理方法中的一个或多个。The processor or processing circuit in the terminal provided by the foregoing embodiment can implement one or more of the above information processing methods by running an instruction.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and modifications made in accordance with the principles of the present invention are understood to fall within the scope of the present invention.

Claims (21)

  1. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    接收i个终端发送的i个建网请求,其中,每一个终端发送一个建网请求,i为大于等于1的自然数;Receiving i network construction requests sent by i terminals, wherein each terminal sends a network construction request, where i is a natural number greater than or equal to 1;
    根据所述i个建网请求的接收顺序对所述i个终端进行分组,确定所述i个终端的建网信息,保存所述i个终端的建网信息至信息数据表;And determining, according to the receiving order of the i network construction requests, the i terminals, the network information of the i terminals, and the network information of the i terminals to the information data table;
    获取数字音频文件,根据所述i个终端的建网信息发送所述数字音频文件。Obtaining a digital audio file, and transmitting the digital audio file according to the network information of the i terminals.
  2. 根据权利要求1所述的方法,其中,所述建网请求包括:请求标识、无线通讯标识、节点类型。The method of claim 1, wherein the network creation request comprises: a request identifier, a wireless communication identifier, and a node type.
  3. 根据权利要求1或2所述的方法,其中,所述建网信息包括:分组信息和节点信息;The method according to claim 1 or 2, wherein the network construction information comprises: group information and node information;
    所述保存所述i个终端的建网信息至信息数据表,包括:The saving the network information of the i terminals to the information data table includes:
    保存所述i个终端的分组信息至分组信息数据表,保存所述i个终端的节点信息至节点信息数据表。And storing the group information of the i terminals to the group information data table, and storing the node information of the i terminals to the node information data table.
  4. 根据权利要求3所述的方法,其中,第一建网请求为所述i个建网请求中的任意一个建网请求,发送所述第一建网请求的终端为第一终端;The method according to claim 3, wherein the first network construction request is a network construction request of any one of the i network construction requests, and the terminal that sends the first network construction request is a first terminal;
    所述根据所述i个建网请求的接收顺序对所述i个终端进行分组,确定所述i个终端的建网信息,保存所述i个终端的建网信息至信息数据表中,包括:The grouping of the i terminals according to the receiving order of the i network construction requests, determining the network construction information of the i terminals, and saving the network information of the i terminals to the information data table, including :
    在所述信息数据表中查找是否存在分组信息;Finding whether there is grouping information in the information data table;
    若不存在分组信息,设定所述第一终端为第一分组的中间节点终端, 创建所述第一分组的组信息,保存所述第一分组的组信息至所述分组信息数据表,设定所述第一建网请求中的节点类型为中间节点,保存所述第一终端的节点信息至所述节点信息数据表;If the group information does not exist, setting the first terminal as an intermediate node terminal of the first group, Creating the group information of the first group, saving the group information of the first group to the group information data table, setting a node type in the first network forming request as an intermediate node, and saving the first terminal Node information to the node information data table;
    若存在分组信息,确定所述分组信息中的每一个分组是否满足预设条件;If there is grouping information, determining whether each of the grouping information satisfies a preset condition;
    若所述分组信息中第二分组未满足预设条件,将所述第一终端加入所述第二分组,设定所述第一建网请求中的节点类型为叶节点,保存所述第一终端的节点信息至所述节点信息数据表,发送所述第一终端的节点信息至第二终端,所述第二终端为所述第二分组的中间节点终端,所述节点信息携带所述第一终端的节点类型和无线通讯标识。If the second packet in the packet information does not meet the preset condition, the first terminal is added to the second packet, and the node type in the first network request is set as a leaf node, and the first node is saved. Sending node information of the terminal to the node information data table, transmitting node information of the first terminal to the second terminal, the second terminal is an intermediate node terminal of the second group, and the node information carries the The node type and wireless communication identifier of a terminal.
  5. 根据权利要求4所述的方法,其中,在所述若存在分组信息,确定所述分组信息中的每一个分组是否满足预设条件之后,还包括:The method according to claim 4, wherein after determining whether each of the grouping information satisfies a preset condition, if the grouping information is present, the method further comprises:
    若所述分组信息中的每一个分组均满足预设条件,设定所述第一终端为第三分组的中间节点终端,创建所述第三分组的组信息,保存所述第三分组的组信息至所述分组信息数据表,设定所述第一建网请求中的节点类型为中间节点,保存所述第一终端的节点信息至所述节点信息数据表。If each of the grouping information meets a preset condition, setting the first terminal as an intermediate node terminal of the third group, creating group information of the third group, and saving the group of the third group The information is sent to the group information data table, and the node type in the first network construction request is set as an intermediate node, and the node information of the first terminal is saved to the node information data table.
  6. 根据权利要求4所述的方法,其中,所述获取数字音频文件,根据所述i个终端的建网信息发送所述数字音频文件,包括:The method of claim 4, wherein the acquiring the digital audio file and transmitting the digital audio file according to the network information of the i terminals comprises:
    获取语音流,将所述语音流编码处理,获得数字音频文件;Acquiring a voice stream, encoding the voice stream to obtain a digital audio file;
    发送所述数字音频文件至所述分组信息数据表中每一分组的中间节点终端,以使得所述每一分组的中间节点终端将所述数字音频文件发送至叶节点终端。Transmitting the digital audio file to an intermediate node terminal of each packet in the packet information data table such that the intermediate node terminal of each packet transmits the digital audio file to a leaf node terminal.
  7. 根据权利要求6所述的方法,其中,在所述获取语音流,将所述语音流编码处理,获得数字音频文件之后,还包括: The method according to claim 6, wherein after the acquiring the voice stream and encoding the voice stream to obtain a digital audio file, the method further comprises:
    保存所述数字音频文件;Saving the digital audio file;
    根据所述分组信息数据表中每一分组的中间节点终端的无线通讯标识与所述中间节点终端建立连接。Establishing a connection with the intermediate node terminal according to the wireless communication identifier of the intermediate node terminal of each packet in the packet information data table.
  8. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    接收第三终端发送的第一终端的节点信息,所述第一终端的节点信息携带所述第一终端的节点类型和无线通讯标识,保存所述第一终端的无线通讯标识至无线通讯标识列表;Receiving, by the third terminal, the node information of the first terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal, and saves the wireless communication identifier of the first terminal to the wireless communication identifier list. ;
    接收所述第三终端发送的数字音频文件,保存所述数字音频文件,播放所述数字音频文件。Receiving a digital audio file sent by the third terminal, saving the digital audio file, and playing the digital audio file.
  9. 根据权利要求8所述的方法,其中,在所述接收第三终端发送的第一终端的节点信息之前,还包括:The method according to claim 8, wherein before receiving the node information of the first terminal sent by the third terminal, the method further includes:
    发送第一建网请求至第三终端,以使得所述第三终端根据所述第一建网请求确定建网信息,所述第一建网请求包括:请求标识、无线通讯标识、节点类型。Sending the first network construction request to the third terminal, so that the third terminal determines the network construction information according to the first network construction request, where the first network construction request includes: a request identifier, a wireless communication identifier, and a node type.
  10. 根据权利要求8所述的方法,其中,在所述接收所述第三终端发送的数字音频文件,保存所述数字音频文件,播放所述数字音频文件之后,还包括:The method of claim 8, wherein after receiving the digital audio file sent by the third terminal, saving the digital audio file, and playing the digital audio file, the method further comprises:
    发送所述数字音频文件至所述无线通讯标识列表中每一个无线通讯标识对应的终端。And transmitting the digital audio file to a terminal corresponding to each wireless communication identifier in the wireless communication identifier list.
  11. 一种终端,所述终端包括:第一接收单元、第一确定单元、第一存储单元、第一获取单元、第一发送单元,其中,a terminal, the terminal includes: a first receiving unit, a first determining unit, a first storage unit, a first acquiring unit, and a first sending unit, where
    所述第一接收单元,配置为接收i个终端发送的i个建网请求,其中,每一个终端发送一个建网请求,i为大于等于1的自然数;The first receiving unit is configured to receive i network construction requests sent by the i terminals, where each terminal sends a network construction request, where i is a natural number greater than or equal to 1;
    所述第一确定单元,配置为根据所述i个建网请求的接收顺序对所述i 个终端进行分组,确定所述i个终端的建网信息;The first determining unit is configured to: according to the receiving order of the i network construction requests, the i The terminals are grouped to determine network information of the i terminals;
    所述第一存储单元,配置为保存所述i个终端的建网信息至信息数据表;The first storage unit is configured to save network information of the i terminals to an information data table;
    所述第一获取单元,配置为获取数字音频文件;The first obtaining unit is configured to acquire a digital audio file;
    所述第一发送单元,配置为根据所述i个终端的建网信息发送所述数字音频文件。The first sending unit is configured to send the digital audio file according to network information of the i terminals.
  12. 根据权利要求11所述的终端,其中,所述建网请求包括:请求标识、无线通讯标识、节点类型。The terminal according to claim 11, wherein the network construction request comprises: a request identifier, a wireless communication identifier, and a node type.
  13. 根据权利要求11或12所述的终端,其中,所述建网信息包括:分组信息和节点信息;The terminal according to claim 11 or 12, wherein the network construction information comprises: group information and node information;
    所述第一存储单元,配置为保存所述i个终端的分组信息至分组信息数据表,还用于保存所述i个终端的节点信息至节点信息数据表。The first storage unit is configured to save the group information of the i terminals to the group information data table, and is further configured to save the node information of the i terminals to the node information data table.
  14. 根据权利要求13所述的终端,其中,第一建网请求为所述i个建网请求中的任意一个建网请求,发送所述第一建网请求的终端为第一终端;The terminal according to claim 13, wherein the first network establishment request is a network construction request of any one of the i network construction requests, and the terminal that sends the first network establishment request is a first terminal;
    所述第一确定单元,配置为在所述信息数据表中查找是否存在分组信息;还用于若不存在分组信息,设定所述第一终端为第一分组的中间节点终端,创建所述第一分组的组信息;The first determining unit is configured to: search for the presence or absence of the grouping information in the information data table; and to set the first terminal as the intermediate node terminal of the first group if the grouping information does not exist, and create the Group information of the first group;
    所述第一存储单元,配置为保存所述第一分组的组信息至所述分组信息数据表;The first storage unit is configured to save group information of the first group to the group information data table;
    所述第一确定单元,还配置为设定所述第一建网请求中的节点类型为中间节点;The first determining unit is further configured to set a node type in the first network forming request as an intermediate node;
    所述第一存储单元,还配置为保存所述第一终端的节点信息至所述节点信息数据表;The first storage unit is further configured to save node information of the first terminal to the node information data table;
    所述第一确定单元,配置为若存在分组信息,确定所述分组信息中的 每一个分组是否满足预设条件;还配置为若所述分组信息中第二分组未满足预设条件,将所述第一终端加入所述第二分组,设定所述第一建网请求中的节点类型为叶节点;The first determining unit is configured to determine, if there is grouping information, the grouping information Whether each of the packets meets the preset condition; if the second packet in the packet information does not meet the preset condition, the first terminal is added to the second packet, and the first network request is set. The node type is a leaf node;
    所述第一存储单元,配置为保存所述第一终端的节点信息至所述节点信息数据表;The first storage unit is configured to save node information of the first terminal to the node information data table;
    所述第一发送单元,配置为发送所述第一终端的节点信息至第二终端,所述第二终端为所述第二分组的中间节点终端,所述节点信息携带所述第一终端的节点类型和无线通讯标识。The first sending unit is configured to send the node information of the first terminal to the second terminal, the second terminal is an intermediate node terminal of the second group, and the node information carries the first terminal Node type and wireless communication ID.
  15. 根据权利要求14所述的终端,其中,The terminal according to claim 14, wherein
    所述第一确定单元,配置为若所述分组信息中的每一个分组均满足预设条件,设定所述第一终端为第三分组的中间节点终端,创建所述第三分组的组信息,具体还用于设定所述第一建网请求中的节点类型为中间节点;The first determining unit is configured to: if each of the grouping information meets a preset condition, set the first terminal to be an intermediate node terminal of the third group, and create group information of the third group Specifically, the method further includes: setting a node type in the first network establishment request to an intermediate node;
    所述第一存储单元,配置为保存所述第三分组的组信息至所述分组信息数据表,配置为保存所述第一终端的节点信息至所述节点信息数据表。The first storage unit is configured to save group information of the third group to the group information data table, and configured to save node information of the first terminal to the node information data table.
  16. 根据权利要求14所述的终端,其中,The terminal according to claim 14, wherein
    所述第一获取单元,配置为获取语音流,将所述语音流编码处理,获得数字音频文件;The first acquiring unit is configured to acquire a voice stream, and encode the voice stream to obtain a digital audio file.
    所述第一发送单元,配置为发送所述数字音频文件至所述分组信息数据表中每一分组的中间节点终端,以使得所述每一分组的中间节点终端将所述数字音频文件发送至叶节点终端。The first sending unit is configured to send the digital audio file to an intermediate node terminal of each packet in the packet information data table, so that the intermediate node terminal of each packet sends the digital audio file to Leaf node terminal.
  17. 根据权利要求16所述的终端,其中,所述终端还包括:第二存储单元、连接单元,The terminal according to claim 16, wherein the terminal further comprises: a second storage unit, a connection unit,
    所述第二存储单元,配置为保存所述数字音频文件;The second storage unit is configured to save the digital audio file;
    所述连接单元,配置为根据所述分组信息数据表中每一分组的中间节 点终端的无线通讯标识与所述中间节点终端建立连接。The connecting unit is configured to be according to a middle section of each group in the grouping information data table The wireless communication identifier of the point terminal establishes a connection with the intermediate node terminal.
  18. 一种终端,,所述终端包括:第二接收单元、第三存储单元、第四存储单元、播放单元,其中,A terminal, comprising: a second receiving unit, a third storage unit, a fourth storage unit, and a playing unit, wherein
    所述第二接收单元,配置为接收第三终端发送的第一终端的节点信息,所述第一终端的节点信息携带所述第一终端的节点类型和无线通讯标识;The second receiving unit is configured to receive node information of the first terminal that is sent by the third terminal, where the node information of the first terminal carries the node type and the wireless communication identifier of the first terminal;
    所述第三存储单元,配置为保存所述第一终端的无线通讯标识至无线通讯标识列表;The third storage unit is configured to save the wireless communication identifier of the first terminal to a wireless communication identifier list;
    所述第二接收单元,还配置为接收所述第三终端发送的数字音频文件;The second receiving unit is further configured to receive a digital audio file sent by the third terminal;
    所述第四存储单元,配置为保存所述数字音频文件;The fourth storage unit is configured to save the digital audio file;
    所述播放单元,配置为播放所述数字音频文件。The playing unit is configured to play the digital audio file.
  19. 根据权利要求18所述的终端,其中,所述终端还包括:第二发送单元,配置为发送第一建网请求至所述第三终端,以使得所述第三终端根据所述第一建网请求确定建网信息,所述第一建网请求包括:请求标识、无线通讯标识、节点类型。The terminal according to claim 18, wherein the terminal further comprises: a second sending unit, configured to send a first network forming request to the third terminal, so that the third terminal is built according to the first The network request determines network information, and the first network request includes: a request identifier, a wireless communication identifier, and a node type.
  20. 根据权利要求18所述的终端,其中,所述终端还包括:第二发送单元,配置为发送所述数字音频文件至所述无线通讯标识列表中每一个无线通讯标识对应的终端。The terminal according to claim 18, wherein the terminal further comprises: a second sending unit configured to send the digital audio file to a terminal corresponding to each wireless communication identifier in the wireless communication identifier list.
  21. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至10所述信息处理方法的至少其中之一。 A computer storage medium having stored therein computer executable instructions for performing at least one of the information processing methods of claims 1 to 10.
PCT/CN2016/102191 2016-06-24 2016-10-14 Information processing method, terminal, and computer storage medium WO2017219546A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610473510.XA CN107547469A (en) 2016-06-24 2016-06-24 A kind of information processing method and terminal
CN201610473510.X 2016-06-24

Publications (1)

Publication Number Publication Date
WO2017219546A1 true WO2017219546A1 (en) 2017-12-28

Family

ID=60783752

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102191 WO2017219546A1 (en) 2016-06-24 2016-10-14 Information processing method, terminal, and computer storage medium

Country Status (2)

Country Link
CN (1) CN107547469A (en)
WO (1) WO2017219546A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868335A (en) * 2021-09-15 2021-12-31 威讯柏睿数据科技(北京)有限公司 Method and equipment for expanding distributed clusters of memory database

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187501B (en) * 2019-07-05 2022-08-09 腾讯科技(深圳)有限公司 Terminal grouping management method, device, equipment and storage medium
CN115695166A (en) * 2022-11-01 2023-02-03 中电云数智科技有限公司 Large-scale storage cluster capacity expansion grouping method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873219A (en) * 2010-05-31 2010-10-27 中山大学深圳研究院 System for live broadcast of video conference on basis of application-layer multicast services
CN103312906A (en) * 2013-05-21 2013-09-18 华为技术有限公司 Method and device for realizing teleconference
CN104901815A (en) * 2014-03-05 2015-09-09 华为技术有限公司 Grouping method for user terminals, conference server and conference system
US20160088033A1 (en) * 2014-09-18 2016-03-24 Chiun Mai Communication Systems, Inc. Electronic device and method for establishing conference call

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8601058B2 (en) * 2011-03-24 2013-12-03 Cisco Technology, Inc. Mobile videoconferencing
US20140282107A1 (en) * 2013-03-13 2014-09-18 Christopher Hobbs System and method to interactively collaborate utilizing segmented layers in a network environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873219A (en) * 2010-05-31 2010-10-27 中山大学深圳研究院 System for live broadcast of video conference on basis of application-layer multicast services
CN103312906A (en) * 2013-05-21 2013-09-18 华为技术有限公司 Method and device for realizing teleconference
CN104901815A (en) * 2014-03-05 2015-09-09 华为技术有限公司 Grouping method for user terminals, conference server and conference system
US20160088033A1 (en) * 2014-09-18 2016-03-24 Chiun Mai Communication Systems, Inc. Electronic device and method for establishing conference call

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868335A (en) * 2021-09-15 2021-12-31 威讯柏睿数据科技(北京)有限公司 Method and equipment for expanding distributed clusters of memory database

Also Published As

Publication number Publication date
CN107547469A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
JP6977083B2 (en) Ring network of multiple speakers
US8340267B2 (en) Audio transforms in connection with multiparty communication
US9215258B2 (en) Methods for managing conferences
TWI604715B (en) Method and system for adjusting volume of conference call
CN106126168B (en) A kind of sound effect treatment method and device
WO2017210991A1 (en) Method, device and system for voice filtering
CN108111953B (en) Audio sharing method and system based on TWS earphone and TWS earphone
CN107911361B (en) Voice management method and device supporting multiple sessions, terminal equipment and storage medium
WO2017219546A1 (en) Information processing method, terminal, and computer storage medium
CN101904151A (en) Method of controlling communications between at least two users of a communication system
CN106063238B (en) Mixing continuous perceptually in videoconference
US9106717B2 (en) Speaking participant identification
CN105847096A (en) Audio frequency data communication method, device and system
CN104883460B (en) Access the processing method and processing device of IP-based videoconference
JP2015215601A (en) Configuration method of sound collection system for meeting using plural terminals and server unit
JP5602688B2 (en) Sound image localization control system, communication server, multipoint connection device, and sound image localization control method
US10904716B1 (en) Wireless audio and communication system
JP2019047172A (en) Server device, control method, and program
JPWO2020022155A1 (en) Calling terminals, calling systems, calling terminal control methods, calling programs, and recording media
CN105634757A (en) Communication method, communication device, terminal and communication system
JP2017005377A (en) Control device, reproducing device, and reproducing method

Legal Events

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

Ref document number: 16906086

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16906086

Country of ref document: EP

Kind code of ref document: A1