CN108848262A - A kind of wearable device mode conversion method and Related product - Google Patents

A kind of wearable device mode conversion method and Related product Download PDF

Info

Publication number
CN108848262A
CN108848262A CN201810606177.4A CN201810606177A CN108848262A CN 108848262 A CN108848262 A CN 108848262A CN 201810606177 A CN201810606177 A CN 201810606177A CN 108848262 A CN108848262 A CN 108848262A
Authority
CN
China
Prior art keywords
beep pattern
time
audio
audio playback
wearable device
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.)
Granted
Application number
CN201810606177.4A
Other languages
Chinese (zh)
Other versions
CN108848262B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810606177.4A priority Critical patent/CN108848262B/en
Publication of CN108848262A publication Critical patent/CN108848262A/en
Application granted granted Critical
Publication of CN108848262B publication Critical patent/CN108848262B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/385Transceivers carried on the body, e.g. in helmets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Abstract

The embodiment of the present application discloses the mode switching method and Related product of a kind of wearable device, and the method is applied to the wearable device, including:Processing component, the first audio playback component, the second audio playback component and wireless transceiver;The first audio playback component is worked by the first beep pattern, and the second audio playback component is worked by the second beep pattern;Described method includes following steps:It keeps being wirelessly connected with electronic equipment, audio file is received by the wireless connection;It controls the first audio playback component and the audio file is played using the first beep pattern, obtain the first time that first beep pattern plays, if the first time is more than time threshold, the second audio playback component is controlled using second beep pattern and plays the audio file.Technical solution provided by the present application has the advantages that user experience is high.

Description

A kind of wearable device mode conversion method and Related product
Technical field
This application involves Mobile terminal accessory technical fields, and in particular to a kind of wearable device mode conversion method and phase Close product.
Background technique
As universal and application, the user of smart phone more and more rely on smart phone, wearable device, example Such as, wireless headset, smartwatch, Intelligent bracelet etc. equipment are widely used also with the rise of smart phone.It is right In wearable device, here by taking wireless headset as an example, wireless headset has the advantages that connect convenience with smart phone, for nothing Line earphone, when in use between it is too long when, can not translative mode, so for a long time using wireless headset influence healthy ears, shadow The Experience Degree of user is rung.
Summary of the invention
The embodiment of the present application provides a kind of wearable device mode conversion method and wearable device, when to foundation Between execution pattern conversion, improve user experience.
In a first aspect, the embodiment of the present application provides a kind of wearable device, the wearable device includes:Processing unit Part, the first audio playback component, the second audio playback component and wireless transceiver;Wherein, the processing component and described first Audio playback component, the second audio playback component and the wireless transceiver are separately connected, and first audio plays Component is worked by the first beep pattern, and the second audio playback component is worked by the second beep pattern;
The wireless transceiver receives audio text by the wireless connection for keeping being wirelessly connected with electronic equipment Part;
The processing component plays the audio using the first beep pattern for controlling the first audio playback component File obtains the first time that first beep pattern plays, and such as first time is more than time threshold, controls described the Two audio playback components play the audio file using second beep pattern.
Second aspect, provides a kind of mode switching method of wearable device, and the method is applied to described wearable Formula equipment, including:Processing component, the first audio playback component, the second audio playback component and wireless transceiver;First sound Frequency playback component is worked by the first beep pattern, and the second audio playback component is worked by the second beep pattern;It is described Method includes the following steps:
It keeps being wirelessly connected with electronic equipment, audio file is received by the wireless connection;
It controls the first audio playback component and the audio file is played using the first beep pattern, obtain described first The first time that beep pattern plays, such as first time are more than time threshold, control the second audio playback component and adopt The audio file is played with second beep pattern.
The third aspect, provides a kind of computer readable storage medium, and storage is used for the computer journey of electronic data interchange Sequence, wherein the computer program makes computer execute the method that two aspects provide.
Fourth aspect, provides a kind of computer program product, and the computer program product includes storing computer journey The non-transient computer readable storage medium of sequence, the computer program are operable to that computer is made to execute second aspect offer Method
As can be seen that technical solution provided by the present application, after obtaining audio file, processing component can control the first sound Frequency playback component plays audio file using the first beep pattern, when the first time of broadcasting being more than time threshold, by first Beep pattern switches to the second beep pattern, i.e., plays the audio file by the second beep pattern, after mode conversion The mode of sounding is also different, so can reduce influence of the sound to healthy ears, improves user experience.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the network architecture schematic diagram of a kind of wearable device and wireless telecom equipment.
Fig. 1 a is a kind of structural schematic diagram of wireless headset provided by the present application.
Fig. 1 b is a kind of another structural schematic diagram of wireless headset provided by the present application.
Fig. 2 is a kind of structural schematic diagram of wearable device provided by the present application.
Fig. 3 a is the structural schematic diagram of the embodiment of the present application input matrix.
Fig. 3 b is the structural schematic diagram of the embodiment of the present application input three-dimensional data.
Fig. 4 is the flow diagram of the wearable device mode switching method of the application.
Fig. 5 is a kind of structural schematic diagram of mobile phone of the application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under that premise of not paying creative labor Embodiment shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Wireless telecom equipment involved by the embodiment of the present application may include various hand-held with wireless communication function Equipment, wearable device, calculates equipment or is connected to other processing equipments of radio modem mobile unit, and each The user equipment (User Equipment, UE) of kind form, mobile station (Mobile Station, MS), terminal device (terminal device) etc..For convenience of description, apparatus mentioned above is referred to as wireless telecom equipment.
In the wearable device that first aspect provides,
The processing component, the second time played specifically for obtaining second beep pattern, when such as described second Between be more than time threshold, control the first audio playback component using first beep pattern and play the audio file.
In the wearable device that first aspect provides,
The wearable device further includes:Acceleration transducer, the acceleration transducer and the processing component connect It connects;
The acceleration transducer, for acquiring acceleration information;
The processing component, when for according to the acquisition acceleration information and the acquisition for acquiring acceleration information Between form input data, by the input data be input in preset neural network model execute multilayer forward operation obtain just To operation result, determine whether to carry out beep pattern switching according to the forward operation result.
In the wearable device that first aspect provides,
The processing component inputs number specifically for sample in the training sample of the acquisition preset neural network model According to type and sample input data queueing discipline, such as the type be matrix data, then by the acceleration information with And the acquisition time forms input matrix by the queueing discipline, such as type is three-dimensional data block, then by the acceleration Degree is accordingly and the composition of the queueing discipline described in the acquisition time inputs three-dimensional data block.
In the wearable device that first aspect provides, the processing component is specifically used for obtaining preset nerve net The queueing discipline of the type of sample input data and sample input data in the training sample of network model, if the type is matrix Data【H0】【W0】, the total quantity Y of acceleration information and acquisition time is determined, such as Y < H0*W0;It calculatesExecute insertion n value processing obtain the data after insertion process, the insertion n be worth Processing specifically includes:It is inserted into n acceleration information in acceleration information, n acquisition time is inserted into multiple acquisition times, will insert The data that enter that treated form input matrix by the queueing discipline, and the size of the input matrix is【H0】【W0】, the H0For matrix Height value, the W0It can be the width value of matrix.
In the wearable device that first aspect provides,
The processing component, X for being greater than given threshold specifically for extracting element value from the forward operation result Element and the corresponding X position of X element correspond to beep pattern switching as having more than X/2 position in the X position, Determine the forward operation result for beep pattern switching;Emergence pattern is corresponded to as having more than X/2 position in the X position Do not switch, determines that the forward operation structure is that beep pattern does not switch;The X is the integer more than or equal to 2.
In the method that second aspect provides, the second time that second beep pattern plays, such as described second are obtained Time is more than time threshold, controls the first audio playback component using first beep pattern and plays the audio text Part.
In the method that second aspect provides, the wearable device further includes:Acceleration transducer, the acceleration Sensor is connect with the processing component;The method also includes:
Acquire acceleration information;
Acquisition time according to the acquisition acceleration information and the acquisition acceleration information forms input data, will The input data is input to execution multilayer forward operation in preset neural network model and obtains forward operation as a result, according to institute Forward operation result is stated to determine whether to carry out beep pattern switching.
It is described to accelerate degree according to the acquisition acceleration information and the acquisition in the method that second aspect provides According to acquisition time composition input data specifically include:
Obtain the type of sample input data and sample input in the training sample of the preset neural network model The queueing discipline of data, such as type are matrix data, then by the acceleration information and the acquisition time by described Queueing discipline form input matrix, such as the type be three-dimensional data block, then by the acceleration information and the acquisition when Between the queueing discipline composition input three-dimensional data block.
It is described to determine whether that carrying out beep pattern cuts according to the forward operation result in the method that second aspect provides It changes and specifically includes:
X element and the corresponding X of X element that element value is greater than given threshold are extracted from the forward operation result A position corresponds to beep pattern switching as having more than X/2 position in the X position, determines that the forward operation result is Beep pattern switching;Emergence pattern is corresponded to as having more than X/2 position in the X position not switch, determines that the forward direction is transported Calculating structure is that beep pattern does not switch;The X is the integer more than or equal to 2.
Referring to Fig. 1, Fig. 1 is that a kind of network architecture schematic diagram, the network architecture disclosed in the embodiment of the present application can wrap Include electronic equipment and wireless headset, wherein wireless headset can by wireless network (for example, bluetooth, infrared ray or WiFi) with Electronic equipment communication connection.It should be noted that wireless headset may include one or more earplug, the embodiment of the present application is not made It limits.In specific implementation, wireless headset can send pairing request to electronic equipment method, and electronic equipment can receive by wearable device The pairing request of transmission, wearable device include at least one individual components, respond pairing request, and detection wearable device includes Number of components, information of wearable device, such as electricity, pairing quantity etc. are shown according to number of components.
As shown in Figure 1a, Fig. 1 a is a kind of structure chart of wireless headset provided by the embodiments of the present application, as shown in Figure 1a, Two earplugs can be kept completely separate setting.As shown in Figure 1a, which includes:Two earplugs, each earplug include:Earplug Shell 121, the loudspeaker that 121 surface of earpiece is arranged in, the earplug can also include:Wireless transceiver 122, processing chip (being not drawn into figure) and battery (being not drawn into figure), it is electric between the processing chip and Trackpad, wireless transceiver and loudspeaker Connection, specifically, the mode of the electrical connection can be connected by bus mode, certainly in practical applications, above-mentioned electrical connection It is also possible to connect by other connection types.
Fig. 1 b is please referred to, Fig. 1 b is the structural schematic diagram of a kind of electronic equipment 100 disclosed in the embodiment of the present application, and electronics is set Standby 100 include storage and processing circuit 110, and the telecommunication circuit 120 and audio that connect with the storage and processing circuit 110 Component 140, wherein in some specific electronic equipments 100, display component 130 or touch control component can also be set.
Electronic equipment 100 may include control circuit, which may include storage and processing circuit 110.This is deposited Storage and processing circuit 110 can store device, such as hard drive memory, nonvolatile memory (such as flash memory or it is used for shape At other electrically programmable read only memories etc. of solid state drive), volatile memory (such as either statically or dynamically arbitrary access Memory etc.) etc., the embodiment of the present application is with no restriction.Processing circuit in storage and processing circuit 110 can be used for controlling electricity The operating of sub- equipment 100.The processing circuit can microprocessor based on one or more, microcontroller, digital signal processor, Baseband processor, power management unit, audio codec chip, specific integrated circuit, display-driver Ics etc. come It realizes.
Storage and processing circuit 110 can be used for running the software in electronic equipment 100, such as voice over internet protocol (Voice over Internet Protocol, VOIP) call application program, simultaneous interpretation function, media play application Program, operation system function etc..These softwares can be used for executing some control operations, for example, the image based on camera is adopted Collection, the ambient light measurement based on ambient light sensor, the proximity sensor measurement based on proximity sensor, based on such as luminous two The information display function that the positioning indicators such as the status indicator lamp of pole pipe are realized, the touch event detection based on touch sensor, Operation associated with wireless communication function is executed, operation associated with collecting and generating audio signal, with collection and processing Other functions etc. in the associated control operation of button press event data and electronic equipment 100, the embodiment of the present application is not It is restricted.
Electronic equipment 100 can also include input-output circuit 150.Input-output circuit 150 can be used for setting electronics Standby 100 realization data are output and input, i.e. permission electronic equipment 100 allows electronic equipment from outer equipment receiving data and also 100 export data to external equipment from electronic equipment 100.Input-output circuit 150 may further include sensor 170. Sensor 170 may include ambient light sensor, the proximity sensor based on light and capacitor, and touch sensor is (for example, be based on light Touch sensor and/or capacitive touch sensors, wherein touch sensor can be a part of touching display screen, can also Independently to be used as a touch sensor arrangement), acceleration transducer and other sensors etc..
Input-output circuit 150 can also include that touch sensor array (is shown that is, display 130 can be touch-control Screen).Touch sensor can be the electricity formed by transparent touch sensor electrode (such as tin indium oxide (ITO) electrode) array Appearance formula touch sensor, or can be the touch sensor formed using other touching techniques, such as sound wave touch-control, pressure-sensitive touching It touches, resistive touch, optical touch etc., the embodiment of the present application is with no restriction.
Electronic equipment 100 can also include audio component 140.Audio component 140 can be used for providing for electronic equipment 100 Audio input and output function.Audio component 140 in electronic equipment 100 may include loudspeaker, microphone, buzzer, sound Adjust generator and other for generating and detecting the component of sound.
Telecommunication circuit 120 can be used for providing the ability with external device communication for electronic equipment 100.Telecommunication circuit 120 It may include analog- and digital- input-output interface circuit, and the radio communication circuit based on radiofrequency signal and/or optical signal. Radio communication circuit in telecommunication circuit 120 may include radio-frequency transceiver circuitry, power amplifier circuit, low noise amplification Device, switch, filter and antenna.For example, the radio communication circuit in telecommunication circuit 120 may include for passing through transmitting The circuit of near-field communication (Near Field Communication, NFC) is supported with near-field coupling electromagnetic signal is received.Example Such as, telecommunication circuit 120 may include near-field communication aerial and near-field communication transceiver.Telecommunication circuit 120 can also include honeycomb Telephone transceiver and antenna, wireless lan transceiver circuit and antenna etc..
Electronic equipment 100 can further include battery, power management circuitry and other input-output units 160.It is defeated Enter-output unit 160 may include button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, hair Optical diode or other positioning indicators etc..
User can input a command for the operation of controlling electronic devices 100 by input-output circuit 150, and can be with Status information and other outputs from electronic equipment 100 are received using the output data of input-output circuit 150 to realize.
Referring to Fig.2, Fig. 2 is a kind of structural schematic diagram of wearable device provided by the present application, as shown in Fig. 2, this can Wearable device includes:First earplug and the second earplug, wherein the first earplug or the second earplug may include:Processing component 201, the first audio playback component 202, the second audio playback component 204 and wireless transceiver 203;Wherein, the processing component 201 It is separately connected with the first audio playback component 202, the second audio playback component 204 and wireless transceiver 203;First sound Frequency playback component 202 is worked by the first beep pattern, which is worked by the second beep pattern. Specific above-mentioned first audio playback component 202 can be sound wave sound-generating element, such as loudspeaker, above-mentioned second audio playback unit Part can be osteoacusis sound-generating element, carry out sounding work by bone-conduction mode.It certainly in practical applications, can also be by the The operating mode of one audio playback component and the operating mode of the second audio playback component exchange.
Wireless transceiver 203 receives audio file by the wireless connection for keeping being wirelessly connected with electronic equipment;
Above-mentioned wireless connection is specifically as follows, bluetooth connection, wifi connection, radio frequency connection etc. radio connection, when So in practical applications, the specific of above-mentioned wireless connection can also not limited to using other radio connections, the application Mode.
Above-mentioned audio file is specifically as follows, individual audio file, naturally it is also possible to for the audio portion in video file The file divided, the application do not limit to above-mentioned audio file and are obtained by which kind of mode.
Processing component 201 plays audio text using the first beep pattern for controlling the first audio playback component 202 Part obtains the first time of first beep pattern broadcasting, and if this is more than time threshold at the first time, the second audio of control is played Component 204 plays the audio file using the second beep pattern.
For technical solution provided by the present application after obtaining audio file, processing component 201 can control the broadcasting of the first audio Component 202 plays audio file using the first beep pattern, when the first time of broadcasting being more than time threshold, by the first sounding Pattern switching plays the audio file by the second beep pattern, sounding after converting due to mode to the second beep pattern Mode it is also different, so can reduce influence of the sound to healthy ears, improve user experience.
Illustrate that the technical effect of the application, wearable device here are with wireless headset below by an example Example, corresponding beep pattern can be first mode, sound wave beep pattern, second mode, osteoacusis beep pattern, then After receiving an audio file, first mode i.e. sound wave beep pattern is used to play the audio file, when broadcasting It when being at the first time more than time threshold, switches to the i.e. osteoacusis beep pattern of second mode and plays out, in this way when osteoacusis is sent out When sound pattern plays audio file, sound wave beep pattern, which plays, to stop working, so it is strong to the ear to there will not be sound wave Health, which has an impact for bone-conduction mode, will not to be impacted to healthy ears by osteoacusis sounding, so it has The advantages of protecting healthy ears, improving user experience.
Optionally, processing component 201, for obtaining the second time of the second beep pattern broadcasting, such as the second time is more than Time threshold, the first audio playback component 202 of control play the audio file using the first beep pattern.
This technical solution is in order to avoid the overlong time of the second beep pattern work causes the second beep pattern to user Body have an impact, the mode of such two kinds of pattern switchings, which can reduce, is used for a long time same beep pattern to the shadow of body It rings, improves user experience.
Optionally, which further includes:Acceleration transducer, for acquiring acceleration information;Processing component 201, for according to the acceleration information and acquire the acceleration information time form input data, the input data is defeated Enter into preset neural network model to execute multilayer forward operation and obtains forward operation as a result, true according to the forward operation result It is fixed whether to carry out beep pattern switching.
Optionally, the above-mentioned realization by the acceleration information and the time composition input data for acquiring the acceleration information Mode is specifically as follows:
Processing component 201, specifically for sample input data in the training sample of the preset neural network model of acquisition The queueing discipline of type and sample input data then should by the acceleration information and acquisition if the type is matrix data The time of acceleration information forms input matrix by the queueing discipline, if the type is three-dimensional data block, then by the acceleration degree Accordingly and the time of the acceleration information is acquired by queueing discipline composition input three-dimensional data block.
Determine the mode of above-mentioned input data below by an actual example, the type of input data here with For matrix data, queueing discipline can be to arrange by width direction (W), be sequentially:Acceleration information-acquisition time, It such as the acceleration information and acquires the quantity of time of the acceleration information and not enough forms matrix, then made by supplementing neutral element It obtains the acceleration information and acquires the quantity composition matrix of the time of the acceleration information.Specific supplement schematic diagram such as Fig. 3 a Shown, as shown in Figure 3a, the box of last black is the element for supplementing zero, and each box in Fig. 3 a represents the member of a matrix Element.Certainly above-mentioned queueing discipline can also be:It is arranged by width direction, is sequentially:Acquisition time-acceleration information, certainly also It can be other queueing disciplines, such as be arranged by the height direction (H).Each box in Fig. 3 a represents an input matrix Element
Here for the type of input data by taking three-dimensional data block as an example, queueing discipline can be to arrange by width direction (W) It arranges, is sequentially:Acceleration information-acquisition time, such as the acceleration information and the quantity for the time for acquiring the acceleration information Not enough composition three-dimensional data block then makes the acceleration information by supplement neutral element and acquires the time of the acceleration information Quantity form three-dimensional data block.Specific supplement schematic diagram is as shown in Figure 3b, and as shown in Figure 3b, the box of last black is to mend The element to zeroize, each box in Fig. 3 b represent the element of a three-dimensional data block.
For preset neural network model, to have completed trained neural network model, the neural network model Training method in, sample input data each in multiple sample input datas is carried out according to being input in neural network model Training is updated the weight data in neural network model, by all multiple sample input datas training to weight data It updates, neural network model at this time is trained neural network model, the weight after neural network model trains Data will not change.Above-mentioned multiple sample input datas at least need:Switch beep pattern sample input data and The sample input data of beep pattern is not switched.Since the weight data in preset neural network model does not change, then defeated Enter in default neural network model carry out forward operation input data just need it is consistent with the type of sample input data, if Type-Inconsistencies, the result that neural network model may execute operation have many deviations.Specifically, in mathematical computations Calculating between matrix and multiplication of matrices and three-dimensional data block and three-dimensional data block is the position of foundation element to execute meter Calculate, if its Type-Inconsistencies, corresponding position is varied certainly, for example, input matrix as shown in Figure 3a and Input three-dimensional data as shown in Figure 3b, even if separately constituting input matrix using identical acceleration information and acquisition time And input three-dimensional data, due to Type-Inconsistencies, then most elements in input matrix and input three-dimensional data Position is inconsistent, and the deviation for the result that the dislocation of these positions will lead to calculating certainly is very big, to positive output result occur Inaccuracy, inaccurate positive output result will lead to the gesture determined according to forward direction output result certainly and deviation occur.That Forming input data using identical type and queueing discipline can be reduced because position is inconsistent and Type-Inconsistencies, Improve the accuracy of positive output result.
Optionally, processing component inputs number specifically for sample in the training sample of the preset neural network model of acquisition According to type and sample input data queueing discipline, as the type be matrix data【H0】【W0】, determine acceleration information with And the total quantity Y of acquisition time, such as Y < H0*W0;It calculatesExecute the place of n value of insertion Reason obtains the data after insertion process, and the processing of n value of the insertion specifically includes:N acceleration degree is inserted into acceleration information According to, it is inserted into n acquisition time in multiple acquisition times, the data after insertion process are formed into input matrix by the queueing discipline, The size of the input matrix is【H0】【W0】, the H0For the height value of matrix, the W0It can be the width value of matrix.
The inserted mode of above-mentioned n acceleration information can there are many, for example, accelerating in a kind of optional mode Degree is inserted into n acceleration information after, which can be the average value of the acceleration value of acquisition, certainly It can also be the n value that n acceleration information can be discrete distribution, n value of discrete distribution is within the set range and discrete The average value of n value of distribution is identical as the average value of the acceleration value of acquisition.N acquisition time of the insertion is specifically as follows, N acquisition time is inserted into after acquisition time with setpoint frequency, which can be frequency set by user.
The mode of such insertion is capable of the acceleration information and acquisition time of emulation acquired original as far as possible, in this way can The authenticity of input matrix data is improved, and then improves the accuracy of forward operation result.
Optionally, determine whether that carrying out beep pattern switching can specifically include according to the forward operation result:Processing unit Part, the X element and the corresponding X of X element for being greater than given threshold specifically for extracting element value from forward operation result A position corresponds to beep pattern switching as having more than X/2 position in X position, determines that the forward operation result is sounding mould Formula switching does not switch conversely, having more than X/2 position in such as X position and corresponding to emergence pattern, determines that the forward operation structure is Beep pattern does not switch.
It should be noted that beep pattern switching corresponding for element value each in forward operation result or beep pattern are not It is determined when switching can pass through trained, it is since it is the sample data marked, i.e., known to be somebody's turn to do for training sample input data Training sample input data belongs to beep pattern switching or beep pattern does not switch, and by the training sample, (beep pattern is not cut Change) it is input to and obtains forward operation in preset neural network model as a result, in the forward operation result greater than given threshold The corresponding position of element is that beep pattern does not switch.Similarly, which is input to preset Forward operation is obtained in neural network model as a result, in the forward operation result i.e. greater than the corresponding position of element of given threshold For beep pattern switching.
A kind of mode switching method of wearable device is provided refering to Fig. 4, Fig. 4, the method can be worn applied to described Formula equipment is worn, including:Processing component, the first audio playback component, the second audio playback component and wireless transceiver;Described first Audio playback component is worked by the first beep pattern, and the second audio playback component is worked by the second beep pattern;Institute The method of stating includes the following steps:
Step S401, it keeps being wirelessly connected with electronic equipment, audio file is received by the wireless connection;
Step S402, it controls the first audio playback component and the audio file is played using the first beep pattern, obtain The first time for taking first beep pattern to play;
Step S403, such as described is more than time threshold at the first time, is controlled described in the second audio playback component use Second beep pattern plays the audio file.
Optionally, the method also includes:
The second time that second beep pattern plays is obtained, such as second time is more than time threshold, controls institute It states the first audio playback component and the audio file is played using first beep pattern.
Optionally, the wearable device further includes:Acceleration transducer, the acceleration transducer and the processing Component connection;The method also includes:
Acquire acceleration information;
Acquisition time according to the acquisition acceleration information and the acquisition acceleration information forms input data, will The input data is input to execution multilayer forward operation in preset neural network model and obtains forward operation as a result, according to institute Forward operation result is stated to determine whether to carry out beep pattern switching.
Optionally, the acquisition time according to the acquisition acceleration information and the acquisition acceleration information forms Input data specifically includes:
Obtain the type of sample input data and sample input in the training sample of the preset neural network model The queueing discipline of data, such as type are matrix data, then by the acceleration information and the acquisition time by described Queueing discipline form input matrix, such as the type be three-dimensional data block, then by the acceleration information and the acquisition when Between the queueing discipline composition input three-dimensional data block.
Optionally, the acquisition time according to the acquisition acceleration information and the acquisition acceleration information forms Input data specifically includes:
Obtain the type of sample input data and sample input data in the training sample of preset neural network model Queueing discipline, as the type be matrix data【H0】【W0】, determine the total quantity Y of acceleration information and acquisition time, such as Y < H0*W0;It calculatesThe processing for executing n value of insertion obtains the data after insertion process, The processing of n value of the insertion specifically includes:It is inserted into n acceleration information in acceleration information, in multiple acquisition times insertion n Data after insertion process are formed input matrix by the queueing discipline by acquisition time, and the size of the input matrix is【H0】 【W0】, the H0For the height value of matrix, the W0It can be the width value of matrix
Optionally, described to determine whether that carrying out beep pattern switching specifically includes according to the forward operation result:
X element and the corresponding X of X element that element value is greater than given threshold are extracted from the forward operation result A position corresponds to beep pattern switching as having more than X/2 position in the X position, determines that the forward operation result is Beep pattern switching;Emergence pattern is corresponded to as having more than X/2 position in the X position not switch, determines that the forward direction is transported Calculating structure is that beep pattern does not switch;The X is the integer more than or equal to 2.
Fig. 5 shows the part-structure for the wearable device connecting with mobile terminal provided by the embodiments of the present application Block diagram.With reference to Fig. 5, wearable device includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input Unit 930, sensor 950, the first audio playback component 960 (such as audio collection device), Wireless Fidelity (Wireless Fidelity, WiFi) components such as module 970, application processor AP980, power supply 990, the second audio playback component 999.Ability Field technique personnel are appreciated that wearable device structure shown in Fig. 5 does not constitute the restriction to wearable device, can To include perhaps combining certain components or different component layouts, such as the radio frequency electrical than illustrating more or fewer components Road 910 can connect single or more antenna.
It is specifically introduced below with reference to each component parts of the Fig. 5 to wearable device:
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 930 may include touching display screen 933 and other inputs Equipment 932.Specifically, other input equipments 932 can include but is not limited to physical button, function key (for example press by volume control Key, switch key etc.), trace ball, one of operating stick etc. or a variety of.Wherein,
Radio circuit 910 receives audio file by the wireless connection for keeping being wirelessly connected with electronic equipment;
Application processor AP980, for controlling the first audio playback component using described in the broadcasting of the first beep pattern Audio file obtains the first time that first beep pattern plays, and such as first time is more than time threshold, controls institute It states the second audio playback component and the audio file is played using second beep pattern.
Application processor AP980, the second time played specifically for obtaining second beep pattern, such as described second Time is more than time threshold, controls the first audio playback component using first beep pattern and plays the audio text Part.
Application processor AP980 is specifically used for according to the acquisition acceleration information and the acquisition acceleration information Acquisition time form input data, by the input data be input in preset neural network model execute multilayer forward direction fortune Calculation obtains forward operation as a result, determining whether to carry out beep pattern switching according to the forward operation result.
Application processor AP980, it is defeated specifically for sample in the training sample of the acquisition preset neural network model Enter the type of data and the queueing discipline of sample input data, such as the type is matrix data, then by the acceleration degree Accordingly and the acquisition time is by queueing discipline composition input matrix, and such as type is three-dimensional data block, then will be described The composition input three-dimensional data block of the queueing discipline described in acceleration information and the acquisition time.
Application processor AP980, the X for being greater than given threshold specifically for extracting element value from the forward operation result A element and the corresponding X position of X element correspond to beep pattern as having more than X/2 position in the X position and cut It changes, determines the forward operation result for beep pattern switching;As having more than in the X position, X/2 position is corresponding to be occurred Mode does not switch, and determines that the forward operation structure is that beep pattern does not switch;The X is the integer more than or equal to 2
AP980 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection Various pieces, by running or execute the software program and/or module that are stored in memory 920, and call and be stored in Data in memory 920 execute the various functions and processing data of wearable device, to carry out to wearable device Integral monitoring.Optionally, AP980 may include one or more processing units;Optionally, AP980 can integrate application processor and Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into AP980.
In addition, memory 920 may include high-speed random access memory, it can also include nonvolatile memory, example Such as at least one flush memory device or other volatile solid-state parts.
RF circuit 910 can be used for sending and receiving for information.In general, RF circuit 910 includes but is not limited to antenna, at least one A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to bluetooth, wifi, global system for mobile communications, general packet radio service, CDMA, Wideband code division multiple access, is newly eated dishes without rice or wine at long term evolution.
Wearable device may also include at least one sensor 950, such as ultrasonic sensor, angular transducer, light Sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and close sensing Device, wherein ambient light sensor can detecte whether wearable device is located according to the light and shade of ambient light, motion sensor In slotting ear state, the brightness for adjusting touching display screen according to the slotting ear state, proximity sensor can be moved in wearable device When moving in one's ear, touching display screen and/or backlight are closed.As a kind of motion sensor, accelerometer sensor is detectable each The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify can on a direction when static The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of wearable device posture, Vibration identification correlation function (such as pedometer, percussion) etc.;It is the gyroscope that can also configure as wearable device, barometer, hygrometer, thermometer, red The other sensors such as outside line sensor, details are not described herein.
Audio collection device 960, loudspeaker 961, microphone 962 can provide the audio between user and wearable device and connect Mouthful.Electric signal after the audio data received conversion can be transferred to loudspeaker 961, by loudspeaker by audio collection device 960 961 are converted to voice signal broadcasting;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is adopted by audio Storage 960 is converted to audio data after receiving, then after audio data is played AP980 processing, through RF circuit 910 to be sent to ratio It plays to memory 920 such as mobile phone, or by audio data to be further processed.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive by WiFi module 970 Data etc. are sent out, it provides wireless broadband internet access for user.It, can be with although Fig. 5 shows WiFi module 970 Understand, and be not belonging to must be configured into for wearable device, is can according to need completely in the essence for not changing application In the range of and omit.
The wearable device can also include bluetooth module, and the bluetooth module is for realizing the company between electronic equipment It connects, which can be separately provided, and certainly in practical applications, since the application processor of selection is different, can also collect At in application processor.
Wearable device further includes the power supply 990 (such as battery) powered to all parts, and optionally, power supply can lead to It is logically contiguous with AP980 to cross power-supply management system, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Although being not shown, wearable device can also be including camera, light compensating apparatus, light sensor etc., herein not It repeats again.
As can be seen that technical solution provided by the present application, after obtaining audio file, application processor can control first Audio playback component plays audio file using the first beep pattern, when the first time of broadcasting being more than time threshold, by the One beep pattern switches to the second beep pattern, i.e., plays the audio file by the second beep pattern, due to mode convert with The mode of sounding is also different afterwards, so can reduce influence of the sound to healthy ears, improves user experience.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer A kind of some or all of wearable device mode switching method step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Some or all of any wearable device mode switching method recorded in method embodiment step.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also be realized in the form of software program module.
It is the embodiment of the embodiment of the present application above, it is noted that those skilled in the art are come It says, under the premise of not departing from the embodiment of the present application principle, several improvements and modifications can also be made, these improvements and modifications It is considered as the protection scope of the application.

Claims (12)

1. a kind of wearable device, which is characterized in that the wearable device includes:Processing component, the first audio play Component, the second audio playback component and wireless transceiver;Wherein, the processing component and the first audio playback component, institute It states the second audio playback component and the wireless transceiver is separately connected, the first audio playback component passes through the first sounding Mode work, the second audio playback component are worked by the second beep pattern;
The wireless transceiver receives audio file by the wireless connection for keeping being wirelessly connected with electronic equipment;
The processing component plays the audio text using the first beep pattern for controlling the first audio playback component Part obtains the first time that first beep pattern plays, and such as first time is more than time threshold, control described second Audio playback component plays the audio file using second beep pattern.
2. wearable device according to claim 1, which is characterized in that
The processing component, the second time played specifically for obtaining second beep pattern, such as second time are super Time threshold is crossed, the first audio playback component is controlled using first beep pattern and plays the audio file.
3. wearable device according to claim 1, which is characterized in that the wearable device further includes:Accelerate Sensor is spent, the acceleration transducer is connect with the processing component;
The acceleration transducer, for acquiring acceleration information;
The processing component, for the acquisition time group according to the acquisition acceleration information and the acquisition acceleration information At input data, the input data is input to execution multilayer forward operation in preset neural network model and obtains positive fortune It calculates as a result, determining whether to carry out beep pattern switching according to the forward operation result.
4. wearable device according to claim 3, which is characterized in that
The processing component, specifically for sample input data in the training sample of the acquisition preset neural network model The queueing discipline of type and sample input data, such as type are matrix data, then by the acceleration information and institute It states acquisition time and forms input matrix by the queueing discipline, such as type is three-dimensional data block, then by the acceleration degree Accordingly and the composition of the queueing discipline described in the acquisition time inputs three-dimensional data block.
5. wearable device according to claim 3, which is characterized in that
The processing component, X element for being greater than given threshold specifically for extracting element value from the forward operation result And the corresponding X position of X element, beep pattern switching is corresponded to as having more than X/2 position in the X position, is determined The forward operation result is beep pattern switching;Emergence pattern is corresponded to as having more than X/2 position in the X position not cut It changes, determines that the forward operation structure is that beep pattern does not switch;The X is the integer more than or equal to 2.
6. a kind of mode switching method of wearable device, which is characterized in that the method is applied to described wearable set It is standby, including:Processing component, the first audio playback component, the second audio playback component and wireless transceiver;First audio is broadcast It puts component to work by the first beep pattern, the second audio playback component is worked by the second beep pattern;The method Include the following steps:
It keeps being wirelessly connected with electronic equipment, audio file is received by the wireless connection;
It controls the first audio playback component and the audio file is played using the first beep pattern, obtain first sounding The first time of mode playback, such as first time are more than time threshold, control the second audio playback component and use institute It states the second beep pattern and plays the audio file.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The second time that second beep pattern plays is obtained, such as second time is more than time threshold, controls described the One audio playback component plays the audio file using first beep pattern.
8. according to the method described in claim 6, it is characterized in that, the wearable device further includes:Acceleration transducer, The acceleration transducer is connect with the processing component;The method also includes:
Acquire acceleration information;
Acquisition time according to the acquisition acceleration information and the acquisition acceleration information forms input data, will be described Input data be input in preset neural network model execute multilayer forward operation obtain forward operation as a result, according to it is described just Determine whether to carry out beep pattern switching to operation result.
9. according to the method described in claim 8, it is characterized in that, described according to the acquisition acceleration information and described adopt The acquisition time composition input data of collection acceleration information specifically includes:
Obtain the type and sample input data of sample input data in the training sample of the preset neural network model Queueing discipline, such as type is matrix data, then the acceleration information and the acquisition time is pressed the arrangement Rule composition input matrix, such as type is three-dimensional data block, then by the acceleration information and acquisition time institute State queueing discipline composition input three-dimensional data block.
10. according to the method described in claim 8, it is characterized in that, it is described according to the forward operation result determine whether into The switching of row beep pattern specifically includes:
X element and the corresponding X position of X element that element value is greater than given threshold are extracted from the forward operation result It sets, corresponds to beep pattern switching as having more than X/2 position in the X position, determine that the forward operation result is sounding Pattern switching;Emergence pattern is corresponded to as having more than X/2 position in the X position not switch, determines the forward operation knot Structure is that beep pattern does not switch;The X is the integer more than or equal to 2.
11. a kind of computer readable storage medium, which is characterized in that it stores the computer program for being used for electronic data interchange, Wherein, the computer program makes computer execute such as the described in any item methods of claim 6-10.
12. a kind of computer program product, which is characterized in that the computer program product includes storing computer program Non-transient computer readable storage medium, the computer program are operable to that computer is made to execute such as claim 6-10 Method described in one.
CN201810606177.4A 2018-06-13 2018-06-13 Mode conversion method for wearable equipment and related product Expired - Fee Related CN108848262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810606177.4A CN108848262B (en) 2018-06-13 2018-06-13 Mode conversion method for wearable equipment and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810606177.4A CN108848262B (en) 2018-06-13 2018-06-13 Mode conversion method for wearable equipment and related product

Publications (2)

Publication Number Publication Date
CN108848262A true CN108848262A (en) 2018-11-20
CN108848262B CN108848262B (en) 2021-03-05

Family

ID=64211045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810606177.4A Expired - Fee Related CN108848262B (en) 2018-06-13 2018-06-13 Mode conversion method for wearable equipment and related product

Country Status (1)

Country Link
CN (1) CN108848262B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7548617B2 (en) * 2005-08-19 2009-06-16 Innovation Sound Technology Co., Ltd Bluetooth earphone
CN103458339A (en) * 2012-06-01 2013-12-18 联想(北京)有限公司 Audio output control method and electronic equipment
CN106685459A (en) * 2016-12-27 2017-05-17 广东小天才科技有限公司 Control method for wearable device operation and the wearable device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7548617B2 (en) * 2005-08-19 2009-06-16 Innovation Sound Technology Co., Ltd Bluetooth earphone
CN103458339A (en) * 2012-06-01 2013-12-18 联想(北京)有限公司 Audio output control method and electronic equipment
CN106685459A (en) * 2016-12-27 2017-05-17 广东小天才科技有限公司 Control method for wearable device operation and the wearable device

Also Published As

Publication number Publication date
CN108848262B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN107425860B (en) Antenna switching system and mobile terminal
CN109068206A (en) Principal and subordinate&#39;s earphone method for handover control and Related product
CN108958696A (en) Principal and subordinate&#39;s earphone method for handover control and Related product
CN107967129A (en) Display control method and related product
CN106127152B (en) A kind of fingerprint template update method and terminal device
CN108541080A (en) First electronic equipment and the second electronic equipment carry out the method and Related product of Hui Lian
CN109639367A (en) The method of adjustment and Related product of electromagnetic interference
CN108897516A (en) A kind of wearable device method for regulation of sound volume and Related product
CN107480489A (en) Solve lock control method and Related product
CN110247692A (en) Path switching method and Related product
CN108769387A (en) Application control method and relevant device
CN109150221B (en) Master-slave switching method for wearable equipment and related product
CN107678989A (en) UART and USB multiplex circuits and mobile terminal
CN109067965A (en) Interpretation method, translating equipment, wearable device and storage medium
CN107715449A (en) A kind of account login method and relevant device
CN107256380A (en) Fingerprint register method and Related product
CN109922539A (en) Method for connecting network and Related product
CN108600887A (en) Method of toch control based on wireless headset and Related product
CN109274441A (en) A kind of tuning methods and terminal device
CN109274812A (en) The method and Related product of ultrasonic wave gesture control electronic device
CN108923810A (en) Interpretation method and relevant device
CN108196781A (en) The display methods and mobile terminal at interface
CN109121034A (en) Master-slave switching method and Related product based on volume
CN108989546A (en) The proximity test method and Related product of electronic device
CN108834013A (en) A kind of wearable device electric quantity balancing method and Related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210305