Communication method and communication apparatus
By adjusting configuration requests through the audio client and controlling the recommended parameter responses from the audio server, the problem of high computational and signaling overhead in audio stream configuration is solved, achieving more efficient audio stream configuration.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-08-21
- Publication Date
- 2026-03-12
AI Technical Summary
During audio stream configuration or reconfiguration, the audio server incurs significant computational and signaling overhead, and the audio client may unnecessarily refer to the audio server's recommended parameters.
The audio client adjusts the audio stream configuration request according to different situations, controls whether the audio server responds with recommended parameters, and implicitly indicates the recommended parameters of the configuration items through association, avoiding unnecessary recommendations of related configuration items.
It saves on the computational load and signaling overhead of the audio server, avoids compatibility issues, and improves the efficiency and effectiveness of audio stream configuration.
Smart Images

Figure CN2025116103_12032026_PF_FP_ABST
Abstract
Description
Communication method and communication apparatus
[0001] The present application claims priority to the Chinese patent application No. 202411234179.7, filed on September 3, 2024, entitled "Communication method and communication apparatus", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of communication technology, and more particularly, to a communication method and a communication apparatus. BACKGROUND
[0003] In an audio stream configuration or reconfiguration process, an audio client can send a parameter of one or more audio stream configuration items to an audio server, and the audio stream server can configure the audio stream according to the parameter after receiving the parameter of the one or more audio stream configuration items, and reply a response information to indicate that the audio stream server has been configured successfully.
[0004] Currently, when the audio client uses the request information to request the audio server to configure the configuration item of the audio stream, the audio server can reply the recommended parameter of another associated configuration item according to the configuration parameter of the configuration item in the response information. However, this process occupies the operation and signaling overhead of the audio server, and the audio client exists the case of not necessarily referring to the recommended parameter given by the audio server. SUMMARY
[0005] Embodiments of the present application provide a communication method and a communication apparatus, and the audio client adjusts the audio stream configuration request to be sent according to different situations, so that the audio server can reply or not reply the recommended parameter correspondingly when replying the audio stream configuration response.
[0006] In a first aspect, a communication method is provided, which can be executed by an audio client. In the absence of special description, the "audio client" in the present application can refer to the audio client itself, or a component (for example, a processor, a chip, or a chip system, etc.) in the audio client, or a logic module or software capable of realizing all or part of the functions of the audio client apparatus. The audio client can be a G node in a star flash scene, or other corresponding devices, which can be determined according to actual conditions.
[0007] The method comprises: an audio client sending first request information to an audio server, the first request information comprising a first parameter, the first parameter being used to request the audio server to configure a first configuration item of an audio stream; and the audio client receiving first response information from the audio server, the first response information comprising a configuration result of the first configuration item; wherein when a first condition is met, the first response information does not comprise a second parameter; and when the first condition is not met, the first response information further comprises the second parameter, the second parameter being used for the audio client to obtain a third parameter, the third parameter being used to request the audio server to configure a second configuration item of the audio stream, and the first configuration item and the second configuration item having a first association relationship.
[0008] In the method, by the audio client determining whether the second parameter (a recommended parameter of the second configuration item) needs to be replied by the audio server according to whether the sending of the request information is needed, the audio server can carry or not carry the second parameter in the response information in combination with the sending of the request information. Thus, the audio client can dominate the audio stream configuration process, the audio server can not recommend unnecessary associated configuration items, compatibility problems can be avoided, and the computation amount and signaling overhead of the audio server can be saved.
[0009] With reference to the first aspect, in some implementations of the first aspect, the first configuration item is an audio stream type or an audio stream duration, and the second configuration item is a codec parameter; or the first configuration item is a codec parameter, and the second configuration item is a data channel requirement. If the audio client performs parameter recommendation of a specific configuration item according to the association relationship provided in the embodiments of the present application, the audio server can first obtain feature information (the first parameter) of the audio stream, select an optimal second parameter in combination with information such as self-capability and currently available air interface resources, so that the playing of the audio stream after configuration is successful reaches an optimal effect.
[0010] With reference to the first aspect, in some implementations of the first aspect, the first condition is that the first configuration item and a third configuration item have a first association relationship; the third configuration item is a configuration item in which a fourth parameter is used to request the audio server to configure the audio stream, and the fourth parameter is included in second request information; and the method further comprises: before the audio server sends the first request information to the audio client, the audio client sends the second request information to the audio server; and the audio client receives second response information from the audio server, the second response information comprising a configuration result of the third configuration item.
[0011] That is, the configuration item (the third configuration item) having the same association relationship with the first configuration item has been configured at the audio server, and the audio server does not have to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommendation parameter of the associated configuration item according to the specific configurations of the first request information and the second request information, so that the audio client can dominate the audio stream configuration process.
[0012] In some implementations of the first aspect, the first case is that the first configuration item and at least one fourth configuration item have the first association relationship, and the at least one fourth configuration item is a configuration item for which the audio server configures the audio stream according to at least one fifth parameter, and the at least one fifth parameter is included in the first request information.
[0013] That is, the configuration item (the at least one fourth configuration item) having the first association relationship with the first configuration item is carried in the first request information, and the audio server does not have to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommendation parameter of the associated configuration item according to the specific configurations of the multiple parameters in the first request information, so that the audio client can dominate the audio stream configuration process.
[0014] In some implementations of the first aspect, the audio client further sends third request information to the audio server, the third request information includes a sixth parameter, and the sixth parameter is used to request the audio server to configure a fifth configuration item of the audio stream, wherein the fifth configuration item has the first association relationship with the second configuration item, and the fifth configuration item is different from the first configuration item; and the audio client receives third response information from the audio server, the third response information includes a seventh parameter, and the seventh parameter is used for the audio client to obtain an eighth parameter, and the eighth parameter is used to request the audio server to configure the second configuration item of the audio stream.
[0015] That is, the audio server receives two request information, and the two request information respectively carries two parameters used to request configuration of different configuration items. If the two configuration items both have the first association relationship with the second configuration item, the audio server can reply to the first parameter recommended by the second configuration item for the first request information, and reply to the second parameter recommended by the second configuration item for the second request information. Therefore, the audio server can refer to the parameters provided by the audio client for different configuration items, recommend parameters for the same configuration item according to different dimensions, and facilitate the audio client to make reference.
[0016] With reference to the first aspect, in some implementations of the first aspect, the first request information further comprises a ninth parameter, the at least one sixth configuration item has a first association relationship with the second configuration item; and the second parameter is determined according to the first parameter and the at least one ninth parameter. That is, the audio client can send the request parameter of multiple configuration items that have a first association relationship with the second configuration item by using one request information, so that the audio server can provide parameters in combination with different configuration items, and give more comprehensive recommended parameters.
[0017] With reference to the first aspect, in some implementations of the first aspect, wherein: the first request information further comprises at least one tenth parameter, the at least one tenth parameter is used to request the audio server to configure at least one seventh configuration item of the audio stream, wherein the first configuration item and the at least one seventh configuration item are all configuration items that the audio stream server needs to configure for the audio stream, or the at least one seventh configuration item has a second association relationship with the at least one eighth configuration item, and the first configuration item, the at least one seventh configuration item and the at least one eighth configuration item are all configuration items that the audio stream server needs to configure for the audio stream; and the first response information does not comprise a parameter used to request the audio server to configure the configuration item of the audio stream.
[0018] That is, the audio server can directly determine the corresponding parameters of all configuration items according to the parameters carried in the first request information, at this time, the audio server does not need to recommend any parameters.
[0019] With reference to the first aspect, in some implementations of the first aspect, wherein: the at least one seventh configuration item comprises an audio stream type, and the at least one eighth configuration item comprises an audio stream duration; or the at least one seventh configuration item comprises a data channel requirement, and the at least one eighth configuration item comprises a port number.
[0020] With reference to the first aspect, in some implementations of the first aspect, when the first condition is not met, the method further comprises: the audio client sends fourth request information to the audio server according to the second parameter, the fourth request information comprising a third parameter; and the audio client receives fourth response information from the audio server, the fourth response information comprising a configuration result of the second configuration item, the configuration result of the second configuration item being failure, and the fourth response information further comprising first information, the first information being used to indicate that the third parameter does not meet the first condition.
[0021] That is, if the third parameter provided by the audio client does not match the second parameter recommended by the audio server, the audio server can refuse to configure by using the third parameter.
[0022] With reference to the first aspect, in some implementations of the first aspect, the first condition is that the second parameter and the third parameter are the same, or a difference between the second parameter and the third parameter is less than a first threshold. That is, the parameter mismatch can be specifically understood as that the two parameters are different or the difference between the two parameters is too large.
[0023] In a second aspect, a communication method is provided, which can be performed by an audio server. The audio server can refer to the audio server itself, a component (for example, a processor, a chip, or a chip system) in the audio server, or a logic module or software capable of realizing all or part of the functions of the audio server device, unless otherwise specified.
[0024] The method includes: receiving, by the audio server, first request information from an audio client, the first request information including a first parameter, the first parameter being used to request the audio server to configure a first configuration item of an audio stream; and sending, by the audio server, first response information to the audio client, the first response information including a configuration result of the first configuration item; wherein when a first condition is met, the first response information does not include a second parameter; and when the first condition is not met, the first response information further includes the second parameter, the second parameter being used for the audio client to obtain a third parameter, the third parameter being used to request the audio server to configure a second configuration item of the audio stream, the first configuration item and the second configuration item having a first association relationship.
[0025] In the above method, by the audio client determining whether the audio server needs to reply the second parameter (a recommended parameter of the second configuration item) according to whether the audio client needs to send the configuration request information, the audio server can carry or not carry the second parameter in the response information according to the sending of the configuration request information. Thus, the audio client can dominate the audio stream configuration process, the audio server can not recommend unnecessary associated configuration items, compatibility problems can be avoided, and the computational load and signaling overhead of the audio server can be saved.
[0026] With reference to the second aspect, in some implementations of the second aspect, the first configuration item is an audio stream type or an audio stream duration, and the second configuration item is a codec parameter; or the first configuration item is a codec parameter, and the second configuration item is a data channel requirement. If the audio client performs parameter recommendation of a specific configuration item according to the association relationship provided in the embodiments of the present application, the audio server can first obtain feature information (the first parameter) of the audio stream, and select the optimal second parameter according to the capability of the audio server, currently available air interface resources, and the like, so that the playing of the audio stream after the configuration is successful reaches the optimal effect.
[0027] In some implementations of the second aspect, in the first case, the first configuration item and the third configuration item have a first association relationship, the third configuration item is a configuration item for which the fourth parameter requests the audio server to configure the audio stream, and the fourth parameter is included in the second request information. The method further includes: before the audio server receives the first request information from the audio client, the audio server receives the second request information from the audio client; and the audio server sends the second response information to the audio client, the second response information including a configuration result of the third configuration item.
[0028] That is, the configuration item (the third configuration item) having the same association relationship as the first configuration item has been configured at the audio server, and thus the audio server does not need to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Thus, the audio client can implicitly instruct the audio server whether to send the recommendatory parameter of the associated configuration item according to the specific configurations of the first request information and the second request information, so that the audio client can dominate the audio stream configuration process.
[0029] In some implementations of the second aspect, in the first case, the first configuration item and the at least one fourth configuration item have a first association relationship, and the at least one fourth configuration item is a configuration item for which at least one fifth parameter requests the audio server to configure the audio stream, and the at least one fifth parameter is included in the first request information.
[0030] That is, the configuration item (the at least one fourth configuration item) having the first association relationship with the first configuration item is carried in the first request information, and thus the audio server does not need to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Thus, the audio client can implicitly instruct the audio server whether to send the recommendatory parameter of the associated configuration item according to the specific configurations of the multiple parameters in the first request information, so that the audio client can dominate the audio stream configuration process.
[0031] In some implementations of the second aspect, the method further includes: the audio server receives the third request information from the audio client, the third request information including a sixth parameter, the sixth parameter being used to request the audio server to configure a fifth configuration item of the audio stream, the fifth configuration item having the first association relationship with the second configuration item and being different from the first configuration item; and the audio server sends the third response information to the audio client, the third response information including a seventh parameter, the seventh parameter being used for the audio client to obtain an eighth parameter, the eighth parameter being used to request the audio server to configure the second configuration item of the audio stream.
[0032] That is, the audio server receives two request information, and the two request information respectively carries two parameters for requesting configuration of different configuration items. If the two configuration items both have the first association relationship with the second configuration item, the audio server can reply to the first parameter recommended by the second configuration item for the first request information, and reply to the second parameter recommended by the second configuration item for the second request information. Thus, the audio server can refer to the parameters provided by the audio client for different configuration items, recommend parameters for the same configuration item according to different dimensions, and facilitate the audio client to make reference.
[0033] With reference to the second aspect, in some implementations of the second aspect, the first request information further includes at least one ninth parameter, the at least one ninth parameter is used to request the audio server to configure at least one sixth configuration item of the audio stream, and the at least one sixth configuration item has the first association relationship with the second configuration item; and the second parameter is determined according to the first parameter and the at least one ninth parameter.
[0034] That is, the audio client can use one request information to send request parameters of multiple configuration items that have the first association relationship with the second configuration item. Thus, the audio server can combine parameters of different configuration items to give more comprehensive recommended parameters. With reference to the second aspect, in some implementations of the second aspect, the first request information further includes at least one tenth parameter, the at least one tenth parameter is used to request the audio server to configure at least one seventh configuration item of the audio stream, and the first configuration item and the at least one seventh configuration item are all configuration items that need to be configured by the audio stream server for the audio stream, or the at least one seventh configuration item has the second association relationship with the at least one eighth configuration item, and the first configuration item, the at least one seventh configuration item and the at least one eighth configuration item are all configuration items that need to be configured by the audio stream server for the audio stream; and the first response information does not include parameters used to request the audio server to configure configuration items of the audio stream.
[0035] That is, the audio server can directly determine corresponding parameters of all configuration items according to the parameters carried in the first request information. At this time, the audio server does not need to recommend any parameters.
[0036] With reference to the first aspect, in some implementations of the first aspect, the at least one seventh configuration item includes an audio stream type, and the at least one eighth configuration item includes an audio stream duration; or the at least one seventh configuration item includes a data channel requirement, and the at least one eighth configuration item includes a port number.
[0037] With reference to the second aspect, in some implementations of the second aspect, when the first condition is not met, the method further includes: receiving, by the audio server, fourth request information from the audio client, the fourth request information including the third parameter; and sending, by the audio server, fourth response information to the audio client, the fourth response information including a configuration result of the second configuration item, the configuration result of the second configuration item being failure, and the fourth response information further including the first information, the first information being used to indicate that the third parameter does not meet the first condition.
[0038] That is, if the third parameter provided by the audio client does not match the second parameter recommended by the audio server, the audio server can refuse to configure using the third parameter.
[0039] With reference to the second aspect, in some implementations of the second aspect, the first condition is that the second parameter and the third parameter are the same, or the difference between the second parameter and the third parameter is less than a first threshold. That is, parameter mismatch can be specifically understood as two parameters being different or the difference between two parameters being too large.
[0040] In a third aspect, a communication method is provided, which can be performed by an audio client. In the absence of special description, the "audio client" in the present application can refer to the audio client itself, or a component (for example, a processor, a chip, or a chip system, etc.) in the audio client, or a logic module or software capable of realizing all or part of the functions of the audio client device. The audio client can be a G node in a star flash scene, or other corresponding devices, which is determined according to actual conditions.
[0041] The method includes: sending, by the audio client, first request information to the audio server, the first request information including a first parameter, the first parameter being used to request the audio server to configure a first configuration item of an audio stream; receiving, by the audio client, first response information from the audio server, the first response information including a configuration result of the first configuration item; when a first condition is met, the first response information does not include a second parameter; and when the first condition is not met, the first response information further includes the second parameter, the second parameter being used for the audio client to obtain a third parameter, the third parameter being used to request the audio server to configure a second configuration item of the audio stream, the first configuration item and the second configuration item being associated.
[0042] In the above method, by the audio client determining whether the audio server needs to reply the second parameter (a recommended parameter of the second configuration item) according to the sending condition of the request information, the audio server can carry or not carry the second parameter in the response information in combination with the sending condition of the request information. Thus, the audio client can dominate the audio stream configuration process, so that the audio server can not recommend unnecessary associated configuration items, avoid compatibility problems, and save the computational amount and signaling overhead of the audio server.
[0043] With reference to the third aspect, in some implementations of the third aspect, the associating the first configuration item and the second configuration item comprises: the first configuration item belongs to a first set, the second configuration item belongs to a second set, and there is a first association relationship between the configuration items in the first set and the configuration items in the second set. The configuration items are divided into sets according to the association relationship between the configuration items.
[0044] With reference to the third aspect, in some implementations of the third aspect, wherein: when the first set includes multiple configuration items, there is a second association relationship between any two configuration items in the first set; and / or when the second set includes multiple configuration items, there is a second association relationship between any two configuration items in the second set. The configuration items are divided into sets according to the association relationship between the configuration items.
[0045] With reference to the third aspect, in some implementations of the third aspect, the first set includes at least one of the following: an audio stream type, an audio stream duration, and the second set includes at least one of the following: a codec parameter; or the first set includes at least one of the following: a codec parameter, and the second set includes at least one of the following: a data channel requirement. If the audio client performs parameter recommendation for specific configuration items according to the association relationship provided by the embodiments of the present application, the audio server can first obtain the feature information (the first parameter) of the audio stream, select the optimal second parameter in combination with the information such as the current available air interface resources and the like, so that the playing of the audio stream after the configuration is successful reaches the optimal effect.
[0046] With reference to the third aspect, in some implementations of the third aspect, the first case is that: the third configuration item belongs to the second set; the third configuration item is a configuration item for which a fourth parameter requests the audio server to configure the audio stream, and the fourth parameter is included in the second request information. The method further comprises: before the audio server sends the first request information to the audio client, the audio server receives the second request information from the audio client; and the audio server sends second response information to the audio client, the second response information including a configuration result of the third configuration item.
[0047] Thus, the audio client can implicitly indicate whether the audio server sends the recommended parameters of the associated configuration items according to the specific configurations of the first request information and the second request information, so that the audio client can dominate the audio stream configuration process.
[0048] With reference to the third aspect, in some implementations of the third aspect, the first case is that: at least one fourth configuration item belongs to the second set; the at least one fourth configuration item is a configuration item for which at least one fifth parameter requests the audio server to configure the audio stream, and the at least one fifth parameter is included in the first request information.
[0049] That is, the configuration item (the third configuration item) belonging to the same set as the second configuration item has been carried in the first request information, and the audio server does not have to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommended parameters of the associated configuration item according to the specific configuration of the plurality of parameters in the first request information, so that the audio client can dominate the audio stream configuration process.
[0050] In combination with the third aspect, in some implementations of the third aspect, the audio client further sends third request information to the audio server, the third request information includes a sixth parameter, the sixth parameter is used to request the audio server to configure a fifth configuration item of the audio stream, and the fifth configuration item belongs to the first set; and the audio client receives third response information from the audio server, the third response information includes a seventh parameter, and the seventh parameter is used for the audio client to obtain an eighth parameter, and the eighth parameter is used to request the audio server to configure a second configuration item of the audio stream.
[0051] That is, the audio server receives two request information, and the two request information respectively carries two parameters used to request configuration of different configuration items. If the two configuration items belong to the first set, and according to the division rule of the set, the two configuration items have the first association relationship with the second configuration item, the audio server can reply to the first parameter recommended by the second configuration item for the first request information, and reply to the second parameter recommended by the second configuration item for the second request information. Therefore, the audio server can refer to the parameters provided by the audio client for different configuration items, recommend parameters for the same configuration item according to different dimensions, and facilitate the audio client to make reference.
[0052] In combination with the third aspect, in some implementations of the third aspect, the first request information further includes at least one ninth parameter, and the at least one ninth parameter is used to request the audio server to configure at least one sixth configuration item of the audio stream, and the at least one sixth configuration item belongs to the first set. That is, the audio client can use one request information to send the request parameters of a plurality of configuration items having the first association relationship with the second configuration item, so that the audio server can simultaneously combine the parameters provided by different configuration items to give more comprehensive recommended parameters.
[0053] In some implementations of the third aspect, in combination with the third aspect, the first request information further includes at least one tenth parameter, the at least one tenth parameter is used to request the audio server to configure at least one seventh configuration item of the audio stream, the at least one seventh configuration item corresponds to at least one third set, the first set and the at least one third set are all sets that need to be configured by the audio stream server, and the first response information does not include a parameter used to request the audio server to configure a configuration item of the audio stream. That is, after the audio server obtains the parameters corresponding to all sets that need to be configured according to the first request information, the audio server can directly determine the corresponding parameters of all configuration items according to the parameters carried in the first request information. At this time, the audio server does not need to recommend any parameter.
[0054] In some implementations of the third aspect, in combination with the third aspect, when the first condition is not met, the method further includes: the audio client sends fourth request information to the audio server according to the second parameter, the fourth request information includes the third parameter; and the audio server sends fourth response information to the audio client, the fourth response information includes a configuration result of the second configuration item, the configuration result of the second configuration item is failure, and the fourth response information further includes first information, the first information is used to indicate that the third parameter does not meet the first condition.
[0055] That is, if the third parameter provided by the audio client does not match the second parameter recommended by the audio server, the audio server can refuse to configure by using the third parameter.
[0056] In some implementations of the third aspect, in combination with the third aspect, the first condition is that the second parameter and the third parameter are the same, or a difference between the second parameter and the third parameter is less than a first threshold. That is, the parameter mismatch can be specifically understood as that the two parameters are different or the difference between the two parameters is too large.
[0057] In a fourth aspect, a communication method is provided, which can be executed by an audio server. In the absence of special description, the "audio server" in the present application can refer to the audio server itself, a component (for example, a processor, a chip, or a chip system) in the audio server, or a logic module or software capable of realizing all or part of the functions of the audio server device. The audio server can be a T node in a star flash scene or other corresponding devices, which is determined according to actual conditions.
[0058] The method comprises: an audio server receiving first request information from an audio client, the first request information comprising a first parameter, the first parameter being used to request the audio server to configure a first configuration item of an audio stream; the audio server sending first response information to the audio client, the first response information comprising a configuration result of the first configuration item; when a first condition is met, the first response information does not comprise a second parameter; when the first condition is not met, the first response information further comprises the second parameter, the second parameter being used for the audio client to obtain a third parameter, the third parameter being used to request the audio server to configure a second configuration item of the audio stream, and the first configuration item and the second configuration item being associated.
[0059] In the method, by the audio client determining whether the second parameter (a recommended parameter of the second configuration item) needs to be replied by the audio server according to whether the sending of the request information is needed, the audio server can carry or not carry the second parameter in the response information in combination with the sending of the request information. Thus, the audio client can dominate the audio stream configuration process, the audio server can not recommend unnecessary associated configuration items, compatibility problems can be avoided, and the computation amount and signaling overhead of the audio server can be saved.
[0060] With reference to the fourth aspect, in some implementations of the fourth aspect, the first configuration item belongs to a first set, the second configuration item belongs to a second set, and the configuration items in the first set and the configuration items in the second set have a first association relationship. The configuration items are divided into sets according to the association relationship between the configuration items.
[0061] With reference to the fourth aspect, in some implementations of the fourth aspect, when the first set comprises a plurality of configuration items, any two configuration items in the first set have a second association relationship, and / or when the second set comprises a plurality of configuration items, any two configuration items in the second set have a second association relationship. The configuration items are divided into sets according to the association relationship between the configuration items.
[0062] With reference to the fourth aspect, in some implementations of the fourth aspect, the first set comprises at least one of the following: an audio stream type, an audio stream duration, the second set comprises at least one of the following: a codec parameter, or the first set comprises at least one of the following: a codec parameter, and the second set comprises at least one of the following: a data channel requirement. If the audio client performs parameter recommendation of a specific configuration item according to the association relationship provided in the embodiments of the present application, the audio server can first obtain feature information (the first parameter) of the audio stream, select the optimal second parameter in combination with information such as the capability of the audio server and currently available air interface resources, so that the playing of the audio stream after the configuration is successful reaches the optimal effect.
[0063] In some implementations of the fourth aspect, in the first case, the third configuration item belongs to the second set; the third configuration item is a configuration item for which the fourth parameter requests the audio server to configure the audio stream; the fourth parameter is included in the second request information; the method further includes: before the audio server receives the first request information from the audio client, the audio server receives the second request information from the audio client; and the audio server sends the second response information to the audio client, the second response information including a configuration result of the third configuration item.
[0064] Thus, the audio client can implicitly instruct the audio server whether to send the recommendatory parameter of the associated configuration item according to the specific configurations of the first request information and the second request information, so that the audio client can dominate the audio stream configuration process.
[0065] In some implementations of the fourth aspect, in the first case, at least one fourth configuration item belongs to the second set; the at least one fourth configuration item is a configuration item for which at least one fifth parameter requests the audio server to configure the audio stream; and the at least one fifth parameter is included in the first request information.
[0066] That is, the configuration item (the third configuration item) belonging to the same set as the second configuration item has been carried in the first request information, so the audio server does not have to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Thus, the audio client can implicitly instruct the audio server whether to send the recommendatory parameter of the associated configuration item according to the specific configurations of the multiple parameters in the first request information, so that the audio client can dominate the audio stream configuration process.
[0067] In some implementations of the fourth aspect, the method further includes: the audio server receives the third request information from the audio client, the third request information including a sixth parameter; the sixth parameter is used to request the audio server to configure a fifth configuration item of the audio stream; the fifth configuration item belongs to the first set; and the audio server sends the third response information to the audio client, the third response information including a seventh parameter; the third response information includes the seventh parameter; and the seventh parameter is used for the audio client to obtain an eighth parameter; the eighth parameter is used to request the audio server to configure the second configuration item of the audio stream.
[0068] That is, the audio server receives two request information, and the two request information respectively carries two parameters for requesting configuration of different configuration items. If the two configuration items both belong to the first set, and according to the set division rule, the two configuration items both have the first association relationship with the second configuration item, the audio server can reply to the first parameter recommended by the second configuration item for the first request information, and reply to the second parameter recommended by the second configuration item for the second request information. Thus, the audio server can refer to the parameters provided by the audio client for different configuration items, recommend parameters for the same configuration item according to different dimensions, and facilitate the audio client to refer.
[0069] In combination with the fourth aspect, in some implementations of the fourth aspect, the first request information further includes at least one ninth parameter, and the at least one ninth parameter is used to request the audio server to configure at least one sixth configuration item of the audio stream, and the at least one sixth configuration item belongs to the first set. That is, the audio client can use one request information to send request parameters of multiple configuration items that have the first association relationship with the second configuration item, so that the audio server can simultaneously combine parameters of different configuration items to give more comprehensive recommended parameters.
[0070] In combination with the fourth aspect, in some implementations of the fourth aspect, wherein: the first request information further includes at least one tenth parameter, and the at least one tenth parameter is used to request the audio server to configure at least one seventh configuration item of the audio stream, and the at least one seventh configuration item corresponds to at least one third set, and the first set and the at least one third set are all sets of configuration items that the audio stream server needs to configure for the audio stream; and the first response information does not include parameters used to request the audio server to configure configuration items of the audio stream. That is, when the audio server obtains parameters corresponding to all sets of configuration items required for configuration according to the first request information, the audio server can directly determine the corresponding parameters of all configuration items according to the parameters carried in the first request information. At this time, the audio server does not need to recommend any parameters.
[0071] In combination with the fourth aspect, in some implementations of the fourth aspect, when the first condition is not met, the method further includes: the audio server receives fourth request information from the audio client, and the fourth request information includes the third parameter; and the audio server sends fourth response information to the audio client, and the fourth response information includes a configuration result of the second configuration item, the configuration result of the second configuration item is failure, and the fourth response information further includes first information, and the first information is used to indicate that the third parameter does not meet the first condition.
[0072] That is, if the third parameter provided by the audio client does not match the second parameter recommended by the audio server, the audio server can refuse to configure using the third parameter.
[0073] In a fourth aspect, in some implementations of the fourth aspect, the first condition is that the second parameter and the third parameter are the same, or a difference between the second parameter and the third parameter is less than a first threshold. That is, the parameter mismatch can be specifically understood as that the two parameters are different or the difference between the two parameters is too large.
[0074] In a fifth aspect, a communication apparatus is provided, which is configured to execute the method provided in any one of the first aspect to the third aspect. Specifically, the communication apparatus can include units and / or modules configured to execute the method provided in the first aspect or any one of the implementations of the first aspect, or the method provided in the second aspect or any one of the implementations of the second aspect.
[0075] In an implementation, the communication apparatus is a device (e.g., an audio client or an audio server). When the communication apparatus is a device, the transceiver unit can be a transceiver, or an input / output interface; and the processing unit can be at least one processor. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.
[0076] In another implementation, the communication apparatus is a chip, a chip system or a circuit used in a device (e.g., an audio client or an audio server). When the communication apparatus is a chip, a chip system or a circuit used in a device, the transceiver unit can be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or related circuit on the chip, the chip system or the circuit; and the processing unit can be at least one processor, a processing circuit or a logic circuit.
[0077] In a sixth aspect, a communication apparatus is provided, which includes a memory configured to store a program; and at least one processor configured to execute the computer program or instructions stored in the memory to execute the method provided in the first aspect or any one of the implementations of the first aspect, or to execute the method provided in the second aspect or any one of the implementations of the second aspect, or to execute the method provided in the third aspect or any one of the implementations of the third aspect.
[0078] In an implementation, the communication apparatus is a device (e.g., an audio client or an audio server).
[0079] In another implementation, the apparatus is a chip, a chip system or a circuit used in a device (e.g., an audio client or an audio server).
[0080] In a seventh aspect, a processor is provided, which is configured to execute the method provided in any one of the aspects.
[0081] For the sending and obtaining / receiving operations involved by the processor, if no special description is made, or if it does not conflict with the actual role or internal logic in the related description, it can be understood as the processor output and receive, input and other operations, or can be understood as the sending and receiving operations performed by the radio frequency circuit and the antenna, and the present application does not limit this.
[0082] In an eighth aspect, a computer-readable storage medium is provided, which stores program codes for execution by a device, and the program codes include instructions for executing the method provided in the first aspect or any of the implementation manners of the first aspect, or include instructions for executing the method provided in the second aspect or any of the implementation manners of the second aspect.
[0083] In a ninth aspect, a computer program product including instructions is provided, which, when executed on a computer, causes the computer to execute the method provided in the first aspect or any of the implementation manners of the first aspect, or causes the computer to execute the method provided in the second aspect or any of the implementation manners of the second aspect.
[0084] In a tenth aspect, a chip is provided, which includes a processor and a communication interface, and the processor reads instructions stored on a memory through the communication interface, and executes the method provided in the first aspect or any of the implementation manners of the first aspect, or executes the method provided in the second aspect or any of the implementation manners of the second aspect.
[0085] Optionally, as an implementation manner, the chip further includes a memory, and the memory stores a computer program or instructions, and the processor is configured to execute the computer program or instructions stored on the memory, and when the computer program or instructions are executed, the processor is configured to execute the method provided in the first aspect or any of the implementation manners of the first aspect, or execute the method provided in the second aspect or any of the implementation manners of the second aspect.
[0086] In an eleventh aspect, a communication system is provided, which includes at least one of the audio client and the audio server. BRIEF DESCRIPTION OF DRAWINGS
[0087] FIG. 1 is a schematic diagram of a communication system provided by an embodiment of the present application.
[0088] FIG. 2 is a schematic diagram of an architecture of a star flash system provided by an embodiment of the present application.
[0089] FIG. 3 is a schematic diagram of a communication method provided by an embodiment of the present application.
[0090] FIG. 4 is a schematic diagram of another communication method provided by an embodiment of the present application.
[0091] FIG. 5 is a schematic diagram of another communication method according to an embodiment of the present application.
[0092] FIG. 6 is a schematic diagram of another communication method according to an embodiment of the present application.
[0093] FIG. 7 is a schematic diagram of another communication method according to an embodiment of the present application.
[0094] FIG. 8 is a schematic structural block diagram of a communication apparatus according to an embodiment of the present application.
[0095] FIG. 9 is a schematic diagram of another communication apparatus according to an embodiment of the present application.
[0096] FIG. 10 is a schematic diagram of a chip system according to an embodiment of the present application. DETAILED DESCRIPTION
[0097] First, in the present application, "for indicating" can include for directly indicating and for indirectly indicating. When describing that certain indication information is for indicating A, it can include that the indication information directly indicates A or indirectly indicates A, and does not mean that A must be carried in the indication information.
[0098] The information indicated by the indication information is referred to as to-be-indicated information, and there are many ways to indicate the to-be-indicated information in the specific implementation process, for example but not limited to, the to-be-indicated information can be directly indicated, such as the to-be-indicated information itself or an index of the to-be-indicated information. The to-be-indicated information can also be indirectly indicated by indicating other information, where the other information and the to-be-indicated information have an association relationship. The to-be-indicated information can also be only indicated in part, and the other part of the to-be-indicated information is known or agreed in advance. For example, the indication of a specific information can also be achieved by means of the arrangement order of each information agreed in advance (for example, a protocol stipulates), thereby reducing the indication overhead to a certain extent. At the same time, the common part of each information can be identified and uniformly indicated, so as to reduce the indication overhead caused by separately indicating the same information.
[0099] Second, "at least one" in the present application means one or more, and "multiple" means two or more. In addition, in the embodiments of the present application, "first", "second", and various numbers (for example, "#1", "#2", and the like) are only for the convenience of description and do not limit the scope of the embodiments of the present application. The size of the serial number of each process below does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. It should be understood that the objects thus described can be interchanged under appropriate circumstances, so as to be able to describe solutions other than the embodiments of the present application. In addition, in the embodiments of the present application, "S310" and the like are only for the convenience of description and are not limited to the order of execution steps.
[0100] Third, in the embodiments of the present application, "exemplary" or "for example" and the like are used to represent an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the use of "exemplary" or "for example" and the like is intended to present the relevant concept in a specific manner.
[0101] Fourth, in the embodiments of the present application, "protocol" can refer to a standard protocol in the communication field, which can include NR protocol and related protocols applied in future communication systems, which is not limited in the present application.
[0102] Fifth, in the embodiments of the present application, "of", "corresponding", "corresponding" and "associated" can be used interchangeably at times. It should be pointed out that when the distinction is not emphasized, the meanings expressed are consistent.
[0103] Sixth, in the embodiments of the present application, "in the case of", "when", "if" can be used interchangeably at times. It should be pointed out that when the distinction is not emphasized, the meanings expressed are consistent.
[0104] Seventh, the term "and / or" in the present application is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. In addition, the character " / " in the present application generally represents an "or" relationship between the associated objects before and after it.
[0105] Eighth, in the drawings of the embodiments of the present application related to message structures, some examples of the names of the fields in the messages are given. It should be understood that the names of the fields shown in the drawings of the embodiments of the present application are only examples, and in actual applications, the names of any of the fields can be changed.
[0106] The technical solutions in the present application will be described below with reference to the drawings.
[0107] The technical solutions provided by the embodiments of the present application can be applied to a wireless local area network (WLAN) scenario, for example, support institute of electrical and electronics engineers (IEEE) 802.11 related standards, for example, 802.11a / b / g standards, 802.11n standards, 802.11ac standards, 802.11ax standards, 802.11be standards (Wi-Fi 7), also known as extremely high throughput (EHT), 802.11bn standards (Wi-Fi 8) or Wi-Fi 8 next generation standards, etc., also including 802.11ad, 802.11ay standards, etc., can also be applied to a wireless personal area network system based on ultra wide band (UWB), such as 802.15 series standards, can also be applied to a sensing system, such as 802.11bf series standards, and the present application can also support spark link, nearlink and other standard protocols. Among them, the 802.11n standard is called a high throughput (HT) standard, the 802.11ac standard is called a very high throughput (VHT) standard, the 802.11ax standard is called a high efficient (HE) standard, and the 802.11be standard is called an extremely high throughput (EHT) standard. Among them, 802.11bf includes two large categories of standards, low frequency (for example, sub7GHz) and high frequency (for example, 60GHz). The implementation of sub7GHz mainly relies on 802.11ac, 802.11ax, 802.11be and next generation standards, and the implementation of 60GHz mainly relies on 802.11ad, 802.11ay and next generation standards. Among them, 802.11ad can also be called a directional multi-gigabit (DMG) standard, and 802.11ay can also be called an enhanced directional multi-gigabit (EDMG) standard.
[0108] Although the embodiments of the present application are mainly described by taking the deployment of WLAN network, especially the network applying IEEE 802.11 system standard as an example, it is easy for those skilled in the art to understand that various aspects involved in the embodiments of the present application can be extended to other networks applying various standards or protocols, for example, high performance radio local area network (HIPERLAN), wireless wide area network (WWAN), wireless personal area network (WPAN) or other now known or later developed networks. Therefore, various aspects provided by the embodiments of the present application can be applied to any suitable wireless network regardless of the coverage range and wireless access protocol used.
[0109] The above communication system applying the present application is only illustrative, and the communication system applying the present application is not limited thereto. Herein, the following will not be described in detail.
[0110] Firstly, the communication system and network architecture applying the embodiments of the present application will be introduced in combination with FIG. 1 and FIG. 2.
[0111] FIG. 1 is a schematic diagram of a communication system provided by the embodiments of the present application. As shown in FIG. 1, the system includes an audio client and an audio server.
[0112] As shown in (a) of FIG. 1, the audio client is a user of the audio service, and is used to access the audio server. The audio server is a bearer of the audio service, and is used to provide the audio service. The audio client can generate an audio stream and / or send the audio stream to the audio server. The audio server can receive the audio stream and / or use (for example, play) the audio stream.
[0113] The audio service can specifically refer to an application service for playing audio, such as a music application, an audiobook application, an e-book application, a telephone application, etc., which is determined according to actual conditions. The audio client can be a terminal device, which can also be referred to as a user equipment (UE) or a terminal. The terminal device can be a mobile phone, a tablet computer (Pad), a computer with communication function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The audio server can be a mobile phone, a wearable electronic device, a personal computer, a television, a vehicle-mounted device, a headset, a sound box, etc.
[0114] The audio client and the audio server can communicate using wireless or wired methods, such as an internet of things (IoT) system, a narrow band internet of things (NB-IoT) system, a long term evolution (LTE) system, a short-range wireless communication network system, such as a SparkLink communication network system (including a SparkLink basic (SLB), a SparkLink low energy (SLE), and a SparkLink positioning (SLP)), a Bluetooth low energy (BLE), a 5th-generation (5G) communication system, and a new communication system in future communication development, etc. The SLB of SparkLink can also be referred to as “Technical Requirements and Test Methods for Wireless Short-Range Communication Vehicle Air Interface”, and the SLE of SparkLink can also be referred to as “Technical Requirements and Test Methods for SparkLink Wireless Communication System Access Layer Low-Power Air Interface”.
[0115] Fig. 1(b) shows a schematic diagram of an interaction flow between an audio client and an audio server. The flow can include service discovery, capability interaction, audio stream configuration or reconfiguration, audio stream data channel opening or closing, audio stream transmission or stop, and audio stream release.
[0116] Service discovery: The main purpose of the service discovery operation is to let the audio client discover the audio server and determine the audio services that the audio server can provide. In the service discovery process, the audio client can obtain the device information of the audio server.
[0117] Capability interaction: The audio client can further interact with the server to learn the audio processing capabilities (e.g., audio codec capabilities, etc.) in the audio server.
[0118] Audio stream configuration or reconfiguration: The audio client can configure the audio stream parameters within the given capabilities of the audio server. For example, assuming that the audio server can support multiple encoders, the audio client can select one of the multiple encoders as the encoder for the audio stream transmitted between the audio client and the audio server. Alternatively, the audio stream parameters between the audio client and the audio server can be reconfigured to determine more reasonable audio stream parameters.
[0119] Audio stream data channel opening or closing: After the audio stream configuration, the audio client and the audio server can establish a data channel for transmitting the audio stream. In addition, after the transmission of the audio stream is completed, the audio client and the audio server can close the audio stream data channel.
[0120] Audio stream transmission or stop: The audio client can transmit the audio stream to the audio server through the data channel. After the audio client completes the transmission of the audio stream to the audio server, the transmission of the audio stream can be stopped. Alternatively, the connection between the audio client and the audio server can be suddenly interrupted, resulting in the stop of the transmission of the audio stream.
[0121] Audio stream release: After the above-mentioned audio stream transmission is completed or stopped, the audio client and the audio server can release the resources (e.g., including the link resources of the access layer, etc.) occupied by the audio stream and clear the configured related parameters.
[0122] In addition, the "audio client" in this application can be replaced by "client", "terminal device", "audio source device", "first node", "management node", "master node", etc. The "audio server" can also be replaced by "server", "playback device", "audio sink device", "second node", "managed node", "slave node", etc.
[0123] In some implementations, the audio client and / or the audio server described above can be implemented by a sparklink system. In this case, the audio client can also be referred to as a G-node (a management node), and the audio server can also be referred to as a T-node (a managed node).
[0124] FIG. 2 is a schematic diagram of an architecture of a sparklink system according to an embodiment of the present application. As shown in FIG. 2, the sparklink system can include a basic application layer, a basic service layer, and a sparklink access layer (which can also be referred to as an access layer).
[0125] As shown in FIG. 2, the basic application layer defines various units common to different application programs, each of which defines a respective message format and application rule. In order to implement communication of different devices under different platforms, the basic application layer can be provided with a basic communication unit, a general perception unit, a general video unit, a general audio unit, a general data unit, a vehicle-mounted control unit, and the like. Among them, the general audio unit is used to process data related to audio services, such as audio data encoding and decoding.
[0126] The basic service layer can include a control plane and a data plane. The control plane includes a device discovery module, a service management module, a channel management module, a quality of service (QoS) management module, a security management module, a multi-domain coordination module, a measurement management module, a 5G fusion module, and the like. The data plane includes channel control data, broadcast data, service management data, real-time data, and reliable data, and further includes a transmission control adaptation protocol, a transmission control protocol / internet protocol (TCP / IP) transparent transmission protocol, and the like.
[0127] The data link layer is used to support services, such as ensuring transmission of signaling and corresponding signals for audio services. As shown in FIG. 2, the sparklink system can include a sparklink basic (SLB) access layer and a sparklink low-energy (SLE) access layer. The SLB access layer and the SLE access layer correspond to SLB communication links and SLE communication links, respectively. The SLB communication links are used for high-bandwidth, high-rate communication, and the SLE communication links are used for low-power, small-bandwidth, low-rate communication. The SLB access layer and the SLE access layer both introduce a data link layer, which includes a link control layer and a medium access layer. In addition, the SLB access layer and the SLE access layer can also be respectively provided with a physical layer, which is used to provide physical connection for the data link layer. The SLE technology is generally used to process services with small-bandwidth transmission requirements, such as audio playback services based on Bluetooth earphones, and the data throughput is generally low during transmission, and the transmission rate and power consumption are also low.
[0128] The following describes the related terms of the audio stream configuration involved in the present application.
[0129] In the above audio stream configuration or reconfiguration process, the audio client can send one or more audio stream configuration item parameters to the audio server, and the audio stream server can configure the audio stream according to the parameters after receiving the one or more audio stream configuration item parameters. The audio stream configuration item can specifically include codec parameters, data channel requirements, audio stream types, audio stream duration, port numbers, and other mandatory configuration items. The following exemplary shows an explanation of the above audio stream configuration item.
[0130] Codec parameters: codec type and corresponding parameters, which are defined by various audio codec standards. For example, high bit rate parameters of high-fidelity codecs, low bit rate parameters of ordinary codecs, etc.
[0131] Data channel requirements: communication mode, transparent transmission mode, and QoS parameters of audio stream data. The communication mode can specifically refer to unicast, data multicast, etc. The data channel requirement can also indicate the data transparent transmission mode. The transparent transmission mode can be no transmission, SLE transparent transmission, and SLB transparent transmission. For example, the transparent transmission mode is SLE transparent transmission, and the audio stream data is transmitted according to the path of the basic application layer-access layer (such as SLE access layer). The transparent transmission mode is no transmission, and the audio stream data is transmitted according to the path of the basic application layer-basic service layer-access layer (such as SLE access layer). The remaining transparent transmission modes are not exemplified here.
[0132] Audio stream type: including media music, voice call, ringtone, etc. In addition, the audio stream type can also implicitly indicate that the audio stream is real-time or non-real-time, such as voice call as real-time audio stream and media music as non-real-time audio stream.
[0133] Audio stream duration: the length of the audio, expressed in time units.
[0134] Port number: indicating the source port number and / or destination port number of the audio stream.
[0135] In the audio stream configuration process, two signaling, audio stream configuration request and audio stream configuration response, are involved. The audio stream client sends an audio stream configuration request to the audio stream server, which can carry one or more configuration item parameters. The one or more configuration item parameters are used to request the audio stream server to configure one or more configuration items of the audio stream. After receiving the audio stream configuration request, the audio stream server can configure according to the one or more configuration item parameters, and feed back an audio stream configuration response to the audio stream client. The audio stream configuration response carries the configuration result of one or more configuration items. According to the actual situation, the result of the corresponding configuration item can be success or failure. Specifically, when the result of a configuration item is failure, the audio stream configuration response can include the result code corresponding to the configuration item. Additional information can give the recommended parameters of the audio stream server for the configuration item, which are used by the audio client to determine the reconfiguration parameters of the configuration item. The audio stream specifically refers to the audio stream to be transmitted between the audio stream client and the audio stream server. In addition, the audio stream client can request the audio stream server to configure multiple audio streams at the same time, that is, one audio stream configuration request can carry the parameters corresponding to one or more audio streams, which are determined according to the actual situation.
[0136] Table 1 shows a format description of an audio stream configuration request. The above-mentioned audio stream configuration request can be carried in the parameter field of the star flash service access protocol method call request protocol data unit (SSAP_CALL_METHOD_REQ PDU). The parameter field can include an operation code, the value of which is 0x01, to indicate that the signaling is an audio stream configuration request. In addition, the star flash service access protocol call method request protocol data unit can also include the following fields: message code, message control code and handle.
[0137] Table 1
[0138] Table 2 shows a description of a parameter field. As shown in Table 2, the parameter field can be used to indicate the configuration item parameters corresponding to one or more audio streams. Among them, the audio stream corresponds to the audio access point of the parameter field. For example, the audio client needs to request the audio server to configure two audio streams, and the number of audio access points is 2. The two audio access points can be represented as x and y using the audio access point identifier. When multiple configuration item parameters are carried in an audio stream configuration request, the type field can be used to indicate the specific corresponding type of the parameter. For example, the following description appears below: the first parameter carried in the audio stream configuration request is used to configure the "audio stream type" configuration item of the audio stream. It can be understood that the parameter field includes a first type field and a first parameter. The first type field is used to indicate that the type of the corresponding configuration item of the first parameter is "audio stream type", and the first parameter is used to indicate the specific configuration parameter of the "audio stream type" configuration item. If the same configuration item of two audio streams needs to be configured at the same time, different fields need to be used to represent it. For example, an audio stream configuration request can include the following parameters corresponding to audio access point x: first codec parameter, first data channel requirement…; and the following parameters corresponding to audio stream access point y: second codec parameter, second data channel requirement…
[0139] Table 2
[0140] Table 3 shows a format description of an audio stream configuration response. The above-mentioned audio stream configuration response can be carried in the parameter field of the star flash service access protocol method call response protocol data unit (SSAP_CALL_METHOD_RSP PDU). The result field can include an operation code, and the value of the operation code is 0x01, to indicate that the signaling is an audio stream configuration response. In addition, the star flash service access protocol call method protocol data response unit can also include the following fields: message code and message control code.
[0141] Table 3
[0142] Table 4 shows a description of a result field. In some implementations, if the result code indicates that the result of the execution is successful, that is, the configuration result of the configuration item of the audio stream corresponding to the audio stream server side is successful, the audio stream client can also carry the recommended parameter of another associated configuration item in the additional information field. The recommended parameter is used for the audio stream server to obtain the parameter of the other configuration item carried in the next audio stream configuration request. Specifically, when the result of a configuration item is failed, the audio stream configuration response can include the result code corresponding to the configuration item. The additional information can give the recommended parameter of the audio server for the configuration item, which is used to determine the reconfiguration parameter of the configuration item by the audio client.
[0143] Table 4
[0144] For convenience of description, in the following embodiments, the "audio stream configuration request" is referred to as "request information", and the "audio stream configuration response" is referred to as "response information".
[0145] Currently, when the audio client uses the request information to request the audio server to configure the configuration item of the audio stream, the audio server can reply the recommended parameter of another associated configuration item according to the configuration parameter of the configuration item in the reply response information. However, this process occupies the operation and signaling overhead of the audio server, and the audio client exists the case of not necessarily referring to the recommended parameter given by the audio server.
[0146] In view of this, the embodiments of the present application provide a communication method and a communication device. The audio client adjusts the audio stream configuration request to be sent according to different situations, so that the audio server can reply or not reply the recommended parameter correspondingly when replying the audio stream configuration response.
[0147] FIG. 3 is a schematic diagram of a communication method provided by an embodiment of the present application. As shown in FIG. 3, the method includes steps S310-S320.
[0148] S310, the audio client sends first request information to the audio server, the first request information including a first parameter, the first parameter being used to request the audio server to configure a first configuration item of an audio stream; correspondingly, the audio server receives the first request information from the audio client.
[0149] S320, the audio client receives first response information from the audio server, the first response information including a configuration result of the first configuration item, the configuration result of the first configuration item being success; correspondingly, the audio server sends the first response information to the audio client.
[0150] Wherein, when the first condition is met, the first response information does not include a second parameter. When the first condition is not met, the first response information further includes the second parameter. The second parameter is used for the audio client to obtain a third parameter, the third parameter being used to request the audio server to configure a second configuration item of the audio stream. The first configuration item and the second configuration item are associated. Wherein, the second parameter can also be understood as a "recommended parameter" of the second configuration item, and the second parameter is used for the audio client to refer to, so as to obtain the third parameter. The "first configuration item and the second configuration item are associated" can also be understood as "the first configuration item and the second configuration item have a first associated relationship".
[0151] In the method, the audio client configures the sending of the request information according to whether the audio server needs to reply the second parameter (a recommended parameter of the second configuration item), so that the audio server can carry or not carry the second parameter in the response information in combination with the sending of the request information. Thus, the audio client can dominate the audio stream configuration process, so that the audio server can recommend the associated configuration item only when necessary, avoid compatibility problems, and save the computation amount and signaling overhead of the audio server.
[0152] In some implementations, when the first condition is not met, the method can further include steps S330 and S340.
[0153] S330, the audio client sends fourth request information to the audio server according to the second parameter, the fourth request information including the third parameter; correspondingly, the audio server accepts the fourth request information from the audio client.
[0154] S340, the audio client receives fourth response information from the audio server, the fourth response information including a configuration result of the second configuration item, the configuration result of the second configuration item being failure, and the fourth response information further including first information, the first information being used to indicate that the third parameter does not meet the first condition; correspondingly, the audio server sends the fourth response information to the audio client.
[0155] According to steps S330 and S340, if the third parameter provided by the audio client does not match the second parameter recommended by the audio server, the audio server can refuse to configure by using the third parameter.
[0156] In some implementations, the first condition is that the second parameter and the third parameter are the same, or the difference between the second parameter and the third parameter is less than a first threshold. That is, the parameter mismatch can be specifically understood as that the two parameters are different or the difference between the two parameters is too large.
[0157] In the method shown in FIG. 3, whether the first condition is met can be determined by the association relationship between the configuration items provided by the embodiments of the present application. Next, the association relationship provided by the present application is described in two ways, way A and way B, in combination with specific configuration items: audio stream type, audio stream duration, codec parameter, data channel requirement, and port number.
[0158] Way A
[0159] The first correlation relationship: if a configuration item A and another configuration item B have the first correlation relationship, it can be understood that if the audio server obtains a parameter a according to the request information sent by the audio client, the parameter a is used to request the audio server to configure the configuration item A of the audio stream, then the audio server can determine a parameter b according to the parameter a and in combination with the capability, air interface resource and other information of the audio server. At this time, the audio server can carry the parameter b in the response information replied to the audio client, and the parameter b is used as a recommended parameter of the configuration item B, and is used for the audio client to obtain a parameter b'. The parameter b' is the actual parameter of the audio client requesting the audio server to configure the configuration item B of the audio stream.
[0160] In addition, in some cases, although the audio server can determine the parameter b of the configuration item B by using the parameter a corresponding to the configuration item A, the audio server cannot determine the parameter a by using the parameter b. That is, the determination process of the parameter a->parameter b can have irreversibility.
[0161] Table 5 shows a description of the first correlation relationship between configuration items.
[0162] Table 5
[0163] The second correlation relationship: if a configuration item C and another configuration item D have the second correlation relationship, it can be understood that if the parameter c corresponding to the configuration item C is determined, the parameter d corresponding to the other configuration item D can also be determined. For example, if the audio client determines a parameter c, the parameter c is used to request the audio server to configure the configuration item C of the audio stream, then the audio client can also determine a parameter d according to the parameter c, and the parameter d is used to request the audio server to configure the configuration item D of the audio stream. For another example, if the audio server obtains a parameter c according to the request information sent by the audio client, the parameter c is used to request the audio server to configure the configuration item C of the audio stream, then the audio server can also determine a parameter d according to the parameter c, and directly configure the configuration item D of the audio stream according to the parameter d. At this time, whether the audio client still sends the parameter d by using the request information is determined according to the actual situation.
[0164] In addition, in some cases, although the audio client or the audio server can determine the parameter d of the configuration item D by using the parameter c corresponding to the configuration item C, the audio client or the audio server cannot determine the parameter c by using the parameter d. That is, the determination process of the parameter c->parameter d can have irreversibility.
[0165] Table 6 shows a description of the second correlation relationship between configuration items.
[0166] Table 6
[0167] Mode B
[0168] In mode B, configuration items are divided in the form of sets according to the association relationship between configuration items. Table 7 shows a division mode of configuration items.
[0169] Table 7
[0170] In the first row of Table 7, the first set and the second set in the first case are shown, and in the second row of Table 7, the first set and the second set in the second case are shown. In any case, the configuration items in the first set and the configuration items in the second set have a first association relationship. That is, in the first division mode, the audio stream type and the codec parameter have a first association relationship, and the audio stream duration and the codec parameter also have a first association relationship. In the second division mode, the codec parameter and the data channel requirement have a first association relationship. The first association relationship involved in Table 7 is similar to the first association relationship described in Table 5, which will not be repeated here.
[0171] In some implementations, when the first set includes multiple configuration items, any two configuration items in the first set have a second association relationship. The second association relationship involved in Table 7 is similar to the second association relationship described in Table 6, which will not be repeated here.
[0172] In some implementations, when the second set includes multiple configuration items, any two configuration items in the second set have a second association relationship. The second association relationship involved in Table 7 is similar to the second association relationship described in Table 6, which will not be repeated here.
[0173] If the audio client performs parameter recommendation of specific configuration items according to the association relationship provided in the embodiments of the present application, the audio server can first obtain the characteristic information (the first parameter) of the audio stream, select the optimal second parameter in combination with the self-capability, the currently available air interface resource and other information, so that the play of the audio stream after configuration is successful reaches the optimal effect.
[0174] Next, the association relationship provided in the embodiments of the present application is applied to the method shown in FIG. 3 in detail in combination with FIG. 4.
[0175] FIG. 4 is a schematic diagram of another communication method provided in the embodiments of the present application.
[0176] As shown in (a) of FIG. 4, whether the first case described in FIG. 3 is satisfied can be determined according to steps S410-S440.
[0177] S411, before the audio client sends the first request information to the audio server, the audio client sends second request information to the audio server, the second request information comprising a fourth parameter, the fourth parameter being used to request the audio server to configure a third configuration item of the audio stream; correspondingly, the audio server receives the second request information from the audio client.
[0178] S421, the audio client receives second response information from the audio server, the second response information comprising a configuration result of the third configuration item, the configuration result of the third configuration item being success; correspondingly, the audio server sends the second response information to the audio client.
[0179] S431, the audio client sends first request information to the audio server, the first request information comprising a first parameter, the first parameter being used to request the audio server to configure a first configuration item of the audio stream; correspondingly, the audio server receives the first request information from the audio client.
[0180] S441, the audio client receives first response information from the audio server, the first response information comprising a configuration result of the first configuration item, the configuration result of the first configuration item being success; correspondingly, the audio server sends the first response information to the audio client.
[0181] In the case of (a) in FIG. 4, steps S431 and S441 correspond to steps S310 and S320 in FIG. 3 respectively. Steps S411 and S421 occur before steps S431 and S441.
[0182] Corresponding to the association relationship described in the above-mentioned mode A, the first case is specifically that the first configuration item and the third configuration item have a first association relationship. That is, the configuration item (the third configuration item) having the same association relationship with the first configuration item has been configured at the audio server, and then the audio server does not have to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommendation parameter of the associated configuration item according to the specific configurations of the first request information and the second request information, so that the audio client can dominate the audio stream configuration process.
[0183] The second configuration item and the third configuration item can be the same configuration item or different configuration items, which is determined according to actual conditions. When the second configuration item and the third configuration item are the same configuration item, the case can also be specifically understood as follows: when the audio server obtains the first parameter (the parameter for requesting to configure the first configuration item) and needs to recommend the second parameter (the recommendable parameter of the second configuration item) to the audio client according to the first parameter, it is found that the second configuration item has been configured through the second request information sent before the first request information, and at this time, it is unnecessary to recommend the second parameter. In some implementation manners, when the second configuration item and the third configuration item are different configuration items, the second configuration item and the third configuration item can have a second association relationship. That is, at the audio server, after the audio server obtains the fourth parameter (the parameter for requesting to configure the third configuration item), the audio server can directly determine the parameter for configuring the second configuration item according to the fourth parameter. In this case, the audio server also does not need to recommend the second parameter.
[0184] Corresponding to the association relationship described in the above manner B, the first case specifically refers to that the third configuration item belongs to the second set. That is, the configuration item (the third configuration item) belonging to the same set as the second configuration item has been configured at the audio server, and then the audio server does not need to recommend the second configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommendable parameter of the associated configuration item according to the specific configurations of the first request information and the second request information, so that the audio client can dominate the audio stream configuration process.
[0185] The second configuration item and the third configuration item can be the same configuration item or different configuration items, which is determined according to actual conditions. When the second configuration item and the third configuration item are the same configuration item, the case can also be specifically understood as follows: when the audio server obtains the first parameter (the parameter for requesting to configure the first configuration item) and needs to recommend the second parameter (the recommendable parameter of the second configuration item) to the audio client according to the first parameter, it is found that the second configuration item has been configured through the second request information sent before the first request information, and at this time, it is unnecessary to recommend the second parameter. When the second configuration item and the third configuration item are different configuration items, in some implementation manners, any two configuration items in the second set can have a second association relationship. That is, at the audio server, after the audio server obtains the fourth parameter (the parameter for requesting to configure the third configuration item), the audio server can directly determine the parameter for configuring the second configuration item according to the fourth parameter. In this case, the audio server also does not need to recommend the second parameter.
[0186] The following exemplarily lists three specific cases of the first configuration item, the second configuration item and the third configuration item involved in (a) of FIG. 4.
[0187] (1) the first configuration item is audio stream type, the second configuration item is codec parameter, and the third configuration item is codec parameter;
[0188] (2) the first configuration item is audio stream duration, the second configuration item is codec parameter, and the third configuration item is codec parameter;
[0189] (3) the first configuration item is codec parameter, the second configuration item is data channel requirement, and the third configuration item is data channel requirement.
[0190] In addition, the method shown in (a) of FIG. 4 can also be understood as follows: if the third configuration item and the first configuration item are arranged in the configuration item arrangement order in the first order, the audio server continues to reply the second parameter. If the third configuration item and the first configuration item are not arranged in the configuration item arrangement order in the first order, the audio server does not reply the second parameter.
[0191] For example, the first order can specifically refer to:
[0192] audio stream type -> codec parameter; or
[0193] audio stream duration -> codec parameter; or
[0194] codec parameter -> data channel requirement.
[0195] In addition, the present application exemplarily lists three possible cases of audio client sending request information and audio server replying response information. For convenience of description, the "parameter for requesting the audio server to configure the configuration item of the audio stream" in the request information is referred to as "request parameter", and the "parameter for the audio client to obtain the associated configuration item" in the response information is referred to as "recommended parameter".
[0196] The first case is as follows:
[0197] The audio stream client sends a first request information, which includes the request parameter of audio stream type. In some cases, the first request information can also include the request parameter of audio stream duration. In addition, in the case that the request parameter of audio stream duration can be determined from the request parameter of audio stream type, the request parameter of audio stream duration can be omitted directly;
[0198] The audio stream server replies a first response information, which includes the recommended parameter of codec parameter;
[0199] The audio stream client sends a second request information, which includes the request parameter of codec parameter;
[0200] The audio stream server replies a second response information, the second response information including recommended parameters of data channel requirements;
[0201] The audio stream client sends a third request information, the third request information including requested parameters of data channel requirements;
[0202] The audio stream server replies a third response information, the third response information not including recommended parameters;
[0203] The audio stream server determines the requested parameters of port number according to the requested parameters of data channel requirements, or the audio stream client sends a fourth request information, the fourth request information including the requested parameters of port number.
[0204] The second case:
[0205] The audio stream client sends a first request information, the first request information including requested parameters of codec parameters.
[0206] The audio stream server replies a first response information, the first response information including recommended parameters of data channel requirements;
[0207] The audio stream client sends a second request information, the second request information including requested parameters of data channel requirements;
[0208] The audio stream server replies a second response information, the second response information not including recommended parameters;
[0209] The audio stream client sends a third request information, the third request information including requested parameters of audio stream type. In some cases, the first request information can also include requested parameters of audio stream duration. In addition, in the case that the requested parameters of audio stream duration can be determined from the requested parameters of audio stream type, the requested parameters of audio stream duration can be omitted directly. In addition, the third request information can also include requested parameters of port number, and in addition, the audio stream server can also determine the requested parameters of port number according to the requested parameters of data channel requirements;
[0210] The audio stream server replies a third response information, the third response information not including recommended parameters.
[0211] The third case
[0212] The audio stream client sends a first request information, the first request information including requested parameters of data channel requirements.
[0213] The audio stream server replies a first response information, the first response information not including recommended parameters;
[0214] The audio stream client sends second request information, which includes request parameters of the codec;
[0215] The audio stream server returns second response information, which does not include recommended parameters;
[0216] The audio stream client sends third request information, which includes request parameters of the audio stream type. In some cases, the first request information can also include request parameters of the audio stream duration. In addition, in the case where the audio stream duration can be determined from the request parameters of the audio stream type, the request parameters of the audio stream duration can be omitted directly. In addition, the third request information can also include request parameters of the port number, and in addition, the audio stream server can also determine the request parameters of the port number according to the request parameters required by the data channel;
[0217] The audio stream server returns third response information, which does not include recommended parameters.
[0218] As shown in (b) of FIG. 4, whether the first case described in FIG. 3 is satisfied can also be determined according to steps S410-S420.
[0219] S412, the audio client sends first request information to the audio server, the first request information includes first parameters, the first parameters are used to request the audio server to configure the first configuration item of the audio stream, wherein the first request information further includes at least one fifth parameter, the at least one fifth parameter is used to request the audio server to configure at least one fourth configuration item of the audio stream; correspondingly, the audio server receives the first request information from the audio client.
[0220] S422, the audio client receives the first response information from the audio server, the first response information includes the configuration result of the first configuration item and the at least one fourth configuration item, and the configuration result of the first configuration item and the at least one fourth configuration item can be successful; correspondingly, the audio server sends the first response information to the audio client.
[0221] Corresponding to the association relationship described in the above-mentioned mode A, the first case is specifically that the first configuration item and the at least one fourth configuration item have a first association relationship. That is, the configuration item (at least one fourth configuration item) having the first association relationship with the first configuration item has been carried in the first request information, so the audio server does not have to recommend the configuration item (second configuration item) having the first association relationship with the first configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommended parameters of the associated configuration item according to the specific configuration of the multiple parameters in the first request information, so that the audio client can dominate the audio stream configuration process.
[0222] The fourth configuration item in the second configuration item and the at least one fourth configuration item can be the same configuration item or different configuration items, which is determined according to actual conditions. When the second configuration item and the at least one fourth configuration item are repeated, the case can also be specifically understood as that the audio server finds that the second configuration item has been configured through the first request information, and at this time, it is unnecessary to recommend the second parameter. In some implementation manners, when the second configuration item and the at least one fourth configuration item are not repeated, the second configuration item and the at least one fourth configuration item can have a second association relationship. That is, after the audio server obtains the at least one fifth parameter (a parameter used to request to configure the at least one fourth configuration item), the audio server can directly determine the parameter used to configure the second configuration item according to a fifth parameter in the at least one fifth parameter. In this case, the audio server also does not need to recommend the second parameter.
[0223] Corresponding to the association relationship described in the above manner B, the first case is specifically that the at least one fourth configuration item belongs to the second set. That is, the configuration item (the third configuration item) that belongs to the same set as the second configuration item is carried in the first request information, and then the audio server does not need to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommended parameter of the associated configuration item according to the specific configuration of the plurality of parameters in the first request information, so that the audio client can dominate the audio stream configuration process.
[0224] Corresponding to the association relationship described in the above manner B, the first case is specifically that the at least one fourth configuration item belongs to the second set. That is, the configuration item (the third configuration item) that belongs to the same set as the second configuration item is carried in the first request information, and then the audio server does not need to recommend the configuration item (the second configuration item) having the first association relationship with the first configuration item. Therefore, the audio client can implicitly indicate whether the audio server sends the recommended parameter of the associated configuration item according to the specific configuration of the plurality of parameters in the first request information, so that the audio client can dominate the audio stream configuration process.
[0225] The following exemplary gives three specific cases of the first configuration item, the second configuration item and the at least one fourth configuration item involved in (b) of FIG. 4.
[0226] (1) The first configuration item is an audio stream type, the second configuration item is a codec parameter, and the at least one fourth configuration item includes a codec parameter;
[0227] (2) the first configuration item is an audio stream duration, the second configuration item is a codec parameter, and the at least one fourth configuration item includes the codec parameter;
[0228] (3) the first configuration item is a codec parameter, the second configuration item is a data channel requirement, and the at least one fourth configuration item includes the data channel requirement.
[0229] In addition, the embodiments of the present application also provide the communication methods shown in FIGS. 5-7, further using the association relationship provided by the embodiments of the present application to make the audio client dominate the configuration process of the audio stream.
[0230] FIG. 5 is a schematic diagram of another communication method provided by an embodiment of the present application. As shown in FIG. 5, the method includes steps S510-S540.
[0231] S510, the audio client sends first request information to the audio server, the first request information includes a first parameter, the first parameter is used to request the audio server to configure a first configuration item of an audio stream, wherein when a first condition is met, the first response information does not include a second parameter. When the first condition is not met, the first response information further includes the second parameter. The second parameter is used for the audio client to obtain a third parameter, and the third parameter is used to request the audio server to configure a second configuration item of the audio stream; correspondingly, the audio server receives the first request information from the audio client.
[0232] S520, the audio client receives the first response information from the audio server, the first response information includes a configuration result of the first configuration item, and the configuration result of the first configuration item can be successful; correspondingly, the audio server sends the first response information to the audio client.
[0233] S530, the audio client sends third request information to the audio server, the third request information includes a sixth parameter, the sixth parameter is used to request the audio server to configure a fifth configuration item of the audio stream; correspondingly, the audio server receives the third request information from the audio client.
[0234] S540, the audio client receives third response information from the audio server, the third response information includes a configuration result of the fifth configuration item, and the configuration result of the fifth configuration item can be successful, the third response information includes a seventh parameter, the seventh parameter is used for the audio client to obtain an eighth parameter, and the eighth parameter is used to request the audio server to configure the second configuration item of the audio stream; correspondingly, the audio server sends the third response information to the audio client.
[0235] The specific conditions of steps S510 and S520 are similar to those of steps S310 and S320 described in FIG. 3, and will not be described here again. It should be understood that the above-mentioned four steps are only an exemplary arrangement for convenience of description, and should not be regarded as a specific limitation on the order of occurrence of the above-mentioned four steps.
[0236] Corresponding to the association relationship described in the above-mentioned mode A, the fifth configuration item has a first association relationship with the second configuration item, and the fifth configuration item is different from the first configuration item. That is, the audio server receives two request information, and the two request information respectively carries two parameters for requesting configuration of different configuration items. If the two configuration items both have a first association relationship with the second configuration item, the audio server can reply to the first request information with the first parameter recommended by the second configuration item (that is, the second parameter), and reply to the second request information with the second parameter recommended by the second configuration item (that is, the seventh parameter).
[0237] Corresponding to the association relationship described in the above-mentioned mode B, the fifth configuration item belongs to the first set. That is, the audio server receives two request information, and the two request information respectively carries two parameters for requesting configuration of different configuration items. If the two configuration items both belong to the first set, according to the division rule of the set, the two configuration items both have a first association relationship with the second configuration item, the audio server can reply to the first request information with the first parameter recommended by the second configuration item, and reply to the second request information with the second parameter recommended by the second configuration item.
[0238] It can be understood that in mode A and mode B, the second parameter is determined by the audio server according to the first parameter, and the seventh parameter is determined by the audio server according to the sixth parameter. The second parameter and the seventh parameter can be the same or different. Thus, the audio server can refer to the parameters provided by the audio client for different configuration items, recommend parameters for the same configuration item according to different dimensions, and facilitate the audio client to refer.
[0239] The following exemplary describes a specific case of the first configuration item, the second configuration item and the fifth configuration item involved in FIG. 5: the first configuration item is the audio stream type, the second configuration item is the codec parameter, and the fifth configuration item is the audio stream duration.
[0240] FIG. 6 is a schematic diagram of another communication method provided by an embodiment of the present application. As shown in FIG. 6, the method comprises steps S610-S620.
[0241] S610, the audio client sends first request information to the audio server, the first request information comprising a first parameter, the first parameter being used to request the audio server to configure a first configuration item of the audio stream, wherein the first request information further comprises at least one ninth parameter, the at least one ninth parameter being used to request the audio server to configure at least one sixth configuration item of the audio stream; correspondingly, the audio server receives the first request information from the audio client.
[0242] S620, the audio client receives first response information from the audio server, the first response information comprising configuration results of the first configuration item and the at least one sixth configuration item, the configuration results of the first configuration item and the at least one sixth configuration item being successful; correspondingly, the audio server sends the first response information to the audio client.
[0243] Corresponding to the association relationship described in the above manner A, wherein the at least one sixth configuration item has a first association relationship with the second configuration item. The second parameter is determined according to the first parameter and the at least one ninth parameter. That is, the audio client can send request parameters of multiple configuration items that have a first association relationship with the second configuration item by using one request information, so that the audio server can provide parameters in combination with different configuration items to give more comprehensive recommended parameters.
[0244] Corresponding to the association relationship described in the above manner B, wherein the at least one sixth configuration item belongs to the first set. In some implementation manners, any two configuration items in the first set can have a second association relationship. That is, the audio client can send request parameters of multiple configuration items that have a first association relationship with the second configuration item by using one request information, so that the audio server can provide parameters in combination with different configuration items to give more comprehensive recommended parameters.
[0245] In addition, the audio client can also not send the at least one ninth parameter, but directly determine the at least one ninth parameter according to the first parameter by the audio server, which is not limited in the present application.
[0246] The following exemplary gives two specific cases of the first configuration item and the at least one sixth configuration item involved in FIG. 6:
[0247] (1) The at least one sixth configuration item comprises an audio stream type and / or an audio stream duration, and the second configuration item is a codec parameter;
[0248] (2) The at least one sixth configuration item comprises a codec parameter, and the second configuration item comprises a data channel requirement.
[0249] FIG. 7 is a schematic diagram of another communication method provided by an embodiment of the present application. As shown in FIG. 7, the method comprises steps S710-S720.
[0250] S710, the audio client sends first request information to the audio server, the first request information includes a first parameter, the first parameter is used to request the audio server to configure a first configuration item of the audio stream, wherein the first request information further includes at least one tenth parameter, the at least one tenth parameter is used to request the audio server to configure at least one seventh configuration item of the audio stream; correspondingly, the audio server receives the first request information from the audio client.
[0251] S720, the audio client receives first response information from the audio server, the first response information includes configuration results of all configuration items, the configuration results of all configuration items can be successful, and the first response information does not include parameters used to request the audio server to configure configuration items of the audio stream; correspondingly, the audio server sends the first response information to the audio client.
[0252] In some implementations, the first configuration item and the at least one seventh configuration item are all configuration items that the audio stream server needs to configure for the audio stream. That is, the audio client has sent corresponding parameters of all configuration items that need to be configured to the audio server, at this time, the audio server does not need to recommend any parameters.
[0253] In some implementations, corresponding to the association relationship described in the above manner A, the at least one seventh configuration item and the at least one eighth configuration item have a second association relationship, the first configuration item, the at least one seventh configuration item and the at least one eighth configuration item are all configuration items that the audio stream server needs to configure for the audio stream. That is, the audio server can directly determine corresponding parameters of all configuration items according to parameters carried in the first request information, at this time, the audio server does not need to recommend any parameters.
[0254] In some implementations, corresponding to the association relationship described in the above manner B, the at least one seventh configuration item corresponds to at least one third set, and the first set and the at least one third set are all sets that the audio stream server needs to configure for the audio stream. In some implementations, among the first set and the at least one third set, any two configuration items in a same set can have a second association relationship. That is, after the audio server obtains parameters corresponding to all sets that need to be configured according to the first request information, the audio server can directly determine corresponding parameters of all configuration items according to parameters carried in the first request information, at this time, the audio server does not need to recommend any parameters.
[0255] The following exemplary gives two specific cases of the first configuration item and the at least one seventh configuration item involved in FIG. 7:
[0256] (1) The first configuration item and the at least one seventh configuration item include: an audio stream type, an audio duration, a codec parameter, a data channel requirement, and a port number.
[0257] (2) The first configuration item and the at least one seventh configuration item include: an audio stream type, a codec parameter, and a data channel requirement. In this case, the at least one seventh configuration item and the at least one eighth configuration item have a second association relationship. The at least one eighth configuration item includes: an audio stream duration and a port number.
[0258] It should be understood that the methods described in FIGS. 3-7 can be combined with each other, and the embodiments obtained after the combination should still be within the protection scope of the present application.
[0259] It should be understood that the above "first parameter" … "fifth parameter" … and "first configuration item" … "third configuration item" are only numbered for convenience of description. According to actual conditions, different parameters can refer to the same parameter, and different configuration items can refer to the same configuration item.
[0260] In addition, according to actual conditions, the "configuration item" in the present application can also be replaced by "element".
[0261] The above, in combination with FIGS. 3-7, details the communication method provided by the embodiments of the present application. The following details the communication device provided by the present application in combination with FIGS. 8-10. It should be understood that the description of the device embodiments corresponds to the description of the method embodiments. Therefore, the content not described in detail can refer to the above method embodiments, and part of the content will not be described again for the sake of brevity.
[0262] FIG. 8 is a schematic structural block diagram of a communication device provided by an embodiment of the present application. The communication device 800 can include a transceiver module 810 and a processing module 820.
[0263] The communication device 800 shown in FIG. 8 can be a first communication device, which can be an audio client or a component (such as a chip or circuit) in the audio client. Alternatively, the communication device 800 shown in FIG. 8 can be a second communication device, which can be an audio server or a component (such as a chip or circuit) in the audio server in the above embodiments.
[0264] Next, the device shown in FIG. 8 will be described in combination with the specific communication device being the above two devices.
[0265] The first communication device
[0266] In an embodiment, the transceiver 810 is configured to send first request information to the audio server, the first request information comprising a first parameter, the first parameter being used to request the audio server to configure a first configuration item of the audio stream. The processing module 820 is configured to generate the first request information.
[0267] The transceiver 810 is further configured to receive first response information from the audio server. The processing module 820 is configured to parse the first response information, the first response information comprising a configuration result of the first configuration item. Wherein, when the first condition is met, the first response information does not comprise a second parameter; when the first condition is not met, the first response information further comprises the second parameter.
[0268] In another embodiment, before the transceiver 810 receives the first request information from the audio client, the transceiver 810 is further configured to send second request information to the audio server. And the transceiver 810 is further configured to receive second response information from the audio server, the second response information comprising a configuration result of a third configuration item.
[0269] In another embodiment, the transceiver 810 can be further configured to send third request information to the audio server, the third request information comprising a sixth parameter. And the transceiver 810 can be further configured to receive third response information from the audio server, the third response information comprising a seventh parameter.
[0270] In another embodiment, the transceiver 810 can be further configured to send fourth request information to the audio server according to the second parameter. And the transceiver 810 is further configured to receive fourth response information from the audio server.
[0271] Second communication device
[0272] The transceiver 810 is configured to receive first request information from the audio client, the first request information comprising a first parameter. The processing module 820 is configured to parse the first request information.
[0273] The transceiver 810 is further configured to send first response information to the audio client, the first response information comprising a configuration result of the first configuration item. The processing module 820 is further configured to generate the first response information. The first response information comprises the configuration result of the first configuration item. Wherein, when the first condition is met, the first response information does not comprise a second parameter; when the first condition is not met, the first response information further comprises the second parameter.
[0274] In another embodiment, before the transceiver 810 receives the first request information from the audio client, the transceiver 810 is further configured to receive second request information from the audio client. And the transceiver 810 is further configured to send second response information to the audio client, the second response information comprising a configuration result of a third configuration item.
[0275] In another embodiment, the transceiver 810 is further configured to receive third request information from the audio server, the third request information comprising a sixth parameter. The transceiver 810 is further configured to send third response information to the audio client, the third response information comprising a seventh parameter.
[0276] In another embodiment, the transceiver 810 is further configured to receive fourth request information from the audio client. The transceiver 810 is further configured to send fourth response information to the audio client.
[0277] In the above embodiments, the specific details of the request information and the response information are described in conjunction with FIGS. 3-7, and are not described herein again.
[0278] FIG. 9 is a schematic diagram of another communication apparatus according to an embodiment of the present application. As shown in FIG. 9, the communication apparatus 900 includes a processor 901 configured to execute computer programs or instructions stored in a memory 902, or read data / signaling stored in the memory 902, to perform the methods in the above method embodiments. Optionally, the processor 901 is one or more processors.
[0279] Optionally, as shown in FIG. 9, the communication apparatus 900 further includes the memory 902 configured to store computer programs or instructions and / or data. The memory 902 can be integrated with the processor 901, or can be separately arranged. Optionally, the memory 902 is one or more memories.
[0280] Optionally, as shown in FIG. 9, the communication apparatus 900 further includes a transceiver 903 configured to receive and / or send signals. For example, the processor 901 is configured to control the transceiver 903 to receive and / or send signals.
[0281] The communication apparatus 900 is configured to implement the operations performed by the audio client or the audio server in the above method embodiments.
[0282] It should be understood that the processor mentioned in the embodiments of the present application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor.
[0283] It should also be appreciated that the memory as referred to in the embodiments described herein can be volatile memory and / or non-volatile memory. Among others, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically EPROM (EEPROM), or flash memory. The volatile memory can be random access memory (RAM). For example, the RAM can be used as external cache memory. By way of example, and not limitation, RAM comprises a variety of forms including static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0284] It should be noted that when the processor is a general processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated in the processor.
[0285] It should also be noted that the memory described herein is intended to include, but not be limited to, these and any other suitable type of memory.
[0286] FIG. 10 is a schematic diagram of a chip system according to an embodiment of the present application. The chip system 1000 (or also referred to as a processing system) includes a logic circuit 1001 and an input / output interface 1002.
[0287] The logic circuit 1001 can be a processing circuit in the chip system 1000. The logic circuit 1001 can be coupled to a storage unit, and invoke instructions in the storage unit, so that the chip system 1000 can implement the methods and functions of the embodiments of the present application. The input / output interface 1002 can be an input / output circuit in the chip system 1000, and output information processed by the chip system 1000, or input data or signaling information to be processed by the chip system 1000.
[0288] As an option, the chip system 1000 is configured to implement the operations performed by the audio client or the audio server in the above method embodiments.
[0289] For example, the logic circuit 1001 is configured to implement the operations processed by the audio client or the audio server in the above method embodiments; and the input / output interface 1002 is configured to implement the sending and / or receiving operations performed by the audio client or the audio server in the above method embodiments.
[0290] The embodiments of the present application also provide a computer readable storage medium, which stores computer instructions for implementing the method performed by the audio client or the audio server in the above method embodiments.
[0291] For example, the computer program is executed by a computer, so that the computer can implement the method performed by the audio client or the audio server in the above method embodiments.
[0292] The embodiments of the present application also provide a computer program product, which contains instructions, and the instructions are executed by a computer to implement the method performed by the audio client or the audio server in the above method embodiments.
[0293] The embodiments of the present application also provide a communication system, which includes the audio client or the audio server described above.
[0294] The explanations and beneficial effects of the related contents in any of the above provided devices can refer to the corresponding method embodiments provided above, and will not be repeated here.
[0295] In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the described apparatus embodiments are merely schematic. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0296] In the embodiments described above, all or some of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or some of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into and executed by a computer, all or some of the procedures or functions described in the embodiments of the present application are performed. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatuses. For example, the computer can be a personal computer, a server, a network device, or the like. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media sets. The available media can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD), etc.). For example, the foregoing available media includes, but is not limited to, various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
Claims
1. A communication method characterized by comprising: The method comprises: An audio client sends first request information to an audio server, the first request information comprising a first parameter, the first parameter being used to request the audio server to configure a first configuration item of an audio stream; The audio client receives first response information from the audio server, the first response information comprising a configuration result of the first configuration item; When a first condition is met, the first response information does not comprise a second parameter; When the first condition is not met, the first response information further comprises the second parameter, the second parameter being used for the audio client to obtain a third parameter, the third parameter being used to request the audio server to configure a second configuration item of the audio stream, the first configuration item and the second configuration item having a first association relationship.
2. The method of claim 1, wherein, Wherein: The first configuration item is an audio stream type or an audio stream duration, and the second configuration item is a codec parameter; or The first configuration item is a codec parameter, and the second configuration item is a data channel requirement.
3. The method of claim 1 or 2, wherein: The first condition is that the first configuration item and a third configuration item have the first association relationship; The third configuration item is a configuration item requested by a fourth parameter for the audio server to configure the audio stream, the fourth parameter being included in second request information, the method further comprising: Before the audio client sends the first request information to the audio server, the audio client sends the second request information to the audio server; and the audio client receives second response information from the audio server, the second response information comprising a configuration result of the third configuration item.
4. The method according to claim 1 or 2, characterized in that, Wherein: The first condition is that the first configuration item and at least one fourth configuration item have the first association relationship; The at least one fourth configuration item is a configuration item requested by at least one fifth parameter for the audio server to configure the audio stream, the at least one fifth parameter being included in the first request information.
5. The method according to any one of claims 1 to 4, characterized in that, Further comprising: The audio client sends third request information to the audio server, the third request information comprising a sixth parameter, the sixth parameter being used to request the audio server to configure a fifth configuration item of the audio stream, wherein the fifth configuration item and the second configuration item have the first association relationship, and the fifth configuration item is different from the first configuration item; The audio client receives third response information from the audio server, the third response information comprising a seventh parameter, the seventh parameter being used for the audio client to obtain an eighth parameter, the eighth parameter being used to request the audio server to configure the second configuration item of the audio stream.
6. The method according to any one of claims 1 to 5, characterized in that, Wherein: The first request information further comprises at least one ninth parameter, the at least one ninth parameter being used to request the audio server to configure at least one sixth configuration item of the audio stream, the at least one sixth configuration item and the second configuration item having the first association relationship; The second parameter is determined according to the first parameter and the at least one ninth parameter.
7. The method according to any one of claims 1 to 6, characterized in that, Wherein: The first request information further includes at least one tenth parameter, and the at least one tenth parameter is used to request the audio server to configure at least one seventh configuration item of the audio stream, wherein the first configuration item and the at least one seventh configuration item are all configuration items required by the audio stream server to configure the audio stream, or the at least one seventh configuration item has a second association relationship with at least one eighth configuration item, and the first configuration item, the at least one seventh configuration item and the at least one eighth configuration item are all configuration items required by the audio stream server to configure the audio stream. The first response information does not include a parameter used to request the audio server to configure a configuration item of the audio stream.
8. The method of claim 7, wherein, Wherein: The at least one seventh configuration item includes an audio stream type, and the at least one eighth configuration item includes an audio stream duration; or The at least one seventh configuration item includes data channel requirements, and the at least one eighth configuration item includes a port number.
9. The method according to any one of claims 1 to 8, characterized in that, When the first condition is not met, the method further includes: The audio client sends fourth request information to the audio server according to the second parameter, and the fourth request information includes the third parameter; The audio client receives fourth response information from the audio server, the fourth response information includes a configuration result of the second configuration item, the configuration result of the second configuration item is failure, and the fourth response information further includes first information, the first information is used to indicate that the third parameter does not meet a first condition.
10. The method of claim 9, wherein, The first condition is that the second parameter and the third parameter are the same, or the difference between the second parameter and the third parameter is less than a first threshold.
11. A communication method, comprising: Including: The audio server receives first request information from the audio client, the first request information includes a first parameter, and the first parameter is used to request the audio server to configure a first configuration item of an audio stream; The audio server sends first response information to the audio client, and the first response information includes a configuration result of the first configuration item; Wherein, when the first condition is met, the first response information does not include a second parameter; When the first condition is not met, the first response information further includes the second parameter, the second parameter is used by the audio client to obtain a third parameter, the third parameter is used to request the audio server to configure a second configuration item of the audio stream, and the first configuration item and the second configuration item have a first association relationship.
12. The method of claim 11, wherein, Wherein: The first configuration item is an audio stream type or an audio stream duration, and the second configuration item is a codec parameter; or The first configuration item is a codec parameter, and the second configuration item is data channel requirements.
13. The method of claim 11 or 12, wherein: The first condition is that the first configuration item and a third configuration item have the first association relationship; The third configuration item is a configuration item for a fourth parameter requesting the audio server to configure the audio stream, the fourth parameter is included in the second request information, and the method further includes: Before the audio server receives the first request information from the audio client, the audio server receives the second request information from the audio client; and the audio server sends second response information to the audio client, the second response information including a configuration result of the third configuration item.
14. The method of claim 11 or 12, wherein, Wherein: The first case is that the first configuration item and at least one fourth configuration item have the first association relationship; The at least one fourth configuration item is a configuration item for at least one fifth parameter requesting the audio server to configure the audio stream, and the at least one fifth parameter is included in the first request information.
15. The method according to any one of claims 11 to 14, characterized in that, Including: The audio server receives third request information from the audio client, the third request information including a sixth parameter, the sixth parameter being used to request the audio server to configure a fifth configuration item of the audio stream, wherein the fifth configuration item has the first association relationship with the second configuration item, and the fifth configuration item is different from the first configuration item; The audio server sends third response information to the audio client, the third response information including a seventh parameter, the seventh parameter being used for the audio client to obtain an eighth parameter, the eighth parameter being used to request the audio server to configure the second configuration item of the audio stream.
16. The method according to any one of claims 11 to 15, characterized in that, Wherein: The first request information further includes a ninth parameter, the ninth parameter being used to request the audio server to configure a sixth configuration item of the audio stream, wherein the first request information further includes at least one ninth parameter, the at least one ninth parameter being used to request the audio server to configure at least one sixth configuration item of the audio stream, the at least one sixth configuration item having the first association relationship with the second configuration item; The second parameter is determined according to the first parameter and the at least one ninth parameter.
17. The method according to any one of claims 11 to 16, characterized in that, Wherein: The first request information further includes at least one tenth parameter, the at least one tenth parameter being used to request the audio server to configure at least one seventh configuration item of the audio stream, wherein the first configuration item and the at least one seventh configuration item are all configuration items that the audio server needs to configure for the audio stream, or the at least one seventh configuration item has a second association relationship with at least one eighth configuration item, the first configuration item, the at least one seventh configuration item and the at least one eighth configuration item being all configuration items that the audio server needs to configure for the audio stream; The first response information does not include a parameter used to request the audio server to configure a configuration item of the audio stream.
18. The method of claim 17, wherein, Wherein: The at least one seventh configuration item includes an audio stream type, and the at least one eighth configuration item includes an audio stream duration; or The at least one seventh configuration item comprises a data channel requirement, and the at least one eighth configuration item comprises a port number.
19. The method according to any one of claims 11 to 18, characterized in that, When the first condition is not met, the method further comprises: The audio server receives fourth request information from the audio client, and the fourth request information comprises the third parameter. The audio server sends fourth response information to the audio client, the fourth response information comprises a configuration result of the second configuration item, the configuration result of the second configuration item is failure, and the fourth response information further comprises first information, the first information is used to indicate that the third parameter does not meet a first condition.
20. The method of claim 19, wherein, The first condition is that the second parameter and the third parameter are the same, or the difference between the second parameter and the third parameter is less than a first threshold.
21. A communications device, characterized by Comprise: A module or unit for performing the method of any one of claims 1-10, or a module or unit for performing the method of any one of claims 11-20.
22. A communications device, characterized by An apparatus comprising a memory for storing a computer program, and one or more processors for executing the computer program in the memory to cause the apparatus to perform the method of any one of claims 1-10, or to cause the apparatus to perform the method of any one of claims 11-20.
23. A computer program product, characterised in that, The computer program product comprises instructions for performing the method of any one of claims 1-20.
24. A computer-readable storage medium, comprising: Comprise: The computer readable storage medium stores a computer program, and the computer program, when running on a computer, causes the computer to perform the method of any one of claims 1-20.
25. A chip, characterized by The chip is installed in a communication device, the chip comprises a processor and a communication interface, and the processor reads instructions through the communication interface and runs, so that the communication device performs the method of any one of claims 1-20.
Citation Information
Patent Citations
Starting method and terminal for audio equipment
CN105049476A
Backward compatibility for audio systems and methods
CN114503529A
Data transmission method and device, electronic equipment and storage medium
CN117768669A
Systems and methods for negotiation of structured configuration parameters for stateful server / client systems
US20180288165A1
Sharing Of Custom Audio Processing Parameters
US20190324710A1