CN116013334B - Audio data processing method, electronic device and storage medium - Google Patents
Audio data processing method, electronic device and storage medium Download PDFInfo
- Publication number
- CN116013334B CN116013334B CN202310042274.6A CN202310042274A CN116013334B CN 116013334 B CN116013334 B CN 116013334B CN 202310042274 A CN202310042274 A CN 202310042274A CN 116013334 B CN116013334 B CN 116013334B
- Authority
- CN
- China
- Prior art keywords
- audio data
- wearable device
- format
- preset
- range
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 17
- 238000004458 analytical method Methods 0.000 claims abstract description 124
- 238000012545 processing Methods 0.000 claims abstract description 92
- 238000000034 method Methods 0.000 claims abstract description 47
- 238000005070 sampling Methods 0.000 claims description 88
- 230000002159 abnormal effect Effects 0.000 claims description 32
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 238000007781 pre-processing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 230000001960 triggered effect Effects 0.000 claims 1
- 230000005856 abnormality Effects 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 31
- 230000006854 communication Effects 0.000 description 31
- 230000006870 function Effects 0.000 description 21
- 230000005236 sound signal Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 6
- 238000010295 mobile communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003416 augmentation Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本申请涉及数据处理技术领域,特别是涉及一种音频数据处理方法、电子设备及存储介质。The present application relates to the technical field of data processing, in particular to an audio data processing method, electronic equipment and storage media.
背景技术Background technique
可穿戴设备,如智能手表、智能手环等,能够播放本地存储的音频数据,但可穿戴设备只能对指定范围内的比特率、采样率和格式的音频数据进行解析、播放,如果可穿戴设备中存储的是可穿戴设备无法解析的音频数据,则若用户控制可穿戴设备播放该音频数据,由于始终无法获得解析结果,可穿戴设备可能会对该音频数据进行重复解析,进而会导致可穿戴设备播放音频数据时出现死机卡顿的情况,影响用户的使用体验。Wearable devices, such as smart watches, smart bracelets, etc., can play locally stored audio data, but wearable devices can only analyze and play audio data with a specified bit rate, sampling rate and format. If the wearable The device stores audio data that cannot be parsed by the wearable device. If the user controls the wearable device to play the audio data, the wearable device may analyze the audio data repeatedly because the analysis result cannot be obtained, which may lead to possible When the wearable device plays audio data, it freezes and freezes, which affects the user experience.
因此,需要提供一种方案,以保证可穿戴设备播放的音频数据为可穿戴设备能够解析的音频数据,进而也就保证可穿戴设备播放音频数据时不会出现死机卡顿的情况,提高了用户的使用体验。Therefore, it is necessary to provide a solution to ensure that the audio data played by the wearable device is the audio data that the wearable device can parse, thereby ensuring that the wearable device will not crash or freeze when playing audio data, which improves the user experience. use experience.
发明内容Contents of the invention
有鉴于此,本申请提供一种音频数据处理方法、电子设备及存储介质,以保证可穿戴设备播放的音频数据为可穿戴设备能够解析的音频数据。In view of this, the present application provides an audio data processing method, an electronic device, and a storage medium, so as to ensure that the audio data played by the wearable device is audio data that the wearable device can parse.
第一方面,本申请实施例提供了一种音频数据处理方法, 应用于可穿戴设备,上述方法包括:In the first aspect, the embodiment of the present application provides an audio data processing method, which is applied to a wearable device, and the above method includes:
可穿戴设备在接收到音频数据后,对所述音频数据的数据头进行预解析,得到预解析信息,所述预解析信息中包括:音频数据的比特率、音频数据的采样率、音频数据的格式;After receiving the audio data, the wearable device pre-analyzes the data header of the audio data to obtain pre-analysis information, and the pre-analysis information includes: the bit rate of the audio data, the sampling rate of the audio data, the Format;
可穿戴设备判断所述预解析信息是否属于所述可穿戴设备能够解析的预设范围内;The wearable device judges whether the pre-analysis information falls within a preset range that the wearable device can resolve;
若是,则可穿戴设备在接收到播放所述音频数据的播放指令后,对所述音频数据进行解析并播放;If so, the wearable device parses and plays the audio data after receiving the playback instruction to play the audio data;
否则,则可穿戴设备生成表示音频数据异常的提示信息,并在接收到用户针对所述提示信息输入的处理指令后,对所述音频数据进行所述处理指令指示的处理。Otherwise, the wearable device generates prompt information indicating that the audio data is abnormal, and after receiving a processing instruction input by the user for the prompt information, performs the processing indicated by the processing instruction on the audio data.
由以上可见,因为可穿戴设备只能对指定范围内的比特率、采样率和格式的音频数据进行解析、播放,所以可穿戴设备在接收到音频数据后,首先对音频数据的数据头进行预解析,得到包括比特率、采样率和格式的预解析信息,然后判断预解析信息是否属于可穿戴设备能够解析的预设范围内,若是,则说明可穿戴设备能够解析上述音频数据,否则说明可穿戴设备不能够解析上述音频数据,因此根据本申请实施例提供的方案,能够确定上述音频数据是否为可穿戴设备能够解析的音频数据。It can be seen from the above that because the wearable device can only analyze and play the audio data of the bit rate, sampling rate and format within the specified range, the wearable device first pre-configures the data header of the audio data after receiving the audio data. Analyze to obtain the pre-analysis information including bit rate, sampling rate and format, and then judge whether the pre-analysis information is within the preset range that the wearable device can parse. If so, it means that the wearable device can parse the above audio data; The wearable device cannot parse the above audio data. Therefore, according to the solution provided by the embodiment of the present application, it can be determined whether the above audio data is audio data that the wearable device can parse.
另外,如果预解析信息属于可穿戴设备能够解析的预设范围内,则在接收到播放上述音频数据的播放指令后,对音频数据进行解析播放,否则生成表示音频数据异常的提示信息,并在接收到用户针对上述提示信息输入的处理指令后,对上述音频数据进行上述处理指令指示的处理,也就是说针对可穿戴设备能够解析的音频数据,可穿戴设备可以对该音频数据直接进行解析并播放,针对可穿戴设备不能够解析音频数据,可穿戴设备并不是直接播放该音频设备,不会直接对音频数据进行解析,而是先对该音频数据进行处理,也就使得可穿戴设备播放音频数据时不会出现死机卡顿的情况,提高了用户的使用体验。In addition, if the pre-analysis information belongs to the preset range that the wearable device can analyze, after receiving the playback instruction to play the above audio data, analyze and play the audio data; otherwise, generate a prompt message indicating that the audio data is abnormal, and After receiving the processing instruction input by the user for the above prompt information, perform the processing indicated by the above processing instruction on the above audio data, that is to say, for the audio data that can be parsed by the wearable device, the wearable device can directly analyze the audio data and Play, for wearable devices that cannot parse audio data, wearable devices do not directly play the audio device, and do not directly analyze the audio data, but process the audio data first, which makes the wearable device play audio There will be no crash or freeze during data processing, which improves the user experience.
本申请的一个实施例中,上述在接收到用户针对所述提示信息输入的处理指令后,对所述音频数据进行所述处理指令指示的处理,包括:In an embodiment of the present application, after receiving the processing instruction input by the user for the prompt information, performing the processing indicated by the processing instruction on the audio data includes:
可穿戴设备在接收到用户针对所述提示信息输入的表示删除所述音频数据的处理指令后,删除所述音频数据;The wearable device deletes the audio data after receiving a processing instruction input by the user for the prompt information indicating deletion of the audio data;
可穿戴设备在接收到用户针对所述提示信息输入的表示对所述音频数据进行格式转换的处理指令后,将所述音频数据转换为目标音频数据,其中,所述目标音频数据的格式为:所述可穿戴设备能够解析的目标格式,所述目标格式为:音频数据的比特率属于预设比特范围内、音频数据的采样率属于预设采样范围内、音频数据的格式属于预设格式范围内。The wearable device converts the audio data into target audio data after receiving a processing instruction input by the user for the prompt information indicating format conversion of the audio data, wherein the format of the target audio data is: The target format that the wearable device can parse, the target format is: the bit rate of the audio data belongs to the preset bit range, the sampling rate of the audio data belongs to the preset sampling range, and the format of the audio data belongs to the preset format range Inside.
由以上可见,针对可穿戴设备无法解析的音频数据,本申请实施例提供的方案可以在接收到用户输入的表示删除上述音频数据的处理指令后,删除上述音频数据,那么也就不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况,或者在接收到用户输入的表示对上述音频数据进行格式转换的处理指令后,将上述音频数据转换为目标音频数据,因为上述目标音频数据的格式是可穿戴设备能够解析的目标格式,也就是说将上述音频数据转换为目标音频数据后,可穿戴设备可以上述目标音频数据进行解析并播放,也就不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况。It can be seen from the above that for the audio data that cannot be parsed by the wearable device, the solution provided by the embodiment of the present application can delete the above-mentioned audio data after receiving the processing instruction input by the user indicating to delete the above-mentioned audio data, so that there will be no possible The wearable device can never obtain the analysis result, and it will repeat the analysis of the audio data, thereby ensuring that the wearable device will not freeze when playing the audio data, or format the above audio data after receiving the input from the user. After converting the processing instruction, convert the above audio data into the target audio data, because the format of the above target audio data is the target format that the wearable device can parse, that is to say, after converting the above audio data into the target audio data, the wearable device The above-mentioned target audio data can be analyzed and played, so that the wearable device will not be able to obtain the analysis result all the time, and will repeat the analysis of the audio data, thereby ensuring that the wearable device will freeze when playing audio data. Condition.
本申请的一个实施例中,上述方法还包括:In one embodiment of the present application, the above method also includes:
可穿戴设备在将所述音频数据转换为所述可穿戴设备能够解析的目标音频数据的过程中,判断是否能够成功将所述音频数据转换为目标音频数据;During the process of converting the audio data into the target audio data that the wearable device can parse, the wearable device determines whether the audio data can be successfully converted into the target audio data;
若无法成功将所述音频数据转换为目标音频数据,则可穿戴设备删除所述音频数据。If the audio data cannot be successfully converted into target audio data, the wearable device deletes the audio data.
由以上可见,若上述音频数据的数据头不能够正常预解析,则无法得到预解析信息,进而也就无法通过本申请实施例确定上述音频数据是否是可穿戴设备能够解析的音频数据,可以删除上述音频数据。另外,通过删除上述音频数据,不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况。It can be seen from the above that if the data header of the above-mentioned audio data cannot be pre-analyzed normally, the pre-analysis information cannot be obtained, and then it is impossible to determine whether the above-mentioned audio data is audio data that can be parsed by the wearable device through the embodiment of the application, and can be deleted the above audio data. In addition, by deleting the above audio data, there will be no behavior that the wearable device will always fail to obtain the analysis result and will repeatedly analyze the audio data, thereby ensuring that the wearable device will freeze when playing audio data.
本申请的一个实施例中,上述方法还包括:In one embodiment of the present application, the above method also includes:
若对所述音频数据进行预解析的过程中确定所述音频数据的数据头不能够正常预解析,则可穿戴设备删除所述音频数据。If it is determined during the pre-parsing process of the audio data that the data header of the audio data cannot be pre-parsed normally, the wearable device deletes the audio data.
由以上可见,若上述音频数据的数据头不能够正常预解析,则无法得到预解析信息,进而也就无法通过本申请实施例确定上述音频数据是否是可穿戴设备能够解析的音频数据,可以删除上述音频数据。It can be seen from the above that if the data header of the above-mentioned audio data cannot be pre-analyzed normally, the pre-analysis information cannot be obtained, and then it is impossible to determine whether the above-mentioned audio data is audio data that can be parsed by the wearable device through the embodiment of the application, and can be deleted the above audio data.
本申请的一个实施例中,通过以下方式获得所述预解析信息中的比特率,包括:In one embodiment of the present application, the bit rate in the pre-analysis information is obtained in the following manner, including:
可穿戴设备在接收到音频数据后,对所述音频数据的数据头进行预解析,得到所述音频数据的通道数量、位深;After receiving the audio data, the wearable device pre-analyzes the data header of the audio data to obtain the channel number and bit depth of the audio data;
可穿戴设备计算采样率、通道数量与位深之积,得到所述音频数据的比特率。The wearable device calculates the product of the sampling rate, the number of channels and the bit depth to obtain the bit rate of the audio data.
由以上可见,因为上述音频数据的比特率与音频数据的采样率、通道数量与位深相关,所以在对上述音频数据的数据头进行预解析,得到音频数据的采样率、通道数量与位深之后,便可以得到上述音频数据的比特率。It can be seen from the above that because the bit rate of the above audio data is related to the sampling rate, number of channels and bit depth of the audio data, the data header of the above audio data is pre-analyzed to obtain the sampling rate, number of channels and bit depth of the audio data After that, the bit rate of the above audio data can be obtained.
本申请的一个实施例中,上述判断所述预解析信息是否属于所述可穿戴设备能够解析的预设范围内,包括:In an embodiment of the present application, the above-mentioned determination of whether the pre-analysis information falls within the preset range that the wearable device can parse includes:
可穿戴设备判断所述预解析信息中的格式是否属于所述可穿戴设备能够解析的预设格式范围内;The wearable device judges whether the format in the pre-analysis information falls within the range of preset formats that the wearable device can parse;
若所述格式不属于所述预设格式范围内,则可穿戴设备执行所述生成表示音频数据异常的提示信息,并在接收到用户针对所述提示信息输入的处理指令后,对所述音频数据进行所述处理指令指示的处理的步骤;If the format does not belong to the range of the preset format, the wearable device executes the generation of prompt information indicating that the audio data is abnormal, and after receiving the processing instruction input by the user for the prompt information, a step in which the data is processed as indicated by the processing instruction;
若所述格式属于所述预设格式范围内,则可穿戴设备判断预解析信息中的比特率是否属于所述可穿戴设备能够解析的预设比特范围内且采样率是否属于所述可穿戴设备能够解析的预设采样范围内;If the format belongs to the preset format range, the wearable device judges whether the bit rate in the pre-analysis information falls within the preset bit range that the wearable device can parse and whether the sampling rate belongs to the wearable device within the preset sampling range that can be resolved;
若所述比特率属于所述预设比特范围内且所述采样率属于所述预设采样范围内,则可穿戴设备执行所述在接收到播放所述音频数据的播放指令后,对所述音频数据进行解析并播放的步骤;If the bit rate falls within the preset bit range and the sampling rate falls within the preset sampling range, the wearable device executes, after receiving a play instruction to play the audio data, Steps for parsing and playing audio data;
否则,可穿戴设备执行所述生成表示音频数据异常的提示信息,并在接收到用户针对所述提示信息输入的处理指令后,对所述音频数据进行所述处理指令指示的处理的步骤。Otherwise, the wearable device executes the step of generating prompt information indicating that the audio data is abnormal, and after receiving a processing instruction input by the user for the prompt information, performs the processing indicated by the processing instruction on the audio data.
由以上可见,因为上述预解析信息中包括格式、采样率和比特率,所以可以先判断上述格式是否属于上述预设格式范围内,若不是则可以说明上述预解析信息不属于可穿戴设备能够解析的预设范围内,若是则可以继续判断上述采样率是否属于上述预设采样范围且上述比特率是否属于上述预设比特范围内,若是则可以说明上述预解析信息属于可穿戴设备能够解析的预设范围内,否则说明上述预解析信息不属于可穿戴设备能够解析的预设范围内,因此通过本申请实施例可以判断上述预解析信息是否属于可穿戴设备能够解析的预设范围内。It can be seen from the above that because the above-mentioned pre-analysis information includes format, sampling rate and bit rate, it can be judged whether the above-mentioned format belongs to the range of the above-mentioned preset format. If not, it can be explained that the above-mentioned pre-analysis information does not belong to wearable devices. If it is within the preset range, it can continue to judge whether the above-mentioned sampling rate belongs to the above-mentioned preset sampling range and whether the above-mentioned bit rate belongs to the above-mentioned preset bit range. Otherwise, it means that the above-mentioned pre-analysis information does not belong to the preset range that the wearable device can parse. Therefore, through the embodiment of the present application, it can be determined whether the above-mentioned pre-analysis information is within the preset range that the wearable device can parse.
第二方面,本申请实施例提供了一种电子设备,包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被所述处理器执行时,触发所述电子设备执行权第一方面中任一项所述的步骤。In a second aspect, an embodiment of the present application provides an electronic device, including a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, trigger The electronic device executes the steps described in any one of the first aspect.
第三方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行第一方面中任意一项所述的方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein, when the program is running, the device where the computer-readable storage medium is located is controlled to execute the first The method of any one of the aspects.
本申请实施例的有益效果:The beneficial effect of the embodiment of the present application:
本发明实施例提供了一种音频数据处理方法,应用于可穿戴设备,上述方法包括:在接收到音频数据后,对上述音频数据的数据头进行预解析,得到预解析信息,上述预解析信息中包括:音频数据的比特率、音频数据的采样率、音频数据的格式;判断上述预解析信息是否属于上述可穿戴设备能够解析的预设范围内;若是,则在接收到播放上述音频数据的播放指令后,对上述音频数据进行解析并播放;否则,则生成表示音频数据异常的提示信息,并在接收到用户针对上述提示信息输入的处理指令后,对上述音频数据进行上述处理指令指示的处理。An embodiment of the present invention provides an audio data processing method, which is applied to a wearable device. The method includes: after receiving the audio data, performing pre-analysis on the data header of the audio data to obtain pre-analysis information, the pre-analysis information Including: the bit rate of the audio data, the sampling rate of the audio data, the format of the audio data; judging whether the above-mentioned pre-analysis information belongs to the preset range that the above-mentioned wearable device can parse; After playing the instruction, analyze and play the above audio data; otherwise, generate a prompt message indicating that the audio data is abnormal, and after receiving the processing instruction input by the user for the above prompt information, perform the above processing instruction on the above audio data deal with.
由以上可见,因为可穿戴设备只能对指定范围内的比特率、采样率和格式的音频数据进行解析、播放,所以可穿戴设备在接收到音频数据后,首先对音频数据的数据头进行预解析,得到包括比特率、采样率和格式的预解析信息,然后判断预解析信息是否属于可穿戴设备能够解析的预设范围内,若是,则说明可穿戴设备能够解析上述音频数据,否则说明可穿戴设备不能够解析上述音频数据,因此根据本申请实施例提供的方案,能够确定上述音频数据是否为可穿戴设备能够解析的音频数据。It can be seen from the above that because the wearable device can only analyze and play the audio data of the bit rate, sampling rate and format within the specified range, the wearable device first pre-configures the data header of the audio data after receiving the audio data. Analyze to obtain the pre-analysis information including bit rate, sampling rate and format, and then judge whether the pre-analysis information is within the preset range that the wearable device can parse. If so, it means that the wearable device can parse the above audio data; The wearable device cannot parse the above audio data. Therefore, according to the solution provided by the embodiment of the present application, it can be determined whether the above audio data is audio data that the wearable device can parse.
另外,如果预解析信息属于可穿戴设备能够解析的预设范围内,则在接收到播放上述音频数据的播放指令后,对音频数据进行解析播放,否则生成表示音频数据异常的提示信息,并在接收到用户针对上述提示信息输入的处理指令后,对上述音频数据进行上述处理指令指示的处理,也就是说针对可穿戴设备能够解析的音频数据,可穿戴设备可以对该音频数据直接进行解析并播放,针对可穿戴设备不能够解析音频数据,可穿戴设备并不是直接播放该音频设备,不会直接对音频数据进行解析,而是先对该音频数据进行处理,也就使得可穿戴设备播放音频数据时不会出现死机卡顿的情况,提高了用户的使用体验。In addition, if the pre-analysis information belongs to the preset range that the wearable device can analyze, after receiving the playback instruction to play the above audio data, analyze and play the audio data; otherwise, generate a prompt message indicating that the audio data is abnormal, and After receiving the processing instruction input by the user for the above prompt information, perform the processing indicated by the above processing instruction on the above audio data, that is to say, for the audio data that can be parsed by the wearable device, the wearable device can directly analyze the audio data and Play, for wearable devices that cannot parse audio data, wearable devices do not directly play the audio device, and do not directly analyze the audio data, but process the audio data first, which makes the wearable device play audio There will be no crash or freeze during data processing, which improves the user experience.
附图说明Description of drawings
图1为本申请实施例提供的一种电子设备的示意图;FIG. 1 is a schematic diagram of an electronic device provided in an embodiment of the present application;
图2为相关技术提供的一种音频数据处理的流程示意图;Fig. 2 is a schematic flow chart of audio data processing provided by the related art;
图3为本申请实施例提供的第一种音频数据处理方法的流程示意图;Fig. 3 is a schematic flow chart of the first audio data processing method provided by the embodiment of the present application;
图4为本申请实施例提供的第二种音频数据处理方法的流程示意图;FIG. 4 is a schematic flow diagram of a second audio data processing method provided by an embodiment of the present application;
图5为本申请实施例提供的第三种音频数据处理方法的流程示意图;FIG. 5 is a schematic flow diagram of a third audio data processing method provided by an embodiment of the present application;
图6为本申请实施例提供的第一种音频数据处理方法的结构示意图;FIG. 6 is a schematic structural diagram of the first audio data processing method provided by the embodiment of the present application;
图7为本申请实施例提供的第二种音频数据处理方法的结构示意图;FIG. 7 is a schematic structural diagram of a second audio data processing method provided by an embodiment of the present application;
图8为本申请实施例提供的一种预解析音频数据的流程示意图;FIG. 8 is a schematic flowchart of a pre-analysis of audio data provided by an embodiment of the present application;
图9为本申请实施例提供的一种音频数据转换的流程示意图;FIG. 9 is a schematic flowchart of an audio data conversion provided by an embodiment of the present application;
图10为本申请实施例提供的第四种音频数据处理方法的流程示意图。FIG. 10 is a schematic flowchart of a fourth audio data processing method provided by an embodiment of the present application.
具体实施方式Detailed ways
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一指令和第二指令是为了区分不同的用户指令,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first instruction and the second instruction are for distinguishing different user instructions, and their sequence is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplarily" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete manner.
本申请实施例可应用于平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、车载设备、智能汽车、机器人、智能眼镜、智能电视等电子设备中。The embodiments of the present application can be applied to tablet computers, personal computers (personal computers, PCs), personal digital assistants (personal digital assistants, PDAs), smart watches, netbooks, wearable electronic devices, and augmented reality technology (augmented reality, AR) devices , virtual reality (virtual reality, VR) equipment, vehicle equipment, smart cars, robots, smart glasses, smart TVs and other electronic devices.
如图1所示,图1为本申请实施例提供的一种电子设备的示意图,图1所示的电子设备可以包括处理器110、外部存取器接口1~N120、内部存储器121、通用串行总线(UniversalSerial Bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、按键190、马达191、指示器192、摄像头1~N 193、显示屏1~N194、以及用户标识模块(Subscriber Identity Module,SIM)卡接口1~N 195等。其中,传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、以及骨传导传感器180M等。As shown in Figure 1, Figure 1 is a schematic diagram of an electronic device provided by the embodiment of the present application. The electronic device shown in Figure 1 may include a processor 110, external access device interfaces 1~N120, internal memory 121, a universal serial Universal Serial Bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, Microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 1~N 193, display screen 1~N194, and subscriber identity module (Subscriber Identity Module, SIM) card interface 1~N 195 wait. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an environmental An optical sensor 180L, a bone conduction sensor 180M, and the like.
可以理解的是,本申请实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件、或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the illustrations, or combine certain components, or separate certain components, or arrange different components. The illustrated components may be realized in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(Application Processor,AP)、调制解调处理器(modem)、图形处理器(GraphicsProcessing Unit,GPU)、图像信号处理器(Image Signal Processor,ISP)、控制器、视频编解码器、数字信号处理器(Digital Signal Processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (Application Processor, AP), a modem processor (modem), a graphics processor (Graphics Processing Unit, GPU), an image signal Processor (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器110可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 can generate an operation control signal according to the instruction opcode and the timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(Inter-Integrated Circuit,I2C)接口、集成电路内置音频(Inter-Integrated CircuitSound,I2S)接口、脉冲编码调制(Pulse Code Modulation,PCM)接口、通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)接口、移动产业处理器接口(Mobile Industry Processor Interface,MIPI)、通用输入输出(General-PurposeInput/Output,GPIO)接口、以及用户标识模块(Subscriber Identity Module,SIM)接口。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (Inter-Integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-Integrated CircuitSound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a Universal Asynchronous Receiver (Universal Asynchronous Receiver) /Transmitter, UART) interface, Mobile Industry Processor Interface (MIPI), General-Purpose Input/Output (GPIO) interface, and Subscriber Identity Module (SIM) interface.
I2C接口是一种双向同步串行总线,包括一根串行数据线(Serial Data Line,SDA)和一根串行时钟线(Derail Clock Line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K、充电器,闪光灯、摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (Serial Data Line, SDA) and a serial clock line (Derail Clock Line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。音频模块170可以将获取到的下行音频流数据和上行音频流数据通过无线通信模块160传输到与电子设备无线连接的电子设备。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. The audio module 170 can transmit the acquired downlink audio stream data and uplink audio stream data to an electronic device wirelessly connected to the electronic device through the wireless communication module 160 .
在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙连接的电子设备获得下行音频流的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit the audio signal to the wireless communication module 160 through the UART interface, so as to realize the function of obtaining the downstream audio stream through the electronic device connected with Bluetooth.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(Camera Serial Interface,CSI)、以及显示屏串行接口(DisplaySerial Interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . The MIPI interface includes a camera serial interface (Camera Serial Interface, CSI), a display serial interface (DisplaySerial Interface, DSI), and the like. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在本申请另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
电子设备的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在第一电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。在一些实施例中,可以通过移动通信模块150实现两个电子设备之间的通话数据的传输,例如,作为被呼叫方设备时,可以获得来自呼叫方设备的下行音频流数据,以及可以向呼叫方设备传输上行音频流数据。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G applied on the first electronic device. In some embodiments, the mobile communication module 150 can be used to realize the transmission of call data between two electronic devices. The party device transmits uplink audio stream data.
无线通信模块160可以提供应用在电子设备上的包括WLAN(Wireless Local AreaNetworks,无线局域网)、BT((Bluetooth,蓝牙)、GNSS(Global Navigation SatelliteSystem,全球导航卫星系统)、FM(Frequency Modulation,调频)、NFC(Near FieldCommunication,近距离无线通信技术)、IR(infrared,红外技术)等无线通信的解决方案。The wireless communication module 160 can provide applications on electronic devices including WLAN (Wireless Local Area Networks, wireless local area network), BT ((Bluetooth, Bluetooth), GNSS (Global Navigation Satellite System, global navigation satellite system), FM (Frequency Modulation, frequency modulation) , NFC (Near Field Communication, short-range wireless communication technology), IR (infrared, infrared technology) and other wireless communication solutions.
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。在本申请的一个实施例中,电子设备可以通过无线通信模块160实现与另一电子设备的局域网络连接。无线通信技术可以包括全球移动通讯系统(Global System for Mobile Communications,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址接入(CodeDivision Multiple Access,CDMA)、宽带码分多址(Wideband Code Division MultipleAccess,WCDMA)、时分同步码分多址(Time-Division-Synchronous Code DivisionMultiple Access,TD-SCDMA),长期演进(Long Term Evolution,LTE)、BT、GNSS、WLAN、NFC、FM、和/或IR技术等。GNSS可以包括全球卫星定位系统(Global Positioning System,GPS)、全球导航卫星系统(Global Navigation Satellite System,GLONASS)、北斗卫星导航系统(Beidou Navigation Satellite System,BDS)、准天顶卫星系统(Quasi-ZenithSatellite System,QZSS)、和/或星基增强系统(Satellite Based Augmentation System,SBAS)等。In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. In an embodiment of the present application, the electronic device can realize a local area network connection with another electronic device through the wireless communication module 160 . Wireless communication technologies can include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), broadband code division multiple Wideband Code Division Multiple Access (WCDMA), Time-Division-Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. GNSS can include Global Positioning System (Global Positioning System, GPS), Global Navigation Satellite System (Global Navigation Satellite System, GLONASS), Beidou Satellite Navigation System (Beidou Navigation Satellite System, BDS), Quasi-Zenith Satellite System (Quasi-Zenith Satellite System) System, QZSS), and/or Satellite Based Augmentation System (Satellite Based Augmentation System, SBAS), etc.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-EmittingDiode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-MatrixOrganic Light Emitting Diode的,AMOLED)、柔性发光二极管(Flex Light-EmittingDiode,FLED)、MiniLED、MicroLED、Micro-OLED、以及量子点发光二极管(Quantum dotLight Emitting Diode,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diode (Organic Light-Emitting Diode, OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (Active-MatrixOrganic Light-Emitting Diode). AMOLED), flexible light-emitting diode (Flex Light-Emitting Diode, FLED), MiniLED, MicroLED, Micro-OLED, and quantum dot light-emitting diode (Quantum dotLight Emitting Diode, QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro 安全数码(SecureDigital Memory,SD)卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、视频、录音文件等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro Secure Digital (Secure Digital Memory, SD) card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save files such as music, video, recording files, etc. in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、以及至少一个功能所需的应用程序(比如声音播放功能、图像播放功能和录音功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如上行音频数据、下行音频数据和电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(Universal FlashStorage,UFS)等。处理器110通过运行存储在内部存储器121的指令和/或存储在设置于处理器110中的存储器的指令,执行电子设备的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the storage program area can store the operating system, and at least one application program required by a function (such as sound playing function, image playing function, recording function, etc.) and the like. The storage data area can store data created during use of the electronic device (such as uplink audio data, downlink audio data, and phonebook, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, Universal Flash Storage (UFS) and the like. The processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110 .
电子设备可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、以及应用处理器等实现通话冲突处理功能等。The electronic device can implement call conflict handling functions and the like through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过受话器170B听到呼叫方设备传输的语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device answers a phone call or voice message, the voice transmitted by the calling device can be heard through the receiver 170B.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C,实现上行音频流的采集。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 170C to make a sound through the human mouth, and input the sound signal into the microphone 170C to realize the collection of upstream audio stream.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。在一些实施例中,当用户点击按压显示屏194上的接听键时,可实现手动接听通话功能,当用户点击按压显示屏194上的挂断键时,可实现手动挂断通话功能。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . In some embodiments, when the user clicks and presses the answer button on the display screen 194, the function of manually answering the call can be realized, and when the user clicks and presses the hangup button on the display screen 194, the function of manually hanging up the call can be realized.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor 180K may transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through the display screen 194 . In some other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194 .
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。电子设备可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备中,不能和电子设备分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation with the electronic device. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device interacts with the network through the SIM card to realize functions such as calling and data communication. In some embodiments, the electronic device adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
为了便于理解本申请实施例提供的方案,首先对本申请的应用场景进行说明。In order to facilitate understanding of the solutions provided by the embodiments of the present application, the application scenarios of the present application are described first.
首先上述音频数据可以是用户从移动手机、笔记本电脑、平板电脑等设备中的软件应用传输到可穿戴设备中的音频数据,也可以是通过网络、云端下载到可穿戴设备中的音频数据,其中,上述软件应用可以是手表管理软件、音乐软件、社交软件等,上述音频数据可以是音乐数据、语音消息数据、语音播报数据等。First of all, the above-mentioned audio data can be the audio data transmitted by the user from the software application in the mobile phone, notebook computer, tablet computer, etc. , the above-mentioned software application may be watch management software, music software, social software, etc., and the above-mentioned audio data may be music data, voice message data, voice broadcast data, etc.
参见图2,为相关技术提供的一种音频数据处理的流程示意图,可以包括以下步骤:S201-S209。Referring to FIG. 2 , it is a schematic flow chart of audio data processing provided in the related art, which may include the following steps: S201-S209.
步骤S201:软件应用接收到用户输入的音频数据传输指令后,向可穿戴设备副核发送音频数据。Step S201: After receiving the audio data transmission instruction input by the user, the software application sends the audio data to the sub-core of the wearable device.
具体的,上述软件应用是安装于和可穿戴设备通信连接的电子设备中的,其中,上述电子设备可以是移动手机、平板电脑等,上述通信连接可以是蓝牙连接、无线连接等。Specifically, the above-mentioned software application is installed in an electronic device that communicates with the wearable device, wherein the above-mentioned electronic device can be a mobile phone, a tablet computer, etc., and the above-mentioned communication connection can be a Bluetooth connection, a wireless connection, etc.
步骤S202:可穿戴设备副核接收到软件应用发送的音频数据后,向可穿戴设备主核发送上述音频数据。Step S202: After receiving the audio data sent by the software application, the sub-core of the wearable device sends the audio data to the main core of the wearable device.
步骤S203:可穿戴设备主核使用第三方解析算法对上述音频数据进行预解析,得到并保存音频数据和预解析信息。Step S203: The main core of the wearable device uses a third-party parsing algorithm to pre-parse the above audio data, and obtain and save the audio data and pre-parse information.
具体的,上述步骤S201-步骤S203属于软件应用中的音频数据传输到可穿戴设备中的流程,当用户控制可穿戴设备播放上述音频数据时,可以执行步骤S204-步骤S206。Specifically, the above step S201-step S203 belongs to the process of transmitting the audio data in the software application to the wearable device. When the user controls the wearable device to play the above-mentioned audio data, step S204-step S206 can be executed.
步骤S204:可穿戴设备前端程序接收到用户输入的音频数据播放指令后,向可穿戴设备主核发送上述播放指令。Step S204: After receiving the audio data playback instruction input by the user, the front-end program of the wearable device sends the above playback instruction to the main core of the wearable device.
步骤S205:可穿戴设备主核接收到上述播放指令之后,读取存储的音频数据,并对上述音频数据进行预解析,得到预解析信息。Step S205: After receiving the playback instruction, the main core of the wearable device reads the stored audio data, and pre-analyzes the audio data to obtain pre-analysis information.
步骤S206:可穿戴设备主核将预解析信息和音频数据发送至可穿戴设备副核。Step S206: The main core of the wearable device sends the pre-analysis information and audio data to the sub-core of the wearable device.
步骤S207:可穿戴设备副核对上述预解析信息和音频数据进行进一步解析,以判断上述音频数据是否能够正常播放。Step S207: The sub-core of the wearable device further analyzes the above-mentioned pre-analysis information and audio data to determine whether the above-mentioned audio data can be played normally.
具体的,若上述音频数据能够正常播放,则执行步骤S209,否则执行步骤S208。Specifically, if the above audio data can be played normally, execute step S209, otherwise execute step S208.
步骤S208:可穿戴设备副核将表示音频数据无法播放的异常信息发送至可穿戴设备前端程序,以使得可穿戴设备前端程序基于上述异常信息在可穿戴设备UI中弹出用于提示用户上述音频数据无法正常播放的toast(干杯)提示。Step S208: The sub-core of the wearable device sends the abnormal information indicating that the audio data cannot be played to the front-end program of the wearable device, so that the front-end program of the wearable device pops up in the UI of the wearable device based on the above-mentioned abnormal information to remind the user of the above-mentioned audio data The toast (cheers) prompt that does not play properly.
步骤S209:可穿戴设备副核基于smartPA播放上述音频数据。Step S209: The sub-core of the wearable device plays the above audio data based on smartPA.
由于上述可穿戴设备只能对指定范围内的比特率、采样率和格式的音频数据进行解析,如果发送到上述可穿戴设备的音频数据的比特率、采样率和格式不属于指定范围,那么可穿戴设备无法对上述音频数据进行解析。Since the above-mentioned wearable device can only analyze the audio data of the bit rate, sampling rate and format within the specified range, if the bit rate, sampling rate and format of the audio data sent to the above-mentioned wearable device do not belong to the specified range, then the Wearable devices cannot parse the above audio data.
比如:若可穿戴设备能够使用与格式A对应的第三方解析算法对格式A的音频数据进行解析,以及能够使用与格式B对应的第三方解析算法对格式B的音频数据进行解析,但是若上述音频数据的格式为格式C,而可穿戴设备无法使用与格式C对应的第三方解析算法对格式C的音频数据进行解析,那么可能默认使用与格式A对应的第三方解析算法对上述音频数据进行解析,进而无法获得解析信息,由于无法获取解析信息,可穿戴设备主核可能会对上述音频数据进行重复解析,进而会导致可穿戴设备播放音频数据时出现死机卡顿的情况,影响用户的使用体验。For example: if the wearable device can use the third-party analysis algorithm corresponding to format A to analyze the audio data of format A, and can use the third-party analysis algorithm corresponding to format B to analyze the audio data of format B, but if the above The format of the audio data is format C, and the wearable device cannot use the third-party parsing algorithm corresponding to format C to parse the audio data of format C, then the third-party parsing algorithm corresponding to format A may be used by default to analyze the above audio data Analysis, and then the analysis information cannot be obtained. Since the analysis information cannot be obtained, the main core of the wearable device may repeatedly analyze the above audio data, which will cause the wearable device to crash and freeze when playing audio data, affecting the use of users. experience.
或者,若上述音频数据的外部格式为格式A,而内部格式为格式B,比如:上述音频数据实际的后缀名为格式B,但是用户将上述音频数据的后缀名修改为格式A,即格式A是上述音频数据的外部格式,格式B是上述音频数据的内部格式,可穿戴设备在接收到上述音频数据后,通过上述音频数据的外部格式确定上述音频数据的格式为格式A,而上述音频数据的真实格式是格式B,因为可穿戴设备确定的是格式A,所以可穿戴设备会使用格式A对应的第三方解析算法对上述音频数据进行解析,但是上述音频数据的真实格式是格式B,因此无法获得解析信息,由于无法获取解析信息,可穿戴设备可能会对上述音频数据进行重复解析,进而会导致可穿戴设备播放音频数据时出现死机卡顿的情况,影响用户的使用体验。Or, if the external format of the above audio data is format A, and the internal format is format B, for example: the actual suffix name of the above audio data is format B, but the user modifies the suffix name of the above audio data to format A, that is, format A is the external format of the above audio data, and format B is the internal format of the above audio data. After receiving the above audio data, the wearable device determines that the format of the above audio data is format A through the external format of the above audio data, and the above audio data The real format of the above audio data is format B, because the wearable device determines format A, so the wearable device will use the third-party parsing algorithm corresponding to format A to analyze the above audio data, but the real format of the above audio data is format B, so The analysis information cannot be obtained. Since the analysis information cannot be obtained, the wearable device may repeatedly analyze the above audio data, which will cause the wearable device to freeze when playing audio data, and affect the user experience.
现有相关技术为解决上述问题,安装在平板电脑、移动手机等电子设备中的软件应用的前端程序基于配置在可穿戴设备中的芯片的能力,会判断可穿戴设备能否解析上述音频数据,如果可以,则会将音频数据发送到可穿戴设备中,否则不需要将音频数据发送到可穿戴设备中。但是,随着上述软件应用的种类越来越多,发送到可穿戴设备中的音频数据的类型也就越多,无法保证每一软件应用的前端程序确定配置在可穿戴设备中的芯片的能力是准确的。In order to solve the above problems in the existing related technologies, the front-end program of the software application installed in electronic devices such as tablet computers and mobile phones will judge whether the wearable device can analyze the above audio data based on the capabilities of the chip configured in the wearable device. If possible, the audio data will be sent to the wearable device, otherwise there is no need to send the audio data to the wearable device. However, as the types of the above-mentioned software applications increase, the types of audio data sent to the wearable device will also increase, and it is impossible to guarantee that the front-end program of each software application can determine the capability of the chip configured in the wearable device. is accurate.
另外,只有当软件应用中的音频数据传输到可穿戴设备的过程中,软件应用中的前端程序才会判断可穿戴设备能否解析上述音频数据,若可穿戴设备从网络或云端下载音频数据,不会存在前端程序判断可穿戴设备能否解析上述音频数据的流程,进而也就无法保证音频数据为可穿戴设备能够解析的音频数据。In addition, only when the audio data in the software application is transmitted to the wearable device, the front-end program in the software application will judge whether the wearable device can parse the above audio data. If the wearable device downloads audio data from the network or the cloud, There will be no process for the front-end program to determine whether the wearable device can parse the above-mentioned audio data, and then there is no guarantee that the audio data can be parsed by the wearable device.
为了解决上述问题,本申请实施例提供了一种音频数据处理方法,参见图3,图3为本申请实施例提供的第一种音频数据处理方法的流程示意图,可以包括以下步骤:步骤S301-步骤S304。In order to solve the above problems, the embodiment of the present application provides a method for processing audio data, see FIG. 3 , which is a schematic flow chart of the first method for processing audio data provided by the embodiment of the present application, which may include the following steps: Step S301- Step S304.
步骤S301:在接收到音频数据后,对上述音频数据的数据头进行预解析,得到预解析信息。Step S301: After receiving the audio data, perform pre-analysis on the data header of the audio data to obtain pre-analysis information.
其中,上述预解析信息中包括:音频数据的比特率、音频数据的采样率、音频数据的格式。Wherein, the above-mentioned pre-analysis information includes: the bit rate of the audio data, the sampling rate of the audio data, and the format of the audio data.
首先,可穿戴设备可以从移动手机、笔记本电脑、平板电脑等设备中的软件应用接收音频数据,还可以接收从网络、云端上下载的音频数据。First of all, wearable devices can receive audio data from software applications in devices such as mobile phones, laptops, and tablets, and can also receive audio data downloaded from the Internet and the cloud.
具体的,因为可穿戴设备只能对指定范围内的比特率、采样率和格式的音频数据进行解析,因此在接收到音频数据后,首先对上述音频数据的数据头进行预解析,得到包括比特率、采样率和格式的预解析信息,在获取上述预解析信息后,便可以通过下文中的步骤确定可穿戴设备是否能够解析上述音频数据。Specifically, because the wearable device can only analyze the audio data of the bit rate, sampling rate and format within the specified range, after receiving the audio data, it first pre-analyzes the data header of the above audio data to obtain the Rate, sampling rate and format pre-analysis information, after obtaining the above pre-analysis information, you can determine whether the wearable device can parse the above audio data through the following steps.
本申请的一个实施例中,上述音频数据可以是音乐数据、语音消息数据、语音播报数据等,比如:当可穿戴设备接收到从云端下载的语音播报数据后,可以对上述语音播报数据的数据头进行预解析,得到预解析信息,或者当穿戴设备接收从移动设备中的音乐软件传输的音乐数据后,可以对上述音乐数据的数据头进行预解析,得到预解析信息。In an embodiment of the present application, the above-mentioned audio data can be music data, voice message data, voice broadcast data, etc., for example: after the wearable device receives the voice broadcast data downloaded from the cloud, it can report the data of the above-mentioned voice broadcast data header to obtain pre-analysis information, or when the wearable device receives the music data transmitted from the music software in the mobile device, it can pre-analyze the data header of the music data to obtain pre-analysis information.
本申请的一个实施例中,可穿戴设备在对音频数据进行预解析的过程中还包括以下步骤A。In one embodiment of the present application, the wearable device further includes the following step A in the process of pre-parsing the audio data.
步骤A:若对上述音频数据进行预解析的过程中确定上述音频数据的数据头不能够正常预解析,则删除上述音频数据。Step A: If it is determined during the pre-parsing process of the audio data that the data header of the audio data cannot be pre-parsed normally, then delete the audio data.
比如:上述音频数据是数据头发生损坏的音频数据、或者上述音频数据发送到可穿戴设备的过程中导致音频数据的数据头中的信息缺失,那么在可穿戴设备在对上述音频数据进行预解析的过程中确定无法正常的对数据头进行预解析,进而无法得到上述预解析信息,也就无法通过本申请实施例确定上述音频数据是否是可穿戴设备能够解析的音频数据,则可以删除上述音频数据。For example: the above audio data is audio data whose data header is damaged, or the information in the data header of the audio data is missing during the process of sending the above audio data to the wearable device, then the wearable device pre-parses the above audio data In the process of determining whether the data header cannot be pre-analyzed normally, and thus the above-mentioned pre-analysis information cannot be obtained, and it is impossible to determine whether the above-mentioned audio data is audio data that can be parsed by the wearable device through the embodiment of the application, the above-mentioned audio can be deleted. data.
由以上可见,若上述音频数据的数据头不能够正常预解析,则无法得到预解析信息,进而也就无法通过本申请实施例确定上述音频数据是否是可穿戴设备能够解析的音频数据,可以删除上述音频数据。It can be seen from the above that if the data header of the above-mentioned audio data cannot be pre-analyzed normally, the pre-analysis information cannot be obtained, and then it is impossible to determine whether the above-mentioned audio data is audio data that can be parsed by the wearable device through the embodiment of the application, and can be deleted the above audio data.
另外,上述音频数据的数据头可以包括:音频数据的格式,音频数据的采样率、音频数据的位深、音频数据的通道数量、音频数据的数据大小等,因此通过对音频数据的数据头进行预解析,容易得到音频数据的采样率和音频数据的格式。In addition, the data header of the above-mentioned audio data may include: the format of the audio data, the sampling rate of the audio data, the bit depth of the audio data, the number of channels of the audio data, the data size of the audio data, etc. Pre-parsing, it is easy to get the sampling rate of the audio data and the format of the audio data.
本申请的另一个实施例中,可以通过以下步骤B-步骤C获得上述预解析信息中的比特率。In another embodiment of the present application, the bit rate in the above pre-analysis information can be obtained through the following steps B-C.
步骤B:在接收到音频数据后,对上述音频数据的数据头进行预解析,得到上述音频数据的通道数量、位深。Step B: After receiving the audio data, pre-analyze the data header of the above audio data to obtain the number of channels and bit depth of the above audio data.
具体的,因为上述音频数据的数据头可以包括音频数据的通道数据和位深,所以对上述音频数据的数据头进行预解析,能够得到上述音频数据的通道数量、位深。Specifically, because the data header of the audio data may include channel data and bit depth of the audio data, the number of channels and bit depth of the audio data can be obtained by pre-parsing the data header of the audio data.
步骤C:计算采样率、通道数量与位深之积,得到上述音频数据的比特率。Step C: Calculate the product of the sampling rate, the number of channels and the bit depth to obtain the bit rate of the above audio data.
本申请的一个实施例中,若上述音频数据的采样率为44.1kHZ,通道数量为2,位深为8Bit,则可以计算计算采样率、通道数量与位深之积,得到的比特率为705.6KB/s。In one embodiment of the present application, if the sampling rate of the above-mentioned audio data is 44.1kHZ, the number of channels is 2, and the bit depth is 8Bit, then the product of the sampling rate, the number of channels and the bit depth can be calculated, and the obtained bit rate is 705.6 KB/s.
由以上可见,因为上述音频数据的比特率与音频数据的采样率、通道数量与位深相关,所以在对上述音频数据的数据头进行预解析,得到音频数据的采样率、通道数量与位深之后,便可以得到上述音频数据的比特率。It can be seen from the above that because the bit rate of the above audio data is related to the sampling rate, number of channels and bit depth of the audio data, the data header of the above audio data is pre-analyzed to obtain the sampling rate, number of channels and bit depth of the audio data After that, the bit rate of the above audio data can be obtained.
步骤S302:判断上述预解析信息是否属于上述可穿戴设备能够解析的预设范围内。Step S302: Determine whether the above-mentioned pre-analysis information falls within a preset range that the above-mentioned wearable device can analyze.
具体的,若上述预解析信息属于上述可穿戴设备能够解析的预设范围内,说明可穿戴设备能够对上述音频数据进行解析,因此可以执行步骤S303,若上述预解析信息不属于上述可穿戴设备能够解析的预设范围内,说明可穿戴设备可能无法对上述音频数据进行解析,因此可以执行步骤S304。Specifically, if the above-mentioned pre-analysis information belongs to the preset range that the above-mentioned wearable device can analyze, it means that the wearable device can analyze the above-mentioned audio data, so step S303 can be executed, if the above-mentioned pre-analysis information does not belong to the above-mentioned wearable device If it is within the preset range that can be parsed, it means that the wearable device may not be able to parse the audio data, so step S304 can be executed.
本申请的一个实施例中,上述步骤S302可以通过图4中的步骤302A-步骤S302B实现,详见后续实施例,这里暂不详述。In one embodiment of the present application, the above step S302 can be implemented through step 302A-step S302B in FIG. 4 , see the subsequent embodiments for details, and will not be described in detail here.
步骤S303:在接收到播放上述音频数据的播放指令后,对上述音频数据进行解析并播放。Step S303: After receiving a play instruction to play the above audio data, analyze and play the above audio data.
具体的,若上述预解析信息属于上述可穿戴设备能够解析的预设范围内,说明可穿戴设备能够对上述音频数据进行解析,因此在接收到播放上述音频数据的播放指令后,对上述音频数据进行解析并播放。Specifically, if the above-mentioned pre-analysis information falls within the preset range that the above-mentioned wearable device can analyze, it means that the wearable device can analyze the above-mentioned audio data, so after receiving the playback instruction to play the above-mentioned audio data, the above-mentioned audio data Parse and play.
本申请的一个实施例中,若上述预解析信息属于上述可穿戴设备能够解析的预设范围内,可穿戴设备前端程序在接收到播放上述音频数据的播放指令后,可穿戴设备前端程序将播放指令发送到可穿戴设备主核,可穿戴设备主核对上述音频数据进行解析,得到解析信息并将解析信息发送到可穿戴设备副核,可穿戴设备副核对上述解析信息进行进一步解析并播放上述音频设备。In one embodiment of the present application, if the above-mentioned pre-analysis information falls within the preset range that the above-mentioned wearable device can parse, after the front-end program of the wearable device receives the playback instruction to play the above-mentioned audio data, the front-end program of the wearable device will play The instruction is sent to the main core of the wearable device, and the main core of the wearable device analyzes the above audio data, obtains the analysis information and sends the analysis information to the sub-core of the wearable device, and the sub-core of the wearable device further analyzes the above analysis information and plays the above audio equipment.
步骤S304:生成表示音频数据异常的提示信息,并在接收到用户针对上述提示信息输入的处理指令后,对上述音频数据进行上述处理指令指示的处理。Step S304: Generate prompt information indicating that the audio data is abnormal, and perform processing indicated by the above processing instruction on the above audio data after receiving a processing instruction input by the user for the above prompt information.
具体的,若上述预解析信息不属于上述可穿戴设备能够解析的预设范围内,说明可穿戴设备无法对上述音频数据进行解析,因此可以生成表示音频数据异常的提示信息,以提示用户上述音频数据无法解析播放。Specifically, if the above-mentioned pre-analysis information does not belong to the preset range that the above-mentioned wearable device can analyze, it means that the wearable device cannot analyze the above-mentioned audio data, so it can generate a prompt message indicating that the audio data is abnormal to remind the user that the above-mentioned audio data Data cannot be parsed for playback.
另外,用户在得知上述提示信息之后,可以针对上述提示信息输入处理指令,可穿戴设备在接收到上述处理指令之后,可以对上述音频数据进行上述处理指令指示的处理,以使得可穿戴设备对上述音频设备进行处理之后,可穿戴设备能够对上述音频数据进行解析播放,进而可以解决可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析,保证了可穿戴设备播放音频数据时不会出现死机卡顿的情况。In addition, after learning the above prompt information, the user can input a processing instruction for the above prompt information, and after receiving the above processing instruction, the wearable device can perform the processing indicated by the above processing instruction on the above audio data, so that the wearable device can After the above-mentioned audio equipment is processed, the wearable device can analyze and play the above-mentioned audio data, which can solve the problem that the wearable device cannot always obtain the analysis result, and will repeat the analysis of the audio data, ensuring that the wearable device does not play the audio data. There will be crashes.
本申请的一个实施例中,上述步骤S304可以通过图5中的步骤304A-步骤S304B实现,详见后续实施例,这里暂不详述。In an embodiment of the present application, the above step S304 may be implemented through steps 304A-S304B in FIG. 5 , see the subsequent embodiments for details, and will not be described in detail here.
由以上可见,因为可穿戴设备只能对指定范围内的比特率、采样率和格式的音频数据进行解析、播放,所以可穿戴设备在接收到音频数据后,首先对音频数据的数据头进行预解析,得到包括比特率、采样率和格式的预解析信息,然后判断预解析信息是否属于可穿戴设备能够解析的预设范围内,若是,则说明可穿戴设备能够解析上述音频数据,否则说明可穿戴设备不能够解析上述音频数据,因此根据本申请实施例提供的方案,能够确定上述音频数据是否为可穿戴设备能够解析的音频数据。It can be seen from the above that because the wearable device can only analyze and play the audio data of the bit rate, sampling rate and format within the specified range, the wearable device first pre-configures the data header of the audio data after receiving the audio data. Analyze to obtain the pre-analysis information including bit rate, sampling rate and format, and then judge whether the pre-analysis information is within the preset range that the wearable device can parse. If so, it means that the wearable device can parse the above audio data; The wearable device cannot parse the above audio data. Therefore, according to the solution provided by the embodiment of the present application, it can be determined whether the above audio data is audio data that the wearable device can parse.
另外,如果预解析信息属于可穿戴设备能够解析的预设范围内,则在接收到播放上述音频数据的播放指令后,对音频数据进行解析播放,否则生成表示音频数据异常的提示信息,并在接收到用户针对上述提示信息输入的处理指令后,对上述音频数据进行上述处理指令指示的处理,也就是说针对可穿戴设备能够解析的音频数据,可穿戴设备可以对该音频数据直接进行解析并播放,针对可穿戴设备不能够解析音频数据,可穿戴设备并不是直接播放该音频设备,不会直接对音频数据进行解析,而是先对该音频数据进行处理,也就使得可穿戴设备播放音频数据时不会出现死机卡顿的情况,提高了用户的使用体验。In addition, if the pre-analysis information belongs to the preset range that the wearable device can analyze, after receiving the playback instruction to play the above audio data, analyze and play the audio data; otherwise, generate a prompt message indicating that the audio data is abnormal, and After receiving the processing instruction input by the user for the above prompt information, perform the processing indicated by the above processing instruction on the above audio data, that is to say, for the audio data that can be parsed by the wearable device, the wearable device can directly analyze the audio data and Play, for wearable devices that cannot parse audio data, wearable devices do not directly play the audio device, and do not directly analyze the audio data, but process the audio data first, which makes the wearable device play audio There will be no crash or freeze during data processing, which improves the user experience.
参见图4,图4为本申请实施例提供的第二种音频数据处理方法的流程示意图,与图3所示的实施例相比,上述步骤S302可以包括以下步骤:S302A-S302B。Referring to FIG. 4, FIG. 4 is a schematic flowchart of a second audio data processing method provided by the embodiment of the present application. Compared with the embodiment shown in FIG. 3, the above step S302 may include the following steps: S302A-S302B.
步骤S302A:判断上述预解析信息中的格式是否属于上述可穿戴设备能够解析的预设格式范围内。Step S302A: judging whether the format in the above-mentioned pre-analysis information falls within the range of preset formats that the above-mentioned wearable device can parse.
具体的,因为上述预解析信息中包括格式、采样率和比特率,所以判断预解析信息是否属于可穿戴设备能够解析的预设范围内,可以先判断上述预解析信息中的格式是否属于上述可穿戴设备能够解析的预设格式范围内,若上述预解析信息中的格式不属于预设格式范围内,则可以说明上述预解析信息不属于上述预设范围内,则可以执行上述步骤S304,否则可以执行步骤S302B。Specifically, because the above-mentioned pre-analysis information includes format, sampling rate and bit rate, so to judge whether the pre-analysis information belongs to the preset range that the wearable device can parse, you can first judge whether the format in the above-mentioned pre-analysis information belongs to the above-mentioned acceptable If the format in the above-mentioned pre-analysis information is not within the range of the preset format that can be parsed by the wearable device, it can be explained that the above-mentioned pre-analysis information does not belong to the above-mentioned preset range, and the above step S304 can be performed, otherwise Step S302B can be executed.
本申请的一个实施例中,上述预设格式范围内的格式都是可穿戴设备能够解析的格式,若第一可穿戴设备的能够解析的第一预设格式范围包括:MP3(Moving PictureExperts Group Audio Layer III,动态影像专家压缩标准音频层面3)格式、AAC(AdvancedAudio Coding,高级音频编码)格式和WAV(WaveForm,波形)格式,第一可穿戴设备对接收到的音频数据进行解析后,若得到的音频数据的格式为MP3格式,即上述格式属于上述第一可穿戴设备能够解析的第一预设格式范围内,可以执行上述步骤S304,若得到的音频数据的格式为FLAC格式,即上述格式不属于上述第一可穿戴设备能够解析的第一预设格式范围内,可以执行上述步骤S302B。In one embodiment of the present application, the formats within the range of the aforementioned preset formats are all formats that can be parsed by wearable devices. If the range of first preset formats that can be parsed by the first wearable device includes: MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) format, AAC (Advanced Audio Coding, advanced audio coding) format and WAV (WaveForm, waveform) format, after the first wearable device analyzes the received audio data, if The format of the audio data is MP3 format, that is, the above-mentioned format belongs to the range of the first preset format that can be parsed by the first wearable device, and the above-mentioned step S304 can be performed. If the format of the obtained audio data is in the FLAC format, that is, the above-mentioned format If it does not fall within the range of the first preset format that the first wearable device can parse, the above step S302B may be performed.
或者,若第二可穿戴设备的能够解析的第二预设格式范围包括:MP3格式、AAC格式、WAV格式、FLAC(Free Lossless Audio Code,无损音频压缩编码)格式和APE格式,第二可穿戴设备对接收到的音频数据进行解析后,若得到的音频数据的格式为WAV格式,即上述格式属于上述第二可穿戴设备能够解析的第二预设格式范围内,可以执行上述步骤S304,若得到的音频数据的格式为CDA格式,即上述格式不属于上述第二可穿戴设备能够解析的第二预设格式范围内,可以执行上述步骤S302B。Alternatively, if the range of second preset formats that can be parsed by the second wearable device includes: MP3 format, AAC format, WAV format, FLAC (Free Lossless Audio Code, lossless audio compression encoding) format and APE format, the second wearable device After the device parses the received audio data, if the format of the obtained audio data is WAV format, that is, the above format falls within the range of the second preset format that can be parsed by the second wearable device, the above step S304 can be executed, if The format of the obtained audio data is the CDA format, that is, the above-mentioned format does not belong to the range of the second preset format that the above-mentioned second wearable device can parse, and the above-mentioned step S302B can be performed.
步骤S302B:判断预解析信息中的比特率是否属于上述可穿戴设备能够解析的预设比特范围内且采样率是否属于上述可穿戴设备能够解析的预设采样范围内。Step S302B: Determine whether the bit rate in the pre-analysis information falls within the preset bit range that the wearable device can parse and whether the sampling rate falls within the preset sampling range that the wearable device can parse.
具体的,若上述预解析信息中的格式属于上述可穿戴设备能够解析的预设格式范围内,则可以继续判断预解析信息中的比特率是否属于上述可穿戴设备能够解析的预设比特范围内且采样率是否属于上述可穿戴设备能够解析的预设采样范围内,若上述格式属于上述预设格式范围内、上述比特率属于上述预设比特范围内且上述采样率属于上述预设采样范围内,则可以说明上述预解析信息属于上述可穿戴设备能够解析的预设范围内,因此可以执行步骤S303,若上述比特率不属于上述预设比特范围内但是上述采样率属于上述预设采样范围内,或者上述采样率不属于上述预设采样范围内但是上述比特率属于上述预设比特范围内、或者上述比特率不属于上述预设比特范围内并且上述采样率不属于上述预设采样范围内,都可以说明上述预解析信息不属于可穿戴设备能够解析的预设范围内,因此可以执行步骤S304。Specifically, if the format in the above-mentioned pre-analysis information falls within the range of the preset format that the above-mentioned wearable device can parse, it can continue to judge whether the bit rate in the pre-analysis information falls within the preset bit range that the above-mentioned wearable device can parse. And whether the sampling rate falls within the preset sampling range that the above-mentioned wearable device can resolve, if the above-mentioned format is within the above-mentioned preset format range, the above-mentioned bit rate is within the above-mentioned preset bit range, and the above-mentioned sampling rate is within the above-mentioned preset sampling range , it can be explained that the above-mentioned pre-analysis information belongs to the preset range that the above-mentioned wearable device can analyze, so step S303 can be executed, if the above-mentioned bit rate does not belong to the above-mentioned preset bit range but the above-mentioned sampling rate belongs to the above-mentioned preset sampling range , or the above-mentioned sampling rate does not belong to the above-mentioned preset sampling range but the above-mentioned bit rate falls within the above-mentioned preset bit range, or the above-mentioned bit rate does not belong to the above-mentioned preset bit range and the above-mentioned sampling rate does not belong to the above-mentioned preset sampling range, It can be explained that the above-mentioned pre-analysis information does not belong to the preset range that the wearable device can analyze, so step S304 can be executed.
本申请的一个实施例中,若音频数据的格式为MP3格式并且属于上述预设格式范围,则可以继续判断音频数据的比特率是否属于上述预设比特范围且音频数据的采样率是否属于上述预设采样范围。当音频数据的格式为MP3格式时,可穿戴设备能够解析的预设采样范围为:44.1kHZ和48kHZ ,可穿戴设备能够解析的预设比特范围为:比特率大于288KB/s,若可穿戴设备解析得到的比特率为300KB/s,采样率为48 kHZ,即比特率属于预设比特范围内且采样率属于预设采样范围内,则说明上述预解析信息属于上述预设范围内,则可以执行步骤S303,若可穿戴设备解析得到的比特率为200KB/s,采样率为44.1 kHZ,即采样率属于预设采样范围内但是比特率不属于预设比特范围内,则说明上述预解析信息不属于上述预设范围内,则可以执行步骤S304。In one embodiment of the present application, if the format of the audio data is MP3 format and belongs to the above-mentioned preset format range, it can continue to judge whether the bit rate of the audio data belongs to the above-mentioned preset bit range and whether the sampling rate of the audio data belongs to the above-mentioned preset range. Set the sampling range. When the format of the audio data is MP3 format, the preset sampling range that the wearable device can parse is: 44.1kHZ and 48kHZ, and the preset bit range that the wearable device can parse is: the bit rate is greater than 288KB/s, if the wearable device The bit rate obtained by analysis is 300KB/s, and the sampling rate is 48kHZ, that is, the bit rate is within the preset bit range and the sampling rate is within the preset sampling range, which means that the above pre-analysis information belongs to the above preset range, and then you can Execute step S303, if the bit rate analyzed by the wearable device is 200KB/s, and the sampling rate is 44.1 kHZ, that is, the sampling rate is within the preset sampling range but the bit rate is not within the preset bit range, it means that the above pre-analysis information If it does not belong to the above preset range, step S304 can be executed.
由以上可见,因为上述预解析信息中包括格式、采样率和比特率,所以可以先判断上述格式是否属于上述预设格式范围内,若不是则可以说明上述预解析信息不属于可穿戴设备能够解析的预设范围内,若是则可以继续判断上述采样率是否属于上述预设采样范围且上述比特率是否属于上述预设比特范围内,若是则可以说明上述预解析信息属于可穿戴设备能够解析的预设范围内,否则说明上述预解析信息不属于可穿戴设备能够解析的预设范围内,因此通过本申请实施例可以判断上述预解析信息是否属于可穿戴设备能够解析的预设范围内。It can be seen from the above that because the above-mentioned pre-analysis information includes format, sampling rate and bit rate, it can be judged whether the above-mentioned format belongs to the range of the above-mentioned preset format. If not, it can be explained that the above-mentioned pre-analysis information does not belong to wearable devices. If it is within the preset range, it can continue to judge whether the above-mentioned sampling rate belongs to the above-mentioned preset sampling range and whether the above-mentioned bit rate belongs to the above-mentioned preset bit range. Otherwise, it means that the above-mentioned pre-analysis information does not belong to the preset range that the wearable device can parse. Therefore, through the embodiment of the present application, it can be determined whether the above-mentioned pre-analysis information is within the preset range that the wearable device can parse.
参见图5,图5为本申请实施例提供的第三种音频数据处理方法的流程示意图,与图3所示的实施例相比,上述步骤S304可以包括以下步骤:步骤S304A-步骤S304B。Referring to FIG. 5, FIG. 5 is a schematic flowchart of a third audio data processing method provided by the embodiment of the present application. Compared with the embodiment shown in FIG. 3, the above step S304 may include the following steps: step S304A-step S304B.
步骤S304A:在接收到用户针对上述提示信息输入的表示删除上述音频数据的处理指令后,删除上述音频数据。Step S304A: After receiving a processing instruction indicating deletion of the audio data input by the user in response to the prompt information, delete the audio data.
具体的,可穿戴设备在接收到表示删除上述音频数据的处理指令后,可以删除上述音频数据,因为上述音频数据无法解析的音频数据,通过删除上述音频数据,不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况。Specifically, the wearable device can delete the above audio data after receiving the processing instruction indicating to delete the above audio data, because the above audio data cannot be parsed, by deleting the above audio data, the wearable device will not always be unable to obtain As a result of the parsing, the audio data will be repeatedly parsed, thereby ensuring that the wearable device does not freeze when playing audio data.
本申请的一个实施例中,可穿戴设备前端程序可以将表示音频数据异常的提示信息显示在可穿戴设备UI(User Interface,使用者界面)界面中,用户通过可穿戴设备UI界面中的提示信息得知音频数据异常,用户可以输入表示删除音频数据的处理指令,可穿戴设备在接收到表示删除音频数据的处理指令后,删除音频数据。In one embodiment of the present application, the front-end program of the wearable device can display the prompt information indicating that the audio data is abnormal in the UI (User Interface, user interface) interface of the wearable device, and the user can pass the prompt information in the UI interface of the wearable device Knowing that the audio data is abnormal, the user may input a processing instruction indicating to delete the audio data, and the wearable device deletes the audio data after receiving the processing instruction indicating to delete the audio data.
步骤S304B:在接收到用户针对上述提示信息输入的表示对上述音频数据进行格式转换的处理指令后,将上述音频数据转换为目标音频数据。Step S304B: after receiving a processing instruction input by the user in response to the prompt information indicating to convert the format of the audio data, convert the audio data into target audio data.
其中,上述目标音频数据的格式为:上述可穿戴设备能够解析的目标格式,上述目标格式为:音频数据的比特率属于预设比特范围内、音频数据的采样率属于预设采样范围内、音频数据的格式属于预设格式范围内。Wherein, the format of the above-mentioned target audio data is: the target format that the above-mentioned wearable device can parse, and the above-mentioned target format is: the bit rate of the audio data is within the preset bit range, the sampling rate of the audio data is within the preset sampling range, and the audio data is within the preset sampling range. The format of the data falls within the range of preset formats.
具体的,可穿戴设备在接收到表示对上述音频数据进行格式转换的处理指令后,可以将上述音频数据转换为目标音频数据,而上述目标音频数据的格式是可穿戴设备能够解析的目标格式,也就是说在将上述音频数据转换为目标音频数据之后,可穿戴设备可以对上述目标音频数据进行解析,因此不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况。Specifically, the wearable device may convert the above audio data into target audio data after receiving a processing instruction representing format conversion of the above audio data, and the format of the above target audio data is a target format that the wearable device can parse, That is to say, after the above audio data is converted into the target audio data, the wearable device can analyze the above target audio data, so there will be no behavior that the wearable device will always fail to obtain the analysis result and will repeatedly analyze the audio data , thus ensuring that the wearable device does not freeze when playing audio data.
本申请的一个实施例中,可穿戴设备前端程序可以将表示音频数据异常的提示信息显示在可穿戴设备UI界面中,用户通过可穿戴设备UI界面中的提示信息得知音频数据异常,用户可以输入表示对上述音频数据进行格式转换的处理指令,可穿戴设备在接收到表示对上述音频数据进行格式转换的处理指令后,将音频数据转换为目标音频数据。In one embodiment of the present application, the front-end program of the wearable device can display the prompt information indicating that the audio data is abnormal in the UI interface of the wearable device. Inputting a processing instruction representing format conversion of the above audio data, the wearable device converts the audio data into target audio data after receiving the processing instruction representing performing format conversion of the above audio data.
另外,针对不同的可穿戴设备能够解析的格式,可穿戴设备能够解析的预设采样范围和预设比特范围也不同,比如:预设格式范围包括:MP3格式、AAC格式和WAV格式,当将频数据的格式为MP3时,可穿戴设备能够解析的预设采样范围是:44.1kHZ和48kHZ,可穿戴设备能够解析的预设比特范围是:比特率大于288KB/s,当将音频数据的格式转换为MP3格式时,同时还要将音频数据的比特率转换为400KB/s,将音频数据的采样率转换为48kHZ,此时音频数据的比特率属于预设比特范围内、音频数据的采样率属于预设采样范围内、音频数据的格式属于预设格式范围内,即将音频数据成功转换为目标音频数据。In addition, for the formats that different wearable devices can parse, the preset sampling range and preset bit range that the wearable device can parse are also different. For example, the preset format range includes: MP3 format, AAC format and WAV format. When the When the format of the audio data is MP3, the preset sampling range that the wearable device can parse is: 44.1kHZ and 48kHZ, and the preset bit range that the wearable device can parse is: the bit rate is greater than 288KB/s, when the format of the audio data is When converting to MP3 format, at the same time, the bit rate of the audio data must be converted to 400KB/s, and the sampling rate of the audio data is converted to 48kHZ. Belongs to the preset sampling range, and the format of the audio data falls within the preset format range, that is, the audio data is successfully converted into the target audio data.
本申请的另一个实施例中,可以通过配置在可穿戴设备中的转换芯片将上述音频设备转换为目标音频设备,或者可以通过工作人员编写的转换代码将上述音频设备转换为目标音频设备、或者使用FFmpeg、lame或pydub等编码库,将上述音频设备转换为目标音频设备。In another embodiment of the present application, the above-mentioned audio device can be converted into the target audio device through the conversion chip configured in the wearable device, or the above-mentioned audio device can be converted into the target audio device through the conversion code written by the staff, or Use an encoding library such as FFmpeg, lame, or pydub to convert the above audio device to the target audio device.
其次,在将上述音频数据转换为上述可穿戴设备能够解析的目标音频数据的过程中,还包括以下步骤D-步骤E。Secondly, in the process of converting the above audio data into target audio data that can be parsed by the above wearable device, the following step D-step E is also included.
步骤D:判断是否能够成功将上述音频数据转换为目标音频数据。Step D: judging whether the above audio data can be successfully converted into target audio data.
具体的,因为目标音频数据是可穿戴设备能够解析音频数据,所以若能够成功将音频数据转换为目标音频数据,在接收到播放上述目标音频数据的播放指令后,可以对上述目标音频数据进行解析并播放,若无法成功将音频数据转换为目标音频数据,则可以执行步骤E。Specifically, because the target audio data is the audio data that can be parsed by the wearable device, if the audio data can be successfully converted into the target audio data, the above target audio data can be analyzed after receiving the playback instruction to play the above target audio data and play, if the audio data cannot be successfully converted into the target audio data, step E can be performed.
步骤E:删除上述音频数据。Step E: Delete the above audio data.
具体的,若无法成功将音频数据转换为目标音频数据,说明无法将上述音频数据转换为可穿戴设备能够解析的音频数据,因此可以删除上述音频数据。Specifically, if the audio data cannot be successfully converted into target audio data, it means that the above audio data cannot be converted into audio data that can be parsed by the wearable device, so the above audio data can be deleted.
若上述音频数据的数据头不能够正常预解析,则无法得到预解析信息,进而也就无法通过本申请实施例确定上述音频数据是否是可穿戴设备能够解析的音频数据,可以删除上述音频数据。另外,通过删除上述音频数据,不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况。If the data header of the above audio data cannot be pre-analyzed normally, the pre-analysis information cannot be obtained, and then it is impossible to determine whether the above audio data is audio data that can be parsed by the wearable device through the embodiment of the present application, and the above audio data can be deleted. In addition, by deleting the above audio data, there will be no behavior that the wearable device will always fail to obtain the analysis result and will repeatedly analyze the audio data, thereby ensuring that the wearable device will freeze when playing audio data.
由以上可见,针对可穿戴设备无法解析的音频数据,本申请实施例提供的方案可以在接收到用户输入的表示删除上述音频数据的处理指令后,删除上述音频数据,那么也就不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况,或者在接收到用户输入的表示对上述音频数据进行格式转换的处理指令后,将上述音频数据转换为目标音频数据,因为上述目标音频数据的格式是可穿戴设备能够解析的目标格式,也就是说将上述音频数据转换为目标音频数据后,可穿戴设备可以上述目标音频数据进行解析并播放,也就不会出现可穿戴设备始终无法获取解析结果,会对该音频数据进行重复解析的行为,进而保证了可穿戴设备播放音频数据时出现死机卡顿的情况。It can be seen from the above that for the audio data that cannot be parsed by the wearable device, the solution provided by the embodiment of the present application can delete the above-mentioned audio data after receiving the processing instruction input by the user indicating to delete the above-mentioned audio data, so that there will be no possible The wearable device can never obtain the analysis result, and it will repeat the analysis of the audio data, thereby ensuring that the wearable device will not freeze when playing the audio data, or format the above audio data after receiving the input from the user. After converting the processing instruction, convert the above audio data into the target audio data, because the format of the above target audio data is the target format that the wearable device can parse, that is to say, after converting the above audio data into the target audio data, the wearable device The above-mentioned target audio data can be analyzed and played, so that the wearable device will not be able to obtain the analysis result all the time, and will repeat the analysis of the audio data, thereby ensuring that the wearable device will freeze when playing audio data. Condition.
参见图6,为本申请实施例提供的第一种音频数据处理方法的结构示意图,在图6中,表示可穿戴设备应用业务框架的框架层包括系统基本能力,系统基本能力包括:通信服务和音频服务。其中,通信服务包括:消息服务、通话服务、联系人、互联互通,音频服务包括:音乐播放、音频管理、语音播报、语音服务、音乐控制,上述音频管理用于实现音频数据处理。Referring to FIG. 6, it is a schematic structural diagram of the first audio data processing method provided by the embodiment of the present application. In FIG. 6, the framework layer representing the application business framework of the wearable device includes the basic capabilities of the system, and the basic capabilities of the system include: communication services and audio service. Among them, the communication service includes: message service, call service, contacts, and interconnection, and the audio service includes: music playback, audio management, voice broadcast, voice service, and music control. The above-mentioned audio management is used to realize audio data processing.
参见图7,为本申请实施例提供的第二种音频数据处理方法的结构示意图,在图7中,包括应用层、框架层、蓝牙设备、数据处理,其中,上述框架层中包括音频管理,上述音频管理中包括:第三方解析算法模块和预处理模块,预处理模块中包括:预解析子模块和音频数据转换子模块。Referring to FIG. 7, it is a schematic structural diagram of a second audio data processing method provided by the embodiment of the present application. In FIG. 7, it includes an application layer, a framework layer, a Bluetooth device, and data processing, wherein the above-mentioned framework layer includes audio management, The above-mentioned audio management includes: a third-party analysis algorithm module and a preprocessing module, and the preprocessing module includes: a preanalysis submodule and an audio data conversion submodule.
具体的,蓝牙设备用于将音频数据传输到预解析子模块,预解析子模块用于判断可穿戴设备是否能够解析上述音频数据,若可以解析上述音频数据,则将上述音频数据发送至第三方解析算法模块,第三方解析算法模块对上述音频数据进行解析后,并将解析后的数据发送至数据处理以能够播放上述音频数据,若不可以解析上述音频数据,预处理模块向应用层发送表示音频数据异常的提示信息,然后应用层会将上述提示信息显示在可穿戴设备UI界面中,然后用户根据可穿戴设备UI界面中的提示信息,输入的表示删除上述音频数据的处理指令或者输入的表示对上述音频数据进行格式转换的处理指令,若用户输入的是输入的表示对上述音频数据进行格式转换的处理指令,上述音频数据转换子模块将上述音频数据转换为可穿戴设备能够解析的目标音频数据,若用户输入的表示删除上述音频数据的处理指令,则上述预处理模块会删除上述音频数据。Specifically, the Bluetooth device is used to transmit the audio data to the pre-analysis sub-module, and the pre-analysis sub-module is used to judge whether the wearable device can parse the above audio data, and if the above audio data can be parsed, then send the above audio data to a third party The parsing algorithm module, the third-party parsing algorithm module parses the above audio data, and sends the parsed data to data processing to be able to play the above audio data, if the above audio data cannot be parsed, the preprocessing module sends a representation to the application layer The prompt information of abnormal audio data, and then the application layer will display the above prompt information on the wearable device UI interface, and then according to the prompt information in the wearable device UI interface, the user enters a processing command indicating to delete the above audio data or enters Indicates a processing instruction for format conversion of the above audio data. If the user input is an input processing instruction representing format conversion of the above audio data, the audio data conversion sub-module converts the above audio data into a target that can be parsed by the wearable device For audio data, if the user inputs a processing instruction indicating to delete the above audio data, the above preprocessing module will delete the above audio data.
上述预解析子模块解析上述音频数据的流程可以由下文图8中的步骤S801-步骤S807实现,音频数据转换子模块转换音频数据的流程可以由下文图9中的步骤S901-步骤S904实现。The process of parsing the above audio data by the above-mentioned pre-analysis sub-module can be realized by steps S801-step S807 in FIG. 8 below, and the process of converting audio data by the audio data conversion sub-module can be realized by steps S901-step S904 in FIG. 9 below.
参见图8,图8为本申请实施例提供的一种预解析音频数据的流程示意图,可以包括以下步骤:步骤S801-步骤S807。Referring to FIG. 8 , FIG. 8 is a schematic flow chart of pre-parsing audio data provided by an embodiment of the present application, which may include the following steps: Step S801-Step S807.
步骤S801:在接收到音频数据后,对上述音频数据的数据头进行预解析,得到包括音频数据的格式、比特率和采样流程的预解析信息。Step S801: After receiving the audio data, pre-analyze the data header of the audio data to obtain pre-analysis information including audio data format, bit rate and sampling process.
步骤S802:判断预解析得到的预解析信息是否是正常信息。Step S802: judging whether the pre-analysis information obtained through pre-analysis is normal information.
具体的若上述预解析信息是正常信息,则执行步骤S804,否则执行步骤S803。Specifically, if the above pre-analysis information is normal information, execute step S804, otherwise execute step S803.
步骤S803:删除上述音频数据。Step S803: Delete the above audio data.
步骤S804:判断上述预解析信息中的格式是否属于上述可穿戴设备能够解析的预设格式范围内。Step S804: Determine whether the format in the above-mentioned pre-parsing information falls within the range of preset formats that the above-mentioned wearable device can parse.
具体的,若上述预解析信息中的格式属于上述可穿戴设备能够解析的预设格式范围内,则执行步骤S806,否则执行步骤S805。Specifically, if the format in the above-mentioned pre-analysis information falls within the range of preset formats that can be parsed by the above-mentioned wearable device, then step S806 is executed; otherwise, step S805 is executed.
步骤S805:生成表示音频数据异常的提示信息,在接收到用户针对提示信息输入的表示删除音频数据的处理指令后删除音频数据或在接收到用户针对提示信息输入的表示对音频数据进行格式转换的处理指令后,将音频数据转换为目标音频数据。Step S805: Generate prompt information indicating that the audio data is abnormal, delete the audio data after receiving a processing instruction input by the user for the prompt information indicating that the audio data is deleted or receive a format conversion for the audio data input by the user for the prompt information After processing the instruction, convert the audio data to target audio data.
步骤S806:判断预解析信息中的比特率是否属于可穿戴设备能够解析的预设比特范围内且采样率是否属于可穿戴设备能够解析的预设采样范围内。Step S806: Determine whether the bit rate in the pre-analysis information falls within the preset bit range that the wearable device can parse and whether the sampling rate falls within the preset sampling range that the wearable device can parse.
具体的,若上述比特率属于上述预设比特范围内且上述采样率属于上述预设采样范围内,则执行步骤S807,否则执行步骤S805。Specifically, if the above-mentioned bit rate belongs to the above-mentioned preset bit range and the above-mentioned sampling rate belongs to the above-mentioned preset sampling range, step S807 is executed; otherwise, step S805 is executed.
步骤S807:将上述音频数据发送至第三方解析算法模块,以使得第三方解析算法模块对上述音频数据进行解析。Step S807: Send the above-mentioned audio data to the third-party analysis algorithm module, so that the third-party analysis algorithm module can analyze the above-mentioned audio data.
具体的,上述步骤S801-步骤S807的具体实现上文中已经详述,这里不再赘述。Specifically, the specific implementation of the above step S801-step S807 has been described in detail above, and will not be repeated here.
参见图9,图9为本申请实施例提供的一种音频数据转换的流程示意图,可以包括以下步骤:步骤S901-步骤S904。Referring to FIG. 9 , FIG. 9 is a schematic flowchart of an audio data conversion provided by an embodiment of the present application, which may include the following steps: Step S901-Step S904.
步骤S901:在接收到用户针对上述提示信息输入的表示对上述音频数据进行格式转换的处理指令后,将上述音频数据转换为目标音频数据。Step S901: Convert the audio data into target audio data after receiving a processing instruction input by the user in response to the prompt information indicating to perform format conversion on the audio data.
其中,上述目标音频数据的格式为:上述可穿戴设备能够解析的目标格式,上述目标格式为:音频数据的比特率属于预设比特范围内、音频数据的采样率属于预设采样范围内、音频数据的格式属于预设格式范围内。Wherein, the format of the above-mentioned target audio data is: the target format that the above-mentioned wearable device can parse, and the above-mentioned target format is: the bit rate of the audio data is within the preset bit range, the sampling rate of the audio data is within the preset sampling range, and the audio data is within the preset sampling range. The format of the data falls within the range of preset formats.
步骤S902:判断是否能够成功将上述音频数据转换为目标音频数据。Step S902: judging whether the above audio data can be successfully converted into target audio data.
具体的,若能够成功将上述音频数据转换为目标音频数据,则执行步骤S903,否则执行步骤S904。Specifically, if the above audio data can be successfully converted into the target audio data, execute step S903, otherwise execute step S904.
步骤S903:将上述目标音频数据发送至第三方解析算法模块,以使得第三方解析算法模块对上述目标音频数据进行解析。Step S903: Send the above-mentioned target audio data to the third-party parsing algorithm module, so that the third-party parsing algorithm module can analyze the above-mentioned target audio data.
步骤S904:删除上述音频数据。Step S904: Delete the above audio data.
具体的,上述步骤S901-步骤S904的具体实现上文中已经详述,这里不再赘述。Specifically, the specific implementation of the above step S901 - step S904 has been described in detail above, and will not be repeated here.
参见图10,图10为本申请实施例提供的第四种音频数据处理方法的流程示意图,可以包括以下步骤:步骤S1001-步骤S1019。Referring to FIG. 10 , FIG. 10 is a schematic flowchart of a fourth audio data processing method provided by the embodiment of the present application, which may include the following steps: Step S1001-Step S1019.
步骤S1001:软件应用向可穿戴设备副核发送音频数据。Step S1001: the software application sends audio data to the sub-core of the wearable device.
步骤S1002:可穿戴设备副核将接收到的音频数据发送至可穿戴设备主核。Step S1002: the sub-core of the wearable device sends the received audio data to the main core of the wearable device.
步骤S1003:可穿戴设备主核将上述音频数据发送至预处理模块。Step S1003: The main core of the wearable device sends the above audio data to the preprocessing module.
步骤S1004:预处理模块对上述音频数据的数据头进行预解析,得到包括格式、采样率和比特率的预解析信息。Step S1004: The preprocessing module pre-analyzes the data header of the above audio data to obtain pre-analysis information including format, sampling rate and bit rate.
步骤S1005:预处理模块判断预解析得到的预解析信息是否是正常信息。Step S1005: the pre-processing module judges whether the pre-analysis information obtained by pre-analysis is normal information.
具体的若预解析得到的预解析信息是正常信息,则执行步骤S1008,否则执行步骤S1006-步骤S1007。Specifically, if the pre-analysis information obtained by the pre-analysis is normal information, execute step S1008; otherwise, execute steps S1006-step S1007.
步骤S1006:预处理模块向可穿戴设备前端程序发送表示音频数据损坏的异常信息。Step S1006: the preprocessing module sends the abnormal information indicating that the audio data is damaged to the front-end program of the wearable device.
步骤S1007:可穿戴设备前端程序将表示音频数据损坏的异常信息显示在可穿戴设备UI界面中,以提示用户音频数据已经损坏。Step S1007: The front-end program of the wearable device displays the abnormal information indicating that the audio data is damaged on the UI interface of the wearable device, so as to prompt the user that the audio data has been damaged.
步骤S1008:预处理模块判断预解析信息是否属于上述可穿戴设备能够解析的预设范围内。Step S1008: the pre-processing module judges whether the pre-analysis information falls within the preset range that the above-mentioned wearable device can analyze.
具体的,若预解析信息中的格式不属于预设格式范围内,则执行步骤S1009-步骤S1010;若预解析信息中的比特率不属于预设比特范围内和/或采样率不属于预设采样范围内,则执行步骤S1011-步骤S1012;若预解析信息属于可穿戴设备能够解析的预设范围内,则执行步骤S1013。Specifically, if the format in the pre-analysis information does not belong to the preset format range, then perform step S1009-step S1010; if the bit rate in the pre-analysis information does not belong to the preset bit range and/or the sampling rate does not belong to the preset If it is within the sampling range, execute step S1011-step S1012; if the pre-analysis information is within the preset range that the wearable device can analyze, execute step S1013.
步骤S1009:预处理模块向可穿戴设备前端程序发送表示音频数据格式异常的异常信息。Step S1009: the pre-processing module sends an exception message indicating that the format of the audio data is abnormal to the front-end program of the wearable device.
步骤S1010:可穿戴设备前端程序将表示音频数据格式异常的异常信息显示在可穿戴设备UI界面中,以提示用户音频数据的格式异常。Step S1010: The front-end program of the wearable device displays abnormal information indicating that the format of the audio data is abnormal on the UI interface of the wearable device, so as to prompt the user that the format of the audio data is abnormal.
步骤S1011:预处理模块向可穿戴设备前端程序发送表示音频数据的采样率和/或比特率异常的异常信息。Step S1011: the preprocessing module sends abnormal information indicating that the sampling rate and/or bit rate of the audio data is abnormal to the front-end program of the wearable device.
步骤S1012:可穿戴设备前端程序将表示音频采样率和/或比特率异常的异常信息显示在可穿戴设备UI界面中,以提示用户音频数据的采样率和/或比特率异常。Step S1012: The front-end program of the wearable device displays abnormal information indicating abnormal audio sampling rate and/or bit rate on the UI interface of the wearable device, so as to prompt the user that the sampling rate and/or bit rate of the audio data is abnormal.
步骤S1013:预处理模块将上述音频数据发送至可穿戴设备主核。Step S1013: the preprocessing module sends the above audio data to the main core of the wearable device.
步骤S1014:可穿戴设备主核使用第三方解析算法解析上述音频数据,得到并保存音频数据和预解析信息。Step S1014: The main core of the wearable device uses a third-party analysis algorithm to analyze the above audio data, and obtains and saves the audio data and pre-analysis information.
步骤S1015:可穿戴设备主核在接收到播放上述音频数据的播放指令后,读取存储的音频数据,并对上述音频数据进行预解析,得到预解析信息。Step S1015: After receiving the playback instruction to play the above audio data, the main core of the wearable device reads the stored audio data, and pre-analyzes the above audio data to obtain pre-analysis information.
步骤S1016:可穿戴设备主核将预解析信息和音频数据发送至可穿戴设备副核。Step S1016: The main core of the wearable device sends the pre-analysis information and audio data to the sub-core of the wearable device.
步骤S1017:可穿戴设备副核对上述预解析信息和音频数据进行进一步解析,以判断上述音频数据是否能够正常播放。Step S1017: The sub-core of the wearable device further analyzes the above-mentioned pre-analysis information and audio data to determine whether the above-mentioned audio data can be played normally.
具体的,若上述音频数据能够正常播放,则执行步骤S1019,否则执行步骤S1018。Specifically, if the above audio data can be played normally, execute step S1019, otherwise execute step S1018.
步骤S1018:可穿戴设备副核将表示音频数据无法播放的异常信息发送至可穿戴设备前端程序,以使得可穿戴设备前端程序基于上述异常信息在可穿戴设备UI中弹出用于提示用户上述音频数据无法正常播放的toast提示。Step S1018: The sub-core of the wearable device sends the abnormal information indicating that the audio data cannot be played to the front-end program of the wearable device, so that the front-end program of the wearable device pops up in the UI of the wearable device based on the above-mentioned abnormal information to remind the user of the above-mentioned audio data The toast prompt that cannot be played normally.
步骤S1019:可穿戴设备副核基于smartPA播放上述音频数据。Step S1019: The sub-core of the wearable device plays the above audio data based on smartPA.
具体的,上述步骤S1001-步骤S1017的具体实现上文中已经详述,这里不再赘述。Specifically, the specific implementation of the above step S1001-step S1017 has been described in detail above, and will not be repeated here.
具体实现中,本申请还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,其中,在上述程序运行时控制上述计算机可读存储介质所在设备执行上述实施例中的部分或全部步骤。上述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-onlymemory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。In a specific implementation, the present application also provides a computer storage medium, wherein the computer storage medium can store a program, wherein, when the above program is running, the device where the above computer-readable storage medium is located is controlled to execute part or all of the above-mentioned embodiments step. The storage medium mentioned above may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short), or a random access memory (English: random access memory, RAM for short), and the like.
具体实现中,本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包含可执行指令,当所述可执行指令在计算机上执行时,使得计算机执行上述方法实施例中的部分或全部步骤。In a specific implementation, an embodiment of the present application also provides a computer program product, the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or part of the above method embodiments. All steps.
本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程 系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。Various embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of the present application may be implemented as a computer program or program code executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device, and at least one output device.
可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(Digital Signal Processor,DSP)、微控制器、专用集成电路(Application Specific Integrated Circuit ,ASIC)或微处理器之类的处理器的任何系统。Program code can be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices in known manner. For the purposes of this application, a processing system includes any computer having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor. system.
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. Program code can also be implemented in assembly or machine language, if desired. In fact, the mechanisms described in this application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、光盘只读存储器(Compact Disc Read Only Memory,CD-ROMs)、磁光盘、只读存储器(Read OnlyMemory,ROM)、随机存取存储器(RAM)、可擦除可编程只读存储器(Erasable ProgrammableRead Only Memory ,EPROM)、电可擦除可编程只读存储器(Electrically ErasableProgrammable Read Only Memory ,EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如,计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be executed by one or more processors read and execute. For example, instructions may be distributed over a network or via other computer-readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, compact disks, compact disks, Compact Disc Read Only Memory , CD-ROMs), magneto-optical disk, read-only memory (Read Only Memory, ROM), random access memory (RAM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM), electrically erasable programmable Read-only memory (Electrically Erasable Programmable Read Only Memory, EEPROM), magnetic card or optical card, flash memory, or used to use the Internet to transmit information by means of electricity, light, sound or other forms of propagation signals (for example, carrier waves, infrared signals, digital signals, etc. ) of tangible machine-readable storage. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明书附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such specific arrangements and/or orderings may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the figures of the description. Additionally, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments these features may not be included or may be combined with other features.
需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module can be a physical unit/module, or a physical unit/module. A part of the module can also be realized with a combination of multiple physical units/modules, the physical implementation of these logical units/modules is not the most important, the combination of functions realized by these logical units/modules is the solution The key to the technical issues raised. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application, which does not mean that the above-mentioned device embodiments do not exist other units/modules.
需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and descriptions of this patent, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply There is no such actual relationship or order between these entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Although this application has been shown and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and details may be made therein without departing from this disclosure. The spirit and scope of the application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310042274.6A CN116013334B (en) | 2023-01-28 | 2023-01-28 | Audio data processing method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310042274.6A CN116013334B (en) | 2023-01-28 | 2023-01-28 | Audio data processing method, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116013334A CN116013334A (en) | 2023-04-25 |
CN116013334B true CN116013334B (en) | 2023-08-18 |
Family
ID=86024725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310042274.6A Active CN116013334B (en) | 2023-01-28 | 2023-01-28 | Audio data processing method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116013334B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102376333A (en) * | 2010-08-18 | 2012-03-14 | Tcl集团股份有限公司 | Multimedia playing terminal and method and device for playing multimedia files |
CN106384596A (en) * | 2016-09-22 | 2017-02-08 | 努比亚技术有限公司 | Audio data processing method and terminal |
CN111078930A (en) * | 2019-12-13 | 2020-04-28 | 集奥聚合(北京)人工智能科技有限公司 | Audio file data processing method and device |
CN111199743A (en) * | 2020-02-28 | 2020-05-26 | Oppo广东移动通信有限公司 | Audio coding format determining method and device, storage medium and electronic equipment |
CN113689864A (en) * | 2021-10-27 | 2021-11-23 | 北京百瑞互联技术有限公司 | Audio data processing method and device and storage medium |
CN114639392A (en) * | 2022-03-11 | 2022-06-17 | 深圳追一科技有限公司 | Audio processing method and device, electronic equipment and storage medium |
WO2022186470A1 (en) * | 2021-03-04 | 2022-09-09 | 삼성전자 주식회사 | Audio processing method and electronic device including same |
CN115394316A (en) * | 2022-08-23 | 2022-11-25 | 汉桑(南京)科技股份有限公司 | Audio processing method, system, device and storage medium |
-
2023
- 2023-01-28 CN CN202310042274.6A patent/CN116013334B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102376333A (en) * | 2010-08-18 | 2012-03-14 | Tcl集团股份有限公司 | Multimedia playing terminal and method and device for playing multimedia files |
CN106384596A (en) * | 2016-09-22 | 2017-02-08 | 努比亚技术有限公司 | Audio data processing method and terminal |
CN111078930A (en) * | 2019-12-13 | 2020-04-28 | 集奥聚合(北京)人工智能科技有限公司 | Audio file data processing method and device |
CN111199743A (en) * | 2020-02-28 | 2020-05-26 | Oppo广东移动通信有限公司 | Audio coding format determining method and device, storage medium and electronic equipment |
WO2022186470A1 (en) * | 2021-03-04 | 2022-09-09 | 삼성전자 주식회사 | Audio processing method and electronic device including same |
CN113689864A (en) * | 2021-10-27 | 2021-11-23 | 北京百瑞互联技术有限公司 | Audio data processing method and device and storage medium |
CN114639392A (en) * | 2022-03-11 | 2022-06-17 | 深圳追一科技有限公司 | Audio processing method and device, electronic equipment and storage medium |
CN115394316A (en) * | 2022-08-23 | 2022-11-25 | 汉桑(南京)科技股份有限公司 | Audio processing method, system, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116013334A (en) | 2023-04-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11922935B2 (en) | Voice interaction method and apparatus, terminal, and storage medium | |
CN111724775B (en) | Voice interaction method and electronic equipment | |
US11893359B2 (en) | Speech translation method and terminal when translated speech of two users are obtained at the same time | |
WO2022143258A1 (en) | Voice interaction processing method and related apparatus | |
CN111556479B (en) | Information sharing method and related device | |
CN113488042A (en) | Voice control method and electronic equipment | |
CN111031492B (en) | Call demand response method and device and electronic equipment | |
CN116795753A (en) | Audio data transmission processing method and electronic equipment | |
WO2021147678A1 (en) | Data transmission method and electronic device | |
CN116013334B (en) | Audio data processing method, electronic device and storage medium | |
WO2021135713A1 (en) | Text-to-voice processing method, terminal and server | |
CN112437341B (en) | Video stream processing method and electronic equipment | |
CN115002543B (en) | Video sharing method, electronic device and storage medium | |
CN114783452B (en) | Audio playing method, device and storage medium | |
CN110737765A (en) | Dialogue data processing method for multi-turn dialogue and related device | |
WO2022135254A1 (en) | Text editing method, electronic device and system | |
CN114828098B (en) | Data transmission method and electronic equipment | |
CN116033057A (en) | Method for synchronizing sound recordings based on distributed conversation, electronic equipment and readable storage medium | |
CN117133311B (en) | Audio scene recognition method and electronic device | |
CN116662990B (en) | Malicious application identification method, electronic device, storage medium and program product | |
CN116700852B (en) | Card display method, terminal, storage medium and program product | |
CN116719468B (en) | Interaction event processing method and device | |
CN116723079A (en) | Log grabbing method, electronic equipment and computer readable storage medium | |
CN114006969B (en) | Window starting method and electronic equipment | |
CN117081949A (en) | Information detection method and electronic equipment |
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 | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |