CN105188157A - Audio playing method and audio terminal - Google Patents

Audio playing method and audio terminal Download PDF

Info

Publication number
CN105188157A
CN105188157A CN201510634363.5A CN201510634363A CN105188157A CN 105188157 A CN105188157 A CN 105188157A CN 201510634363 A CN201510634363 A CN 201510634363A CN 105188157 A CN105188157 A CN 105188157A
Authority
CN
China
Prior art keywords
frequency terminal
voice frequency
fidirect
voice
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510634363.5A
Other languages
Chinese (zh)
Inventor
冷先保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Tongli Electronics Huizhou Co Ltd
Original Assignee
TCL Tongli Electronics Huizhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Tongli Electronics Huizhou Co Ltd filed Critical TCL Tongli Electronics Huizhou Co Ltd
Priority to CN201510634363.5A priority Critical patent/CN105188157A/en
Publication of CN105188157A publication Critical patent/CN105188157A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses an audio playing method. The audio playing method comprises the following steps: starting a Wi-Fi Direct mode by an audio terminal when detecting a playing instruction; receiving, by the audio terminal, connection requests sent by other audio terminals working under the Wi-Fi Direct mode; establishing Wi-Fi Direct connection with other audio terminals by the audio terminal when receiving the connection requests; and sending preset audio data to other audio terminals on the basis of the Wi-Fi Direct connection by the audio terminal so that other audio terminals can play the received preset audio data. The invention also discloses the audio terminal. According to the audio playing method and the audio terminal, the wireless audio playing cost can be reduced.

Description

Audio frequency playing method and voice frequency terminal
Technical field
The present invention relates to intelligent terminal technical field, particularly relate to a kind of audio frequency playing method and voice frequency terminal.
Background technology
At present, for breaking away from the constraint of tone frequency channel wire, promote the flexibility that audio frequency is play, prior art proposes a kind of ANTENN AUDIO based on wireless router and plays scheme, concrete, after main system of audio and wireless router wired connection, by the audio data transmission extremely described wireless router needing to play, and by described wireless router, voice data is forwarded to loudspeaker by the mode of wireless transmission, finally export described voice data by the loudspeaker of far-end, in the scope of wireless transmission, user arbitrarily can arrange loudspeaker.But, plays scheme due to this audio frequency based on wireless router and have employed wireless router as transmission trunking, and wireless router price is higher, causes the cost that in prior art, ANTENN AUDIO is play higher.
Summary of the invention
Main purpose of the present invention is to provide a kind of audio frequency playing method and voice frequency terminal, is intended to the cost reducing ANTENN AUDIO broadcasting.
For achieving the above object, the invention provides a kind of audio frequency playing method, this audio frequency playing method comprises:
When detecting play instruction, voice frequency terminal starts Wi-FiDirect pattern;
Described voice frequency terminal receives the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern;
When receiving described connection request, described voice frequency terminal is set up Wi-FiDirect with other voice frequency terminal described and is connected;
Described voice frequency terminal connects transmission preset audio data to other voice frequency terminal described based on described Wi-FiDirect, plays the described preset audio data received for other voice frequency terminal described.
Preferably, while execution sends described preset audio data, following steps are performed:
Described voice frequency terminal sends the sound effect parameters of corresponding described preset audio data to other voice frequency terminal described, plays the described preset audio data received for other voice frequency terminal described based on described sound effect parameters.
Preferably, described voice frequency terminal comprises to other voice frequency terminal described based on described Wi-FiDirect connection transmission preset audio data:
Preset audio data after compression after overcompression, connect based on described Wi-FiDirect and are sent to other voice frequency terminal described by described voice frequency terminal by described preset audio data.
Preferably, described when receiving described connection request, described voice frequency terminal and other voice frequency terminal described also comprise after setting up the step that Wi-FiDirect is connected:
Described voice frequency terminal receives and plays other voice frequency terminal described and connects the voice data sent based on described Wi-FiDirect.
Preferably, described voice frequency terminal also comprises after receiving the step of the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern:
When not receiving the connection request of described other voice frequency terminal transmission in preset time period, described voice frequency terminal closes Wi-FiDirect pattern.
In addition, for achieving the above object, the present invention also provides a kind of voice frequency terminal, and described voice frequency terminal comprises:
Starting module, for when detecting play instruction, starting Wi-FiDirect pattern;
Request receiving module, for receiving the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern;
Link block, for when receiving described connection request, setting up Wi-FiDirect with other voice frequency terminal described and being connected;
Sending module, sending preset audio data to other voice frequency terminal described for connecting based on described Wi-FiDirect, playing the described preset audio data received for other voice frequency terminal described.
Preferably, described sending module also for sending the sound effect parameters of corresponding described preset audio data to other voice frequency terminal described, plays the described preset audio data received based on described sound effect parameters for other voice frequency terminal described.
Preferably, described sending module also for by described preset audio data after overcompression, the preset audio data after compression are connected based on described Wi-FiDirect and are sent to other voice frequency terminal described.
Preferably, described voice frequency terminal also comprises playing module, connects for receiving and playing other voice frequency terminal described the voice data sent based on described Wi-FiDirect.
Preferably, described voice frequency terminal also comprises closing module, during for not receiving connection request that other voice frequency terminal described sends in preset time period, closes Wi-FiDirect pattern.
The present invention sets up Wi-FiDirect with audio interface receiving end based on Wi-FiDirect agreement by audio frequency transmitting terminal and is connected, then voice data is pushed to audio interface receiving end by Wi-FiDirect connection by audio frequency transmitting terminal, the broadcasting of voice data is carried out by audio interface receiving end, compared to prior art, present invention, avoiding the use of wireless router, thus the present invention can reach the object reducing ANTENN AUDIO broadcasting cost.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of audio frequency playing method first embodiment of the present invention;
Fig. 2 is the hardware configuration schematic diagram of the voice frequency terminal realizing each embodiment of the present invention;
Fig. 3 is the schematic flow sheet of audio frequency playing method of the present invention 4th embodiment;
Fig. 4 is the high-level schematic functional block diagram of voice frequency terminal first embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of voice frequency terminal of the present invention 4th embodiment.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of audio frequency playing method, with reference to Fig. 1, in the first embodiment of audio frequency playing method of the present invention, described audio frequency playing method comprises the following steps:
Step S10, when detecting play instruction, voice frequency terminal starts Wi-FiDirect pattern;
It should be noted that, Wi-FiDirect belongs to pure software agreement, does not that is need extra hardware supports, as long as support that the equipment of 802.11g, n or ac can realize Wi-FiDirect function.As shown in Figure 2, the voice frequency terminal described in the present embodiment comprises MCU (CPU), Wi-Fi chip, DSP (codec unit), AMP (power amplifier unit) and Speaker (audio output unit).Wherein, described MCU transplants uClinux (micro-Conrol-Linux, namely the linux system in microcontroller field), ICP/IP protocol and Wi-FiDirect agreement, described MCU and Wi-Fi chip is connected by spi bus, cooperatively interacts and realizes the Wi-FiDirect function of voice frequency terminal.UClinux derives from from Linux2.0/2.4 kernel, has followed most characteristics of Linux.It is special in the MCU not having MMU (memory management unit), and has done the work of many miniaturizations for embedded system.Under the guarantee of GNU (GeneralPublicLicense, general public licence), the MCU running uClinux operating system can use nearly all LinuxAPI function.
In the present embodiment, described play instruction triggers for response user operation, such as, is triggered based on the programmable button of voice frequency terminal by user; Described MCU, when detecting play instruction, assigns enabled instruction by the spi bus between Wi-Fi chip to described Wi-Fi chip; Described Wi-Fi chip starts Wi-FiDirect pattern based on described enabled instruction.
Step S20, described voice frequency terminal receives the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern;
In the present embodiment, after startup Wi-FiDirect pattern, described Wi-Fi chip receives the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern.Wherein, other voice frequency terminal described can be one, also can be multiple.
Step S30, when receiving described connection request, described voice frequency terminal is set up Wi-FiDirect with other voice frequency terminal described and is connected;
In the present embodiment, described Wi-Fi chip, when receiving the connection request that other voice frequency terminal described sends, is set up Wi-FiDirect with other voice frequency terminal described and is connected, and connects to described MCU feedback Wi-FiDirect the information set up.In other embodiments, described Wi-Fi chip can also when receiving the connection request that other voice frequency terminal described sends, the described connection request received is forwarded to described MCU, and when receiving the information of the determination connection that described MCU feeds back, set up Wi-FiDirect with other voice frequency terminal described to be connected, and connect to described MCU feedback Wi-FiDirect the information set up.
Step S40, described voice frequency terminal connects transmission preset audio data to other voice frequency terminal described based on described Wi-FiDirect, plays the described preset audio data received for other voice frequency terminal described.
In the present embodiment, described MCU is when the Wi-FiDirect receiving described Wi-Fi chip feedback connects the information set up, preset audio data are pushed to described Wi-Fi chip by the spi bus between itself and described Wi-Fi chip, based on described Wi-FiDirect connection, described preset audio data are sent to other voice frequency terminal described by described Wi-Fi chip, play the described preset audio data received for other voice frequency terminal described.
The audio frequency playing method that the present embodiment provides, audio frequency transmitting terminal is set up Wi-FiDirect with audio interface receiving end based on Wi-FiDirect agreement and is connected, then voice data is pushed to audio interface receiving end by Wi-FiDirect connection by audio frequency transmitting terminal, the broadcasting of voice data is carried out by audio interface receiving end, compared to prior art, present invention, avoiding the use of wireless router, thus the present invention can reach the object reducing ANTENN AUDIO broadcasting cost.
Further, based on the first embodiment, propose the second embodiment of audio frequency playing method of the present invention, in the present embodiment, while execution step S40, also perform following steps:
Described voice frequency terminal sends the sound effect parameters of corresponding described preset audio data to other voice frequency terminal described, plays the described preset audio data received for other voice frequency terminal described based on described sound effect parameters.
It should be noted that, audio just refers to the effect manufactured by sound (including musical sound and effect sound), refers to the sense of reality for promoting a scene, atmosphere or drama message, and the noise be added on vocal cords or sound.Audio comprises digital audio, Environmental Audio Extension etc., wherein, digital audio is divided into again the audio patterns such as CLASSIC (classical music pattern), POP (pop music pattern), JAZZ (jazz pattern), ROCK (rock music pattern) and NOMAL (general mode); Environmental Audio Extension is divided into again the audio patterns such as hall, theatre, movie theatre, solution cavity and stadium.Environmental Audio Extension mainly by carrying out the process such as environment filtration, environment displacement, Ambient, environment transition to sound, makes auditor feel to place oneself in the midst of in varying environment seemingly.
In the present embodiment, while execution sends described preset audio data, described in described voice frequency terminal is also used to specify to described other voice frequency terminal transmission, other voice frequency terminal plays the sound effect parameters of the described preset audio data that it receives with which kind of audio.Wherein, described sound effect parameters responds user operation by described voice frequency terminal and selectes, such as, user specifies the audio pattern playing described preset audio data to be CLASSIC, then the sound effect parameters of corresponding CLASSIC pattern that sends to other voice frequency terminal described of described voice frequency terminal.
Concrete, described MCU is while pushing described preset audio data to described Wi-Fi chip, also push the sound effect parameters of corresponding described preset audio data to described Wi-Fi chip, based on described Wi-FiDirect connection, the sound effect parameters of described preset audio data and corresponding described preset audio data is sent to other voice frequency terminal described by described Wi-Fi chip, plays the described preset audio data received for other voice frequency terminal described based on described sound effect parameters.
Further, based on the first or second embodiment, propose the 3rd embodiment of audio frequency playing method of the present invention, in the present embodiment, above-mentioned steps S40 comprises:
Preset audio data after compression after overcompression, connect based on described Wi-FiDirect and are sent to other voice frequency terminal described by described voice frequency terminal by described preset audio data.
In order to reduce the delay of transfer of data, improve the quality of transfer of data, described voice frequency terminal first can carry out compression process to described preset audio data, and then based on described Wi-FiDirect connection, the described preset audio data after compression is transferred to other voice frequency terminal described.In the present embodiment, by encoding to described preset audio data, realize the compression to described preset audio data.Such as, described voice frequency terminal first can carry out coded treatment to described preset audio data, and then the described preset audio data after coding are transferred to other voice frequency terminal described, after other voice frequency terminal described receives the described preset audio data after coding, carry out accordingly decoding process just reducible go out original described preset audio data, play.
Concrete, described MCU is when the Wi-FiDirect receiving described Wi-Fi chip feedback connects the information set up, push to described Wi-Fi chip by the spi bus between itself and described Wi-Fi chip after preset audio data are carried out coded treatment, connect the preset audio data after by coding by described Wi-Fi chip based on described Wi-FiDirect and be sent to other voice frequency terminal described.Wherein, described MCU also comprises audio codec, for realizing the encoding and decoding of voice data.In other embodiments, described MCU can also realize by described DSP the encoding and decoding not supporting the voice data of form.
Further, based on the first embodiment, propose the 4th embodiment of audio frequency playing method of the present invention, with reference to Fig. 3, in the present embodiment, after above-mentioned steps S30, also comprise:
S50, described voice frequency terminal receives and plays other voice frequency terminal described and connects the voice data sent based on described Wi-FiDirect.
It should be noted that, voice frequency terminal described in the present embodiment both can as the transmitting terminal of voice data, also can as the transmitting terminal of voice data, figuratively, described voice frequency terminal both can as " main system of audio ", also can as " loudspeaker ", the present embodiment is described using described voice frequency terminal as the receiving terminal of voice data.In the present embodiment, after described Wi-FiDirect connection establishment, other voice frequency terminal described is connected based on described Wi-FiDirect the voice data sent and transfers to described MCU by spi bus by described Wi-Fi chip, the voice data of reception is pushed AMP by described MCU, by Speaker is exported after being amplified by AMP.
In other embodiments, described MCU is when receiving the voice data that described Wi-Fi chip pushes, identify that whether described voice data is through coded treatment, if after then described voice data being carried out corresponding decoding process, again described voice data is pushed AMP, exported by Speaker after being amplified by AMP.Wherein, described MCU also comprises audio codec, for realizing the encoding and decoding of voice data.In other embodiments, described MCU can also realize by described DSP the encoding and decoding not supporting the voice data of form, such as, when described MCU identifies that described voice data is through coded treatment, and during for not supporting the form of decoding, described voice data being pushed to DSP by I2S bus, to be decoded described voice data by described DSP, and decoded voice data of stating is pushed AMP, exported by Speaker after being amplified by AMP.
In other embodiments, described MCU is when receiving the described voice data that described Wi-Fi chip pushes, identify whether the sound effect parameters (connecting transmission based on described Wi-FiDirect by other voice frequency terminal described) also receiving the described voice data of correspondence that described Wi-Fi chip pushes, if, push AMP after then audio effect processing being carried out to described voice data based on described sound effect parameters, exported by Speaker after being amplified by AMP; Otherwise described MCU obtains and pushes AMP after carrying out audio effect processing based on default sound effect parameters to described voice data, by Speaker is exported after being amplified by AMP.Wherein, described default sound effect parameters by described voice frequency terminal default setting, also can respond user operation by described voice frequency terminal and arrange.Such as, described default sound effect parameters is the sound effect parameters of corresponding CLASSIC pattern, if when described voice frequency terminal only receives the voice data of described other voice frequency terminal transmission, then adopt the voice data that CLASSIC mode playback receives.
Further, based on aforementioned any embodiment, propose the 5th embodiment of audio frequency playing method of the present invention, in the present embodiment, after above-mentioned steps S20, also comprise:
When not receiving the connection request of described other voice frequency terminal transmission in preset time period, described voice frequency terminal closes Wi-FiDirect pattern.
It should be noted that, although Wi-FiDirect exists that transmission rate is high, transmission range is wide and the advantage such as compatible original equipment, along with these advantages bring the high shortcoming of power consumption simultaneously.Therefore, in the present embodiment, described Wi-Fi chip, when preset time period does not receive the connection request of described other voice frequency terminal transmission, closes Wi-FiDirect pattern.In other embodiments, when described MCU can also not receive the connection request of described Wi-Fi chip forwarding in preset time period, assign out code by the spi bus between Wi-Fi chip to described Wi-Fi chip, described Wi-Fi chip closes Wi-FiDirect pattern based on described out code.
It will be understood by those skilled in the art that, described preset time period can be arranged according to actual needs, such as, described preset time period is preferably set to 30 seconds by the present embodiment, if described voice frequency terminal is after startup Wi-FiDirect pattern, the connection request that described in not receiving in 30 seconds, other voice frequency terminal sends, then close Wi-FiDirect pattern, reach the object of power saving.
The present invention further provides a kind of voice frequency terminal, with reference to Fig. 4, in the first embodiment of voice frequency terminal of the present invention, described voice frequency terminal comprises:
Starting module 10, for when detecting play instruction, starting Wi-FiDirect pattern;
Request receiving module 20, for receiving the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern;
Link block 30, for when receiving described connection request, setting up Wi-FiDirect with other voice frequency terminal described and being connected;
Sending module 40, sending preset audio data to other voice frequency terminal described for connecting based on described Wi-FiDirect, playing the described preset audio data received for other voice frequency terminal described.
It should be noted that, Wi-FiDirect belongs to pure software agreement, does not that is need extra hardware supports, as long as support that the equipment of 802.11g, n or ac can realize Wi-FiDirect function.As shown in Figure 2, the voice frequency terminal described in the present embodiment comprises MCU (CPU), Wi-Fi chip, DSP (codec unit), AMP (power amplifier unit) and Speaker (audio output unit).Wherein, described MCU transplants uClinux (micro-Conrol-Linux, namely the linux system in microcontroller field), ICP/IP protocol and Wi-FiDirect agreement, described MCU and Wi-Fi chip is connected by spi bus, cooperatively interacts and realizes the Wi-FiDirect function of voice frequency terminal.UClinux derives from from Linux2.0/2.4 kernel, has followed most characteristics of Linux.It is special in the MCU not having MMU (memory management unit), and has done the work of many miniaturizations for embedded system.Under the guarantee of GNU (GeneralPublicLicense, general public licence), the MCU running uClinux operating system can use nearly all LinuxAPI function.
In the present embodiment, described play instruction triggers for response user operation, such as, is triggered based on the programmable button of voice frequency terminal by user; Concrete, described MCU comprises startup module 10, described Wi-Fi chip comprises request receiving module 20, link block 30 and sending module 40, and described startup module 10, when detecting play instruction, assigns enabled instruction by the spi bus between Wi-Fi chip to described Wi-Fi chip; Described Wi-Fi chip starts Wi-FiDirect pattern based on described enabled instruction.
After startup Wi-FiDirect pattern, described request receiver module 20 receives the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern.Wherein, other voice frequency terminal described can be one, also can be multiple.
When receiving the connection request that other voice frequency terminal described sends, described link block 30 is set up Wi-FiDirect with other voice frequency terminal described and is connected, and connects to described MCU feedback Wi-FiDirect the information set up.In other embodiments, described request receiver module 20 can also when receiving the connection request that other voice frequency terminal described sends, the described connection request received is forwarded to described MCU, and when receiving the information of the determination connection that described MCU feeds back, set up Wi-FiDirect by described link block 30 with other voice frequency terminal described to be connected, and connect to described MCU feedback Wi-FiDirect the information set up.
When the Wi-FiDirect receiving described link block 30 feedback connects the information set up, preset audio data are pushed to described sending module 40 by the spi bus between itself and described Wi-Fi chip by described MCU, based on described Wi-FiDirect connection, described preset audio data are sent to other voice frequency terminal described by described sending module 40, play the described preset audio data received for other voice frequency terminal described.
The voice frequency terminal that the present embodiment provides, set up Wi-FiDirect with audio interface receiving end based on Wi-FiDirect agreement by audio frequency transmitting terminal to be connected, then voice data is pushed to audio interface receiving end by Wi-FiDirect connection by audio frequency transmitting terminal, the broadcasting of voice data is carried out by audio interface receiving end, compared to prior art, present invention, avoiding the use of wireless router, thus the present invention can reach the object reducing ANTENN AUDIO broadcasting cost.
Further, based on the first embodiment, second embodiment of voice frequency terminal of the present invention is proposed, in the present embodiment, described sending module 40 also for sending the sound effect parameters of corresponding described preset audio data to other voice frequency terminal described, plays the described preset audio data received based on described sound effect parameters for other voice frequency terminal described.
It should be noted that, audio just refers to the effect manufactured by sound (including musical sound and effect sound), refers to the sense of reality for promoting a scene, atmosphere or drama message, and the noise be added on vocal cords or sound.Audio comprises digital audio, Environmental Audio Extension etc., wherein, digital audio is divided into again the audio patterns such as CLASSIC (classical music pattern), POP (pop music pattern), JAZZ (jazz pattern), ROCK (rock music pattern) and NOMAL (general mode); Environmental Audio Extension is divided into again the audio patterns such as hall, theatre, movie theatre, solution cavity and stadium.Environmental Audio Extension mainly by carrying out the process such as environment filtration, environment displacement, Ambient, environment transition to sound, makes auditor feel to place oneself in the midst of in varying environment seemingly.
In the present embodiment, described sending module 40 is while execution sends described preset audio data, and described in being also used to specify to described other voice frequency terminal transmission, other voice frequency terminal plays the sound effect parameters of the described preset audio data that it receives with which kind of audio.Wherein, described sound effect parameters responds user operation by described voice frequency terminal and selectes, such as, user specifies the audio pattern playing described preset audio data to be CLASSIC, then the sound effect parameters of corresponding CLASSIC pattern that sends to other voice frequency terminal described of described voice frequency terminal.
Concrete, described MCU is while pushing described preset audio data to described sending module 40, also push the sound effect parameters of corresponding described preset audio data to described sending module 40, based on described Wi-FiDirect connection, the sound effect parameters of described preset audio data and corresponding described preset audio data is sent to other voice frequency terminal described by described sending module 40, plays the described preset audio data received for other voice frequency terminal described based on described sound effect parameters.
Further, based on the first or second embodiment, 3rd embodiment of voice frequency terminal of the present invention is proposed, in the present embodiment, described sending module 40 also for by described preset audio data after overcompression, the preset audio data after compression are connected based on described Wi-FiDirect and are sent to other voice frequency terminal described.
In order to reduce the delay of transfer of data, improve the quality of transfer of data, described sending module 40 first can carry out compression process to described preset audio data, and then based on described Wi-FiDirect connection, the described preset audio data after compression is transferred to other voice frequency terminal described.In the present embodiment, by encoding to described preset audio data, realize the compression to described preset audio data.Such as, first can carry out coded treatment to described preset audio data, and then the described preset audio data after coding are transferred to other voice frequency terminal described, after other voice frequency terminal described receives the described preset audio data after coding, carry out accordingly decoding process just reducible go out original described preset audio data, play.
Concrete, described link block, when feeding back Wi-FiDirect to described MCU and connecting the information set up, is also fed back Wi-FiDirect to described sending module 40 and is connected the information set up; Described sending module 40 is when receiving described Wi-FiDirect and connecting the information set up, compression request is sent to described MCU, institute MCU responds after preset audio data are carried out coded treatment by described compression request and pushes to described sending module 40 by the spi bus between itself and described Wi-Fi chip, connects the preset audio data after by coding be sent to other voice frequency terminal described by described sending module 40 based on described Wi-FiDirect.Wherein, described MCU also comprises audio codec, for realizing the encoding and decoding of voice data.In other embodiments, described MCU can also realize by described DSP the encoding and decoding not supporting the voice data of form.
Further, based on the first embodiment, the 4th embodiment of voice frequency terminal of the present invention is proposed, with reference to Fig. 5, in the present embodiment, described voice frequency terminal also comprises playing module 50, connects for receiving and playing other voice frequency terminal described the voice data sent based on described Wi-FiDirect.
It should be noted that, voice frequency terminal described in the present embodiment both can as the transmitting terminal of voice data, also can as the transmitting terminal of voice data, figuratively, described voice frequency terminal both can as " main system of audio ", also can as " loudspeaker ", the present embodiment is described using described voice frequency terminal as the receiving terminal of voice data.In the present embodiment, described MCU also comprises playing module 50, described Wi-Fi chip also comprises data reception module, described data reception module is after described Wi-FiDirect connection establishment, other voice frequency terminal described is connected based on described Wi-FiDirect the voice data sent and transfers to described playing module 50 by spi bus, the voice data of reception is pushed AMP by described playing module 50, by Speaker is exported after being amplified by AMP.
In other embodiments, described playing module 50 is when receiving the voice data that described data reception module pushes, identify that whether described voice data is through coded treatment, if after then described voice data being carried out corresponding decoding process, again described voice data is pushed AMP, exported by Speaker after being amplified by AMP.Wherein, described MCU also comprises audio codec, for realizing the encoding and decoding of voice data.In other embodiments, described playing module 50 can also realize by described DSP the encoding and decoding not supporting the voice data of form, such as, when described playing module 50 identifies that described voice data is through coded treatment, and for audio codec do not support the form of decoding time, described voice data is pushed to DSP by I2S bus, to be decoded described voice data by described DSP, and decoded described voice data is pushed AMP, exported by Speaker after being amplified by AMP.
In other embodiments, described playing module 50 is when receiving the described voice data that described data reception module pushes, identify whether the sound effect parameters (connecting transmission based on described Wi-FiDirect by other voice frequency terminal described) also receiving the described voice data of correspondence that described data reception module pushes, if, push AMP after then audio effect processing being carried out to described voice data based on described sound effect parameters, exported by Speaker after being amplified by AMP; Otherwise described playing module 50 obtains and pushes AMP after carrying out audio effect processing based on default sound effect parameters to described voice data, by Speaker is exported after being amplified by AMP.Wherein, described default sound effect parameters by described voice frequency terminal default setting, also can respond user operation by described voice frequency terminal and arrange.Such as, described default sound effect parameters is the sound effect parameters of corresponding CLASSIC pattern, if when described voice frequency terminal only receives the voice data of described other voice frequency terminal transmission, then adopt the voice data that CLASSIC mode playback receives.
Further, based on aforementioned any embodiment, the 5th embodiment of voice frequency terminal of the present invention is proposed, in the present embodiment, described voice frequency terminal also comprises closing module, during for not receiving connection request that other voice frequency terminal described sends in preset time period, closes Wi-FiDirect pattern.
It should be noted that, although Wi-FiDirect exists that transmission rate is high, transmission range is wide and the advantage such as compatible original equipment, along with these advantages bring the high shortcoming of power consumption simultaneously.Therefore, in the present embodiment, described MCU also comprises closing module, for do not receive in preset time period described request receiver module 20 forward connection request time, assign out code by the spi bus between Wi-Fi chip to described Wi-Fi chip, described Wi-Fi chip closes Wi-FiDirect pattern based on described out code.In other embodiments, when described request receiver module 20 can also not receive the connection request of described other voice frequency terminal transmission in preset time period, the Wi-FiDirect pattern of described Wi-Fi chip is closed.
It will be understood by those skilled in the art that, described preset time period can be arranged according to actual needs, such as, described preset time period is preferably set to 30 seconds by the present embodiment, if described voice frequency terminal is after startup Wi-FiDirect pattern, the connection request that described in not receiving in 30 seconds, other voice frequency terminal sends, then close Wi-FiDirect pattern, reach the object of power saving.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. an audio frequency playing method, is characterized in that, described audio frequency playing method comprises:
When detecting play instruction, voice frequency terminal starts Wi-FiDirect pattern;
Described voice frequency terminal receives the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern;
When receiving described connection request, described voice frequency terminal is set up Wi-FiDirect with other voice frequency terminal described and is connected;
Described voice frequency terminal connects transmission preset audio data to other voice frequency terminal described based on described Wi-FiDirect, plays the described preset audio data received for other voice frequency terminal described.
2. audio frequency playing method as claimed in claim 1, is characterized in that, while execution sends described preset audio data, perform following steps:
Described voice frequency terminal sends the sound effect parameters of corresponding described preset audio data to other voice frequency terminal described, plays the described preset audio data received for other voice frequency terminal described based on described sound effect parameters.
3. audio frequency playing method as claimed in claim 1, is characterized in that, described voice frequency terminal connects transmission preset audio data based on described Wi-FiDirect and comprises to other voice frequency terminal described:
Preset audio data after compression after overcompression, connect based on described Wi-FiDirect and are sent to other voice frequency terminal described by described voice frequency terminal by described preset audio data.
4. audio frequency playing method as claimed in claim 1, is characterized in that, described when receiving described connection request, and described voice frequency terminal and other voice frequency terminal described also comprise after setting up the step that Wi-FiDirect is connected:
Described voice frequency terminal receives and plays other voice frequency terminal described and connects the voice data sent based on described Wi-FiDirect.
5. the audio frequency playing method as described in any one of claim 1-4, is characterized in that, described voice frequency terminal also comprises after receiving the step of the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern:
When not receiving the connection request of described other voice frequency terminal transmission in preset time period, described voice frequency terminal closes Wi-FiDirect pattern.
6. a voice frequency terminal, is characterized in that, described voice frequency terminal comprises:
Starting module, for when detecting play instruction, starting Wi-FiDirect pattern;
Request receiving module, for receiving the connection request of other voice frequency terminal transmission working in Wi-FiDirect pattern;
Link block, for when receiving described connection request, setting up Wi-FiDirect with other voice frequency terminal described and being connected;
Sending module, sending preset audio data to other voice frequency terminal described for connecting based on described Wi-FiDirect, playing the described preset audio data received for other voice frequency terminal described.
7. voice frequency terminal as claimed in claim 6, it is characterized in that, described sending module also for sending the sound effect parameters of corresponding described preset audio data to other voice frequency terminal described, plays the described preset audio data received based on described sound effect parameters for other voice frequency terminal described.
8. voice frequency terminal as claimed in claim 6, is characterized in that, described sending module also for by described preset audio data after overcompression, the preset audio data after compression are connected based on described Wi-FiDirect and are sent to other voice frequency terminal described.
9. voice frequency terminal as claimed in claim 6, it is characterized in that, described voice frequency terminal also comprises playing module, connects for receiving and playing other voice frequency terminal described the voice data sent based on described Wi-FiDirect.
10. the voice frequency terminal as described in any one of claim 6-9, is characterized in that, described voice frequency terminal also comprises closing module, during for not receiving connection request that other voice frequency terminal described sends in preset time period, closes Wi-FiDirect pattern.
CN201510634363.5A 2015-09-28 2015-09-28 Audio playing method and audio terminal Pending CN105188157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510634363.5A CN105188157A (en) 2015-09-28 2015-09-28 Audio playing method and audio terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510634363.5A CN105188157A (en) 2015-09-28 2015-09-28 Audio playing method and audio terminal

Publications (1)

Publication Number Publication Date
CN105188157A true CN105188157A (en) 2015-12-23

Family

ID=54909933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510634363.5A Pending CN105188157A (en) 2015-09-28 2015-09-28 Audio playing method and audio terminal

Country Status (1)

Country Link
CN (1) CN105188157A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507160A (en) * 2016-10-28 2017-03-15 惠州Tcl移动通信有限公司 A kind of based on the multimedia application control method for playing back of remote Bluetooth devices, system
CN109150400A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and computer-readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118499A (en) * 2010-12-31 2011-07-06 深圳市同洲软件有限公司 Method, device and system for controlling video play of display terminal by mobile terminal
CN103594100A (en) * 2012-08-13 2014-02-19 上海博泰悦臻电子设备制造有限公司 Method and apparatus for playing music in mobile terminal through bluetooth

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118499A (en) * 2010-12-31 2011-07-06 深圳市同洲软件有限公司 Method, device and system for controlling video play of display terminal by mobile terminal
CN103594100A (en) * 2012-08-13 2014-02-19 上海博泰悦臻电子设备制造有限公司 Method and apparatus for playing music in mobile terminal through bluetooth

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507160A (en) * 2016-10-28 2017-03-15 惠州Tcl移动通信有限公司 A kind of based on the multimedia application control method for playing back of remote Bluetooth devices, system
CN109150400A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and computer-readable medium
CN109150400B (en) * 2018-08-14 2021-08-17 Oppo广东移动通信有限公司 Data transmission method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
US20200100027A1 (en) Maintaining grouping information for audio speaker devices
TWI345389B (en) Method generating advanced audio distribution profile (a2dp) source code and chipset using the same
CN107222372B (en) Information sending method and equipment
KR102569374B1 (en) How to operate a Bluetooth device
CN102932567B (en) Terminal and audio processing method
CN1805324A (en) Method and system for controlling accessing device of individual lan
CN108718361B (en) Audio file playing method and wireless answering device
KR101614552B1 (en) Method of objet transmission between devices with multiple wireless interface
US20140294202A1 (en) Method and device for communications and for broadcasting sounds
CN104834623A (en) Audio playing method and audio playing device
TWI819344B (en) Audio signal rendering method, apparatus, device and computer readable storage medium
WO2022151778A1 (en) Audio data transmission method, electronic device and storage medium
CN104363496A (en) Method for achieving multiple scenario application of audio system in network set top box
WO2024016758A1 (en) Audio data transmission method and apparatus, chip, electronic device, and storage medium
WO2023071813A1 (en) Data transmission method and device, and storage medium and terminal device
CN105188157A (en) Audio playing method and audio terminal
CN104732993A (en) Wireless router music player
CN104954078A (en) Sound wave communication based control and response method and sound wave communication based control and response device
US20140163971A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
JP2007324849A (en) Information processing apparatus
WO2012079492A1 (en) Method and device for decoding video call data
CN104066033A (en) Bluetooth sound box system and using method thereof
CN104427381A (en) Play method and device
US20070201431A1 (en) Wireless communication device and method for processing voice over internet protocol signals thereof
CN202258375U (en) Double-chip audio/ video player and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223