[go: up one dir, main page]

CN107871000A - Audio playing method, device, storage medium and electronic equipment - Google Patents

Audio playing method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107871000A
CN107871000A CN201711087223.6A CN201711087223A CN107871000A CN 107871000 A CN107871000 A CN 107871000A CN 201711087223 A CN201711087223 A CN 201711087223A CN 107871000 A CN107871000 A CN 107871000A
Authority
CN
China
Prior art keywords
history
audio
playing
target
playback
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711087223.6A
Other languages
Chinese (zh)
Other versions
CN107871000B (en
Inventor
王君龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711087223.6A priority Critical patent/CN107871000B/en
Publication of CN107871000A publication Critical patent/CN107871000A/en
Application granted granted Critical
Publication of CN107871000B publication Critical patent/CN107871000B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/06Electrically-operated educational appliances with both visual and audible presentation of the material to be studied
    • G09B5/065Combinations of audio and video presentations, e.g. videotapes, videodiscs, television systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Library & Information Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present application discloses a kind of audio frequency playing method, device, storage medium and electronic equipment.The audio frequency playing method, obtain first and treat a target image read, and obtain the history play parameter of corresponding with the target image voice data and voice data in historical time section, target broadcasting time corresponding to history play parameter determination is then based on, finally according to target broadcasting time playing audio-fequency data.The program can adjust the current play mode of the voice data according to the history broadcast information of voice data, improve the playing efficiency of audio and more intelligent, while reduce cost of manufacture.

Description

音频播放方法、装置、存储介质及电子设备Audio playing method, device, storage medium and electronic equipment

技术领域technical field

本申请涉及电子设备技术领域,尤其涉及一种音频播放方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic equipment, and in particular to an audio playback method, device, storage medium and electronic equipment.

背景技术Background technique

相关技术中,一般都采用在点读对象(如图书)上安装特定的芯片或者贴上特定的标签,通过设置对应的播放音源,在使用时触发芯片或标签播放该音源以实现点读功能。然而这样的点读方式操作繁琐,且芯片容易损坏,一旦芯片损坏将会导致音频的播放效率较差。In the related art, it is generally adopted to install a specific chip or affix a specific label on the point-reading object (such as a book), and by setting the corresponding playback sound source, the chip or the label is triggered to play the sound source to realize the point-reading function when in use. However, such point reading method is cumbersome to operate, and the chip is easily damaged. Once the chip is damaged, the audio playback efficiency will be poor.

发明内容Contents of the invention

本申请实施例提供一种音频播放方法、装置、存储介质及电子设备,可以提高了音频的播放效率。Embodiments of the present application provide an audio playback method, device, storage medium, and electronic equipment, which can improve audio playback efficiency.

第一方面,本申请实施例提供一种音频播放方法,应用于电子设备,所述方法包括:In the first aspect, the embodiment of the present application provides an audio playback method applied to an electronic device, and the method includes:

获取待点读的目标图像;Obtain the target image to be read;

获取所述目标图像对应的音频数据、以及所述音频数据在历史时间段内的历史播放参数;Acquiring audio data corresponding to the target image, and historical playback parameters of the audio data within a historical time period;

基于所述历史播放参数确定对应的目标播放次数;Determine the corresponding target number of times of playback based on the historical playback parameters;

根据所述目标播放次数重复播放所述音频数据。The audio data is played repeatedly according to the target play times.

第二方面,本申请实施例提供了一种音频播放装置,应用于电子设备,所述装置包括:In the second aspect, the embodiment of the present application provides an audio playback device, which is applied to electronic equipment, and the device includes:

第一获取模块,用于获取待点读的目标图像;The first acquisition module is used to acquire the target image to be read;

第二获取模块,用于获取所述目标图像对应的音频数据、以及所述音频数据在历史时间段内的历史播放参数;The second obtaining module is used to obtain the audio data corresponding to the target image and the historical playback parameters of the audio data within the historical time period;

确定模块,用于基于所述历史播放参数确定对应的目标播放次数;A determination module, configured to determine a corresponding target number of times of playback based on the historical playback parameters;

播放模块,用于根据所述目标播放次数重复播放所述音频数据。A playing module, configured to repeatedly play the audio data according to the target number of times of playing.

第三方面,本申请实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述的音频播放方法。In a third aspect, the embodiment of the present application further provides a storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are adapted to be loaded by a processor to execute the above-mentioned audio playing method.

第四方面,本申请实施例还提供了一种电子设备,包括处理器及存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据;处理器用于执行上述的音频播放方法。In a fourth aspect, the embodiment of the present application also provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, and the memory is used to store instructions and data; the processor is used to execute the above-mentioned Audio playback method.

本申请实施例公开了一种音频播放方法、装置、存储介质及电子设备该音频播放方法,首先获取待点读的目标图像对应的音频数据、以及音频数据在历史时间段内的历史播放参数,然后基于该历史播放参数确定对应的目标播放次数,最后根据目标播放次数播放音频数据。该方案可根据音频数据的历史播放信息调整该音频数据当前的播放模式,使得音频播放更加智能化,提升了所播音频的实用性。The embodiment of the present application discloses an audio playback method, device, storage medium and electronic equipment. The audio playback method first obtains the audio data corresponding to the target image to be clicked and the historical playback parameters of the audio data in the historical time period, Then determine the corresponding target playback times based on the historical playback parameters, and finally play the audio data according to the target playback times. The solution can adjust the current playing mode of the audio data according to the historical playing information of the audio data, making the audio playing more intelligent and improving the practicability of the played audio.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请实施例提供的音频播放方法的场景示意图。FIG. 1 is a schematic diagram of a scenario of an audio playback method provided by an embodiment of the present application.

图2是本申请实施例提供的音频播放方法的一种流程示意图。Fig. 2 is a schematic flowchart of an audio playing method provided by an embodiment of the present application.

图3是本申请实施例提供的音频播放方法的另一种流程示意图。Fig. 3 is another schematic flowchart of the audio playing method provided by the embodiment of the present application.

图4是本申请实施例提供的音频播放装置的一种结构示意图。Fig. 4 is a schematic structural diagram of an audio playback device provided by an embodiment of the present application.

图5是本申请实施例提供的音频播放装置的另一种结构示意图。Fig. 5 is another schematic structural diagram of an audio playback device provided by an embodiment of the present application.

图6是本申请实施例提供的音频播放装置的又一种结构示意图。Fig. 6 is another schematic structural diagram of an audio playback device provided by an embodiment of the present application.

图7是本申请实施例提供的音频播放装置的再一种结构示意图Fig. 7 is another schematic structural diagram of the audio playback device provided by the embodiment of the present application

图8是本申请实施例提供的电子设备的一种结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图9是本申请实施例提供的电子设备的另一种结构示意图。FIG. 9 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.

本申请实施例提供一种音频播放方法、装置、存储介质及电子设备。以下将分别进行详细说明。Embodiments of the present application provide an audio playback method, device, storage medium, and electronic equipment. The details will be described respectively below.

在一种实施方式中,电子设备可以先获取点读样本,点读样本可以是图片、照片或者编码等。其中,电子设备可以为移动终端,如手机、平板电脑、笔记本电脑等,本申请实施例对此不进行限定。In an implementation manner, the electronic device may acquire a point-to-read sample first, and the point-to-read sample may be a picture, a photo, or a code. Wherein, the electronic device may be a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, etc., which is not limited in this embodiment of the present application.

在获取到点读样本之后,电子设备可以获取多媒体样本,多媒体样本可以是音频文件或者视频文件等。然后,电子设备可以将获取到的点读样本和多媒体样本相关联。例如,电子设备将照片A和音频a关联,将照片B和音频b关联,将照片C和视频c关联。在将点读样本和多媒体样本关联之后,电子设备可以将这些样本数据保存在预设数据库中。After acquiring the point-to-read sample, the electronic device may acquire a multimedia sample, and the multimedia sample may be an audio file or a video file. Then, the electronic device can associate the obtained point-to-read sample with the multimedia sample. For example, the electronic device associates photo A with audio a, photo B with audio b, and photo C with video c. After associating the point-to-read sample with the multimedia sample, the electronic device can save the sample data in a preset database.

可以理解的是,在一些实施方式中,点读样本和多媒体样本之间可以是一一对应的关系,也可以是一对多的关系,或者多对一的关系等等,本实施例对此不做具体限定。It can be understood that, in some implementation manners, there may be a one-to-one relationship between point-to-read samples and multimedia samples, or a one-to-many relationship, or a many-to-one relationship. Not specifically limited.

在使用电子设备点读功能时,用户可以先使用移动电子设备拍摄一张照片或者从相册中选取一张照片或者扫描某个编码。用户拍摄得到的照片或者选取的照片或者扫描得到的编码就是需要进行点读的对象。在获取到需要进行点读的对象之后,电子设备可以在预设数据库中查找与该需要进行点读的对象匹配的照片或者编码。若在预设数据库中存在与该需要进行点读的对象匹配的照片或编码,那么电子设备就可以查找与之关联的多媒体文件,并播放该多媒体文件。When using the point-and-read function of the electronic device, the user can first use the mobile electronic device to take a photo or select a photo from the photo album or scan a certain code. The photos taken or selected by the user or the codes scanned by the user are the objects that need to be read. After acquiring the object that needs to be read, the electronic device can search a preset database for a photo or a code that matches the object that needs to be read. If there is a photo or code matching the object to be read in the preset database, the electronic device can search for the multimedia file associated therewith and play the multimedia file.

在一种实施方式中,例如点读样本为照片A,该照片中包含三段文字,每一段文字都关联了一段音频。那么,当用户拍摄得到的照片与预设数据库中的照片A匹配时,由于照片A中包含有三段文字,且每段文字均关联有对应的一段音频,那么用户可以通过具体选取照片A中的某段文字的方式,选择播放其对应的音频。或者,用户也可以不作具体的选择,那么电子设备可以顺序播放三段文字对应的音频。In one embodiment, for example, the point-to-read sample is photo A, which contains three paragraphs of text, and each paragraph of text is associated with a piece of audio. Then, when the photo taken by the user matches photo A in the preset database, since photo A contains three paragraphs of text, and each paragraph of text is associated with a corresponding piece of audio, the user can specifically select the Choose to play the corresponding audio in the way of a certain text. Alternatively, the user may not make a specific selection, then the electronic device may sequentially play the audio corresponding to the three paragraphs of text.

比如,参考图1,用户使用电子设备拍摄得到一张照片X,电子设备在预设数据库中查找到与照片X匹配的为照片A。照片A中包含三段文字,其中第一段文字关联音频甲,第二段文字关联音频乙,第三段文字关联音频丙。例如,如图1所示,用户在屏幕上圈选了第二段文字所在的区域,那么电子设备可以对应播放音频乙。For example, referring to FIG. 1 , the user obtains a photo X by using an electronic device, and the electronic device finds a photo A that matches the photo X in a preset database. Photo A contains three paragraphs of text, the first paragraph of text is associated with Audio A, the second paragraph of text is associated with Audio B, and the third paragraph of text is associated with Audio C. For example, as shown in FIG. 1 , the user circles the area where the second paragraph of text is located on the screen, and the electronic device can play audio B correspondingly.

可以理解的是,本实施例可以在电子设备上实现对某一对象(如照片)中的文本进行点读的功能,这种方式具有成本低、便捷性好等有益效果。It can be understood that this embodiment can realize the function of point-reading the text in a certain object (such as a photo) on the electronic device, and this method has beneficial effects such as low cost and good convenience.

然而在实际使用电子设备的点读功能学习时,针对一个较难理解的词汇或语句需要重复下发播放指令以执行音频播放,其操作繁琐,导致音频的播放效率较差。However, when using the point-to-read function of the electronic device to learn, it is necessary to repeatedly issue playback instructions to perform audio playback for a vocabulary or sentence that is difficult to understand. The operation is cumbersome, resulting in poor audio playback efficiency.

在一实施例中,提供一种音频播放方法,应用于电子设备,该电子设备可以为智能手机、平板电脑、笔记本电脑等移动终端。如图2所示,流程可以如下:In one embodiment, an audio playing method is provided, which is applied to an electronic device, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or a notebook computer. As shown in Figure 2, the process can be as follows:

101、获取待点读的目标图像。101. Acquire a target image to be read.

本实施例中获取待处理的目标图像的方式可以有多种,比如,可以通过电子设备的摄像头或者其他外接摄像头扫描书本、拍摄书本等方式获取待点读的目标图像;又比如,可以从电子设备的本地存储区域、或者云端存储的图像库中直接获取目标图像。In this embodiment, there are many ways to obtain the target image to be processed. For example, the target image to be read can be obtained by scanning a book or taking a picture of a book through a camera of an electronic device or other external cameras; The target image is directly obtained from the local storage area of the device or the image library stored in the cloud.

其中,目标图像具体可以是文字图像,该文字图像可包括中文、英文或其他国文字。本申请实施例中,对文字的类型(包括国别和版本)不作限定。Wherein, the target image may specifically be a text image, and the text image may include Chinese, English or other national characters. In the embodiment of the present application, there is no limitation on the type of characters (including country and version).

102、获取目标图像对应的音频数据、以及该音频数据在历史时间段内的历史播放参数。102. Acquire audio data corresponding to the target image, and historical playback parameters of the audio data within a historical time period.

在本申请实施例中,需预先建立映射关系数据库,该映射关系数据库中可包括多个音频数据、多个样本图像、以及音频数据库与样本图像之间的映射关系。从而使得在获取到目标图像时,可将该目标图像与样本图像进行匹配,若匹配成功,则从该映射关系数据库获取到对应的音频数据。In the embodiment of the present application, a mapping relationship database needs to be established in advance, and the mapping relationship database may include a plurality of audio data, a plurality of sample images, and a mapping relationship between the audio database and the sample images. Therefore, when the target image is obtained, the target image can be matched with the sample image, and if the matching is successful, the corresponding audio data can be obtained from the mapping relationship database.

在一些实施例中,可以对电子设备中音频数据的播放信息进行记录,如播放播放的时间点、播放时长、播放进度等等。基于音频数据的播放记录,对历史时间段内的播放记录进行统计、计算得出对应的播放参数,以作在该历史时间段内的历史播放参数。In some embodiments, the playing information of the audio data in the electronic device may be recorded, such as the playing time point, playing duration, playing progress and so on. Based on the playback records of the audio data, the playback records in the historical time period are counted and the corresponding playback parameters are calculated to be used as the historical playback parameters in the historical time period.

103、基于历史播放参数确定对应的目标播放次数。103. Determine a corresponding target number of times of playing based on the historical playing parameters.

本申请实施例中,不同的播放次数所对应的历史播放参数也是不相同的。在一些实施例中,可以通过历史播放参数确定音频数据的播放频繁程度。鉴于大多数情况下,用户是采用该电子设备的点读功能进行语文字学习的,因此播放频繁程度越高,则可表示此音频数据的播放需求量越大。因此,播放频繁程度越高,也即意味着对应的目标播放次数也越多。In the embodiment of the present application, the historical playback parameters corresponding to different playback times are also different. In some embodiments, the playing frequency of audio data can be determined through historical playing parameters. In view of the fact that in most cases, the user uses the point-to-read function of the electronic device to learn Chinese and characters, the higher the frequency of playing, the greater the demand for playing the audio data. Therefore, the higher the playing frequency, the more corresponding target playing times.

104、根据目标播放次数重复播放该音频数据。104. Repeatedly play the audio data according to the target play times.

具体地,在确定好对应的目标播放次数后,按照该目标播放次数自动播放该音频数据。比如,目标播放次数为3次,则自动重复播放3次该音频数据。Specifically, after the corresponding target playing times are determined, the audio data is automatically played according to the target playing times. For example, if the target playback times is 3 times, the audio data will be played repeatedly 3 times automatically.

由上可知,本申请是实施例提供的音频播放方法,通过获取目标图像对应的音频数据、以及音频数据在历史时间段内的历史播放参数,然后基于该历史播放参数确定对应的目标播放次数,最后根据目标播放次数播放音频数据。该方案可根据音频数据的历史播放信息调整该音频数据当前的播放模式,提高了音频的播放效率、且更加智能化,同时还提升了所播音频的实用性,降低了制作成本。It can be seen from the above that this application is an audio playback method provided by the embodiment. By obtaining the audio data corresponding to the target image and the historical playback parameters of the audio data in the historical time period, and then determining the corresponding target playback times based on the historical playback parameters, Finally, the audio data is played according to the target play times. The solution can adjust the current playback mode of the audio data according to the historical playback information of the audio data, which improves the playback efficiency of the audio and is more intelligent, and also improves the practicability of the broadcast audio and reduces the production cost.

在一实施例中,还提供另一种音频播放方法,应用于电子设备,该电子设备可以为智能手机、平板电脑、笔记本电脑等移动终端。如图3所示,流程可以如下:In an embodiment, another audio playing method is provided, which is applied to an electronic device, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or a notebook computer. As shown in Figure 3, the process can be as follows:

201、构建映射关系数据库,该映射关系数据库中可包括多个音频数据、多个样本图像、以及音频数据库与样本图像之间的映射关系。201. Build a mapping relationship database, where the mapping relationship database may include a plurality of audio data, a plurality of sample images, and a mapping relationship between the audio database and the sample images.

具体地,首先需采集大量的样本图像,比如可以采用电子设备的摄像头对目标点读对象(如书籍)进行拍摄,以获取点读所需要的样本图像。其中,该样本图像可包括有文字信息,当然,还可以包括图案、表格等其他信息。Specifically, firstly, a large number of sample images need to be collected. For example, a camera of an electronic device may be used to shoot a target reading object (such as a book) to obtain sample images required for point reading. Wherein, the sample image may include text information, and of course, may also include patterns, tables and other information.

202、获取待点读的目标图像。202. Acquire the target image to be read.

本实施例中获取待处理的目标图像的方式可以有多种,比如,可以通过电子设备的摄像头或者其他外接摄像头扫描书本、拍摄书本等方式获取待点读的目标图像。In this embodiment, there are many ways to obtain the target image to be processed. For example, the target image to be read can be obtained by scanning the book or taking pictures of the book through the camera of the electronic device or other external cameras.

203、获取目标图像对应的音频数据、以及音频数据在历史时间段内的历史播放参数,该历史播放参数包括历史播放频率和历史播放次数。203. Acquire audio data corresponding to the target image, and historical playback parameters of the audio data within a historical time period, where the historical playback parameters include historical playback frequency and historical playback times.

具体地,可将目标图像与样本图像进行匹配,若匹配成功,则从该映射关系数据库获取到对应的音频数据。也即,步骤“获取目标图像对应的音频数据”可以包括以下流程:Specifically, the target image can be matched with the sample image, and if the matching is successful, the corresponding audio data can be obtained from the mapping relationship database. That is, the step "obtaining audio data corresponding to the target image" may include the following procedures:

获取所述目标图像对应的音频数据的步骤,包括:The step of obtaining the audio data corresponding to the target image includes:

从映射关系数据库中获取与目标图像匹配的目标样本图像;Obtaining a target sample image matched with the target image from a mapping relational database;

根据该映射关系,获取与目标样本图像对应的音频数据。According to the mapping relationship, audio data corresponding to the target sample image is acquired.

在一些实施例中,可以对电子设备中音频数据的播放信息进行记录,如播放播放的时间点、播放时长、播放进度等等。通过对历史时间段内的播放记录进行统计、计算可得出每一音频数据的历史播放次数和历史播放频率。In some embodiments, the playing information of the audio data in the electronic device may be recorded, such as the playing time point, playing duration, playing progress and so on. The historical playback times and historical playback frequency of each audio data can be obtained by making statistics and calculations on the playback records in the historical time period.

具体实施时,可根据用户使用电子设备点读功能的行为习惯,选取恰当的历史时间段进行音频数据播放记录的分析。比如,假设用户每天都会使用电子设备点读功能,则可获取各音频数据最近一周的播放记录,并进行分析处理;若用户是每周都使用一次电子设备的点读功能,则可获取各音频数据最近一个月的播放记录,并进行分析处理。During specific implementation, an appropriate historical time period can be selected for analysis of audio data playback records according to the user's behavior habit of using the point-and-read function of the electronic device. For example, assuming that the user uses the point-to-read function of the electronic device every day, the playback record of each audio data in the last week can be obtained and analyzed; The playback record of the data in the last month is analyzed and processed.

204、根据历史播放频率和历史播放次数获取对应的参数值。204. Acquire corresponding parameter values according to the historical playback frequency and the historical playback times.

在一些实施例中,步骤“根据历史播放频率和历史播放次数获取对应的参数值”可以包括以下流程:In some embodiments, the step of "obtaining corresponding parameter values according to historical playback frequency and historical playback times" may include the following process:

获取历史播放频率和历史播放次数对应的加权信息;Obtain weighted information corresponding to historical playback frequency and historical playback times;

根据加权信息对历史播放频率和历史播放次数进行加权处理,计算得到加权值;Perform weighting processing on the historical playback frequency and the historical playback times according to the weighted information, and calculate the weighted value;

根据加权值获取对应的参数值。Obtain the corresponding parameter value according to the weighted value.

其中,对历史播放频率和历史播放次数进行加权处理是为了计算出较为合理的历史播放数据。实际应用中,鉴于用户使用点读功能最直观地感受便是音频的点播次数,因此可对播放次数设置较高的权重值,对播放频率设置较低的权重值。比如,播放次数设置的权重值为80%,播放频率设置的权重值为20%。假设播放次数为m、播放频率为n,则所计算得到的加权值为:80%m+20%n。最终所计算得到的加权值仅仅是一个数据,不具有物理意义。Among them, the weighting process on the historical playback frequency and the historical playback times is to calculate more reasonable historical playback data. In practical applications, since the most intuitive experience of the user using the point-to-read function is the number of audio on-demand, a higher weight value can be set for the playback frequency, and a lower weight value can be set for the playback frequency. For example, the weight value of the playback frequency setting is 80%, and the weight value of the playback frequency setting is 20%. Assuming that the number of playing times is m and the playing frequency is n, the calculated weighted value is: 80%m+20%n. The finally calculated weighted value is only a data and has no physical meaning.

在一些实施例中,可以直接将该加权值作为最终的参数值。In some embodiments, the weighted value may be directly used as the final parameter value.

205、确定参数值所落入的参数值区间,并获取与该参数值区间对应的播放次数,以作为目标播放次数。205. Determine the parameter value range in which the parameter value falls, and acquire the play times corresponding to the parameter value range as the target play times.

在本申请实施例中,不同的参数值区间对已预设对应了不同的音频播放次数。具体实施时,可将参数值区间大致划分为3~5个档次区间。假设点击一次目标图像时其所播放音频数据正常的播放次数为1次,则可将参数值区间划分为3个档次,第一区间(正常播放的区间)对应播放次数为1次,第二区间(参数值较高)对应播放次数为3次,第三区间(参数值再高)对应播放次数为6次。In the embodiment of the present application, different parameter value interval pairs have been preset to correspond to different audio playback times. During specific implementation, the parameter value range can be roughly divided into 3 to 5 grade ranges. Assuming that when the target image is clicked once, the normal playback frequency of the audio data played is 1 time, then the parameter value range can be divided into 3 grades, the first range (the normal playback range) corresponds to 1 playback time, and the second range (Higher parameter value) corresponds to 3 playback times, and the third interval (higher parameter value) corresponds to 6 playback times.

在一些实施例中,可以对历史播放频繁程度较高(可表示学习难度较高)的音频数据增加播放次数,对历史播放频繁程度较低(表示难度较低或无难度)的音频数据减少播放次数。比如,假设点击一次目标图像时其所播放音频数据正常的播放次数为1次,则可将参数值区间划分为3个档次,第一区间(参数值较低)对应播放次数为1次,第二区间(正常播放的区间)对应播放次数为3次,第三区间(参数值较高)对应播放次数为6次。In some embodiments, it is possible to increase the number of playbacks for audio data with a higher frequency of historical playback (which may indicate higher learning difficulty), and to reduce the number of playbacks for audio data with a lower frequency of historical playback (indicating less difficulty or no difficulty). frequency. For example, assuming that when the target image is clicked once, the normal playback times of the audio data played is 1 time, then the parameter value interval can be divided into 3 grades, the first interval (lower parameter value) corresponds to 1 playback times, and the second The second section (normal playback section) corresponds to 3 times of playback, and the third section (higher parameter value) corresponds to 6 times of playback.

206、根据目标播放次数重复播放该音频数据。206. Repeatedly play the audio data according to the target play times.

具体地,在确定好对应的目标播放次数后,按照该目标播放次数自动播放该音频数据。比如,目标播放次数为3次,则自动重复播放3次该音频数据。Specifically, after the corresponding target playing times are determined, the audio data is automatically played according to the target playing times. For example, if the target playback times is 3 times, the audio data will be played repeatedly 3 times automatically.

207、获取该音频播放数据的当前播放信息。207. Acquire current playing information of the audio playing data.

具体地,将本次播放信息进行记录存档,并在结束播放之后反馈至处理器执行数据的处理。Specifically, the playing information of this time is recorded and archived, and fed back to the processor to perform data processing after the playing is finished.

208、根据该播放信息对历史播放参数进行调整,以更新历史播放参数。208. Adjust the historical playback parameters according to the playback information, so as to update the historical playback parameters.

具体地,将此播放信息加入至上述历史播放参数中进行迭代更新,使得下一次的点播时所播音频数据的次数更加准确、更加智能,更加符合用户使用习惯。Specifically, this playback information is added to the above-mentioned historical playback parameters for iterative update, so that the number of audio data played during the next on-demand broadcast is more accurate, smarter, and more in line with the user's usage habits.

在一些实施例中,可以对各点读对象(如各图像)的点播量进行统计,若在预设时间段内点播某一点读对象的次数超过预设次数,则自动将该点读对象划分至“难点集合”。后续再点播该点读对象时,可连续多次自动播放该点读对象对应的音频数据(如正常情况下扫描点读对象是默认播放一次音频,而扫描到“难点集合中”的点读对象则会重复播放多次其对应的音频数据)。若在连续多次播放该点读对象对应的音频数据的过程中,检测到针对该音频数据的播放中断操作,则将该点读对象从“难点集合”中移除,以恢复正常的播放模式。In some embodiments, statistics can be made on the amount of on-demand of each point-to-read object (such as each image). If the number of times that a certain point-to-read object is played within a preset time period exceeds the preset number of times, the point-to-read object is automatically divided into Go to "Difficulty Collection". When the point-to-read object is subsequently ordered, the audio data corresponding to the point-to-read object can be automatically played multiple times in a row (for example, under normal circumstances, the audio data is played once by default when scanning the point-to-read object, and the point-to-read object scanned into the "difficult collection" will repeatedly play its corresponding audio data multiple times). If in the process of playing the audio data corresponding to the point-reading object multiple times in a row, it is detected that the playback interruption operation for the audio data is removed, the point-reading object is removed from the "difficult point collection" to restore the normal playback mode .

由上可知,本申请实施例提供的音频播放方法,通过获取目标图像对应的音频数据、以及音频数据在历史时间段内的历史播放参数,然后基于该历史播放参数确定对应的目标播放次数,最后根据目标播放次数播放音频数据。该方案可根据音频数据的历史播放信息调整该音频数据当前的播放模式,提高了音频的播放效率、且更加智能化,同时还提升了所播音频的实用性,降低了制作成本。As can be seen from the above, the audio playback method provided by the embodiment of the present application obtains the audio data corresponding to the target image and the historical playback parameters of the audio data in the historical time period, and then determines the corresponding target playback times based on the historical playback parameters, and finally The audio data is played according to the target play count. The solution can adjust the current playback mode of the audio data according to the historical playback information of the audio data, which improves the playback efficiency of the audio and is more intelligent, and also improves the practicability of the broadcast audio and reduces the production cost.

在本申请又一实施例中,还提供一种音频播放装置,该音频播放装置可以软件或硬件的形式集成在电子设备中,该电子设备具体可以包括手机、平板电脑、笔记本电脑等设备。如图4所示,该音频播放装置30可以包括第一获取模块31、第二获取模块32、确定模块33以及播放模块34,其中:In yet another embodiment of the present application, an audio playback device is also provided. The audio playback device can be integrated in an electronic device in the form of software or hardware, and the electronic device can specifically include a mobile phone, a tablet computer, a notebook computer, and the like. As shown in Figure 4, the audio playback device 30 may include a first acquisition module 31, a second acquisition module 32, a determination module 33 and a playback module 34, wherein:

第一获取模块31,用于获取待点读的目标图像;The first obtaining module 31 is used to obtain the target image to be read;

第二获取模块32,用于获取该目标图像对应的音频数据、以及该音频数据在历史时间段内的历史播放参数;The second obtaining module 32 is used to obtain the audio data corresponding to the target image and the historical playback parameters of the audio data in the historical time period;

确定模块33,用于基于该历史播放参数确定对应的目标播放次数;Determining module 33, for determining the corresponding target number of times of playing based on the historical playing parameters;

播放模块34,用于根据该目标播放次数重复播放该音频数据。The playing module 34 is configured to repeatedly play the audio data according to the target playing times.

在一些实施例中,参考图5,该历史播放参数包括历史播放频率和历史播放次数;该确定模块33包括:In some embodiments, with reference to Fig. 5, the historical playback parameters include historical playback frequency and historical playback times; the determination module 33 includes:

参数获取子模块331,用于根据该历史播放频率和历史播放次数获取对应的参数值;The parameter acquisition sub-module 331 is used to obtain corresponding parameter values according to the historical playback frequency and the historical playback times;

确定子模块332,用于确定该参数值所落入的参数值区间;A determination sub-module 332, configured to determine the parameter value interval in which the parameter value falls;

次数获取子模块333,用于获取与该参数值区间对应的播放次数,以作为该目标播放次数。The number of times acquisition sub-module 333 is used to acquire the number of times of playing corresponding to the parameter value range as the target number of times of playing.

在一些实施例中,该参数获取子模块331具体可以用于:In some embodiments, the parameter acquisition submodule 331 can be specifically used for:

获取该历史播放频率和历史播放次数对应的加权信息;Obtain the weighted information corresponding to the historical playback frequency and the historical playback times;

根据该加权信息对该历史播放频率和历史播放次数进行加权处理,计算得到加权值;performing weighting processing on the historical playback frequency and the historical playback times according to the weighted information, and calculating a weighted value;

根据该加权值获取对应的参数值。The corresponding parameter value is obtained according to the weighted value.

在一些实施例中,参考图6,该音频播放装置30还可以包括:In some embodiments, referring to FIG. 6, the audio playback device 30 may also include:

检测模块35,用于在播放该音频数据的过程中,检测是否接收到针对该音频数据的播放中断指令;The detection module 35 is used to detect whether a playback interruption instruction for the audio data is received during the process of playing the audio data;

处理模块36,用于在接收到播放终端指令时,根据该播放中断指令停止播放该音频数据,并对该音频数据对应的历史播放参数初始化。The processing module 36 is configured to stop playing the audio data according to the playback interruption instruction when receiving the playback terminal instruction, and initialize historical playback parameters corresponding to the audio data.

在一些实施例中,参考图7,该音频播放装置30还可以包括:In some embodiments, referring to FIG. 7, the audio playback device 30 may also include:

第三获取模块37,用于在该音频数据播放完之后,获取该音频播放数据的当前播放信息;The third obtaining module 37 is used to obtain the current play information of the audio play data after the audio data has been played;

调整模块38,用于根据该播放信息对该历史播放参数进行调整,以更新该历史播放参数。An adjustment module 38, configured to adjust the historical playback parameters according to the playback information, so as to update the historical playback parameters.

由上可知,本申请实施例提供的音频播放装置,通过获取目标图像对应的音频数据、以及音频数据在历史时间段内的历史播放参数,然后基于该历史播放参数确定对应的目标播放次数,最后根据目标播放次数播放音频数据。该方案可根据音频数据的历史播放信息调整该音频数据当前的播放模式,提高了音频的播放效率、且更加智能化,同时还提升了所播音频的实用性,降低了制作成本。It can be seen from the above that the audio playback device provided by the embodiment of the present application obtains the audio data corresponding to the target image and the historical playback parameters of the audio data in the historical time period, and then determines the corresponding target playback times based on the historical playback parameters, and finally The audio data is played according to the target play count. The solution can adjust the current playback mode of the audio data according to the historical playback information of the audio data, which improves the playback efficiency of the audio and is more intelligent, and also improves the practicability of the broadcast audio and reduces the production cost.

在本申请又一实施例中还提供一种电子设备,该电子设备可以是智能手机、平板电脑等设备。如图8所示,电子设备400包括处理器401及存储器402。其中,处理器401与存储器402电性连接。In yet another embodiment of the present application, an electronic device is also provided, and the electronic device may be a smart phone, a tablet computer, or the like. As shown in FIG. 8 , an electronic device 400 includes a processor 401 and a memory 402 . Wherein, the processor 401 is electrically connected with the memory 402 .

处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的应用,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or loading applications stored in the memory 402 and calling data stored in the memory 402, the electronic device executes Various functions and processing data, so as to monitor the electronic equipment as a whole.

在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用,从而实现各种功能:In this embodiment, the processor 401 in the electronic device 400 will follow the steps below to load the instructions corresponding to the process of one or more applications into the memory 402, and run them by the processor 401 and store them in the memory 402. applications to achieve various functions:

获取待点读的目标图像;Obtain the target image to be read;

获取该目标图像对应的音频数据、以及该音频数据在历史时间段内的历史播放参数;Obtain the audio data corresponding to the target image, and the historical playback parameters of the audio data in the historical time period;

基于该历史播放参数确定对应的目标播放次数;Determine the corresponding target play times based on the historical play parameters;

根据该目标播放次数重复播放该音频数据。The audio data is played repeatedly according to the target play times.

在一些实施例中,该历史播放参数包括历史播放频率和历史播放次数。In some embodiments, the historical playback parameters include historical playback frequency and historical playback times.

处理器401进一步可以用于执行以下步骤:The processor 401 can further be used to perform the following steps:

根据该历史播放频率和历史播放次数获取对应的参数值;Obtain corresponding parameter values according to the historical playback frequency and historical playback times;

确定该参数值所落入的参数值区间;Determine the parameter value interval in which the parameter value falls;

获取与该参数值区间对应的播放次数,以作为该目标播放次数。Obtain the playback times corresponding to the parameter value range as the target playback times.

在一些实施例中,处理器401进一步可以用于执行以下步骤:In some embodiments, the processor 401 may be further configured to perform the following steps:

获取该历史播放频率和历史播放次数对应的加权信息;Obtain the weighted information corresponding to the historical playback frequency and the historical playback times;

根据该加权信息对该历史播放频率和历史播放次数进行加权处理,计算得到加权值;performing weighting processing on the historical playback frequency and the historical playback times according to the weighted information, and calculating a weighted value;

根据该加权值获取对应的参数值。The corresponding parameter value is obtained according to the weighted value.

在一些实施例中,处理器401进一步还可以用于执行以下步骤:In some embodiments, the processor 401 may further be configured to perform the following steps:

检测是否接收到针对该音频数据的播放中断指令;Detect whether a playback interruption instruction for the audio data is received;

若是,则根据该播放中断指令停止播放该音频数据,并对该音频数据对应的历史播放参数初始化。If so, stop playing the audio data according to the playback interruption instruction, and initialize historical playback parameters corresponding to the audio data.

在一些实施例中,处理器401进一步还可以用于执行以下步骤:In some embodiments, the processor 401 may further be configured to perform the following steps:

获取该音频播放数据的当前播放信息;Obtain the current playback information of the audio playback data;

根据该播放信息对该历史播放参数进行调整,以更新该历史播放参数。The historical playback parameters are adjusted according to the playback information to update the historical playback parameters.

在一些实施例中,处理器401进一步还可以用于执行以下步骤:In some embodiments, the processor 401 may further be configured to perform the following steps:

构建映射关系数据库,其中,该映射关系数据库包括:多个音频数据、多个样本图像、以及该音频数据库与该样本图像之间的映射关系;Constructing a mapping relationship database, wherein the mapping relationship database includes: a plurality of audio data, a plurality of sample images, and a mapping relationship between the audio database and the sample image;

从该映射关系数据库中获取与该目标图像匹配的目标样本图像;Obtaining a target sample image matching the target image from the mapping relational database;

根据该映射关系,获取与该目标样本图像对应的音频数据。According to the mapping relationship, audio data corresponding to the target sample image is acquired.

存储器402可用于存储应用和数据。存储器402存储的应用中包含有可在处理器中执行的指令。应用可以组成各种功能模块。处理器401通过运行存储在存储器402的应用,从而执行各种功能应用以及数据处理。Memory 402 may be used to store applications and data. The applications stored in the memory 402 include instructions executable by the processor. Applications can be composed of various functional modules. The processor 401 executes various functional applications and data processing by executing the applications stored in the memory 402 .

在一些实施例中,如图9所示,电子设备400还包括:显示屏403、控制电路404、射频电路405、输入单元406、音频电路407、传感器408以及电源409。其中,处理器401分别与显示屏403、控制电路404、射频电路405、输入单元406、音频电路407、传感器408以及电源409电性连接。In some embodiments, as shown in FIG. 9 , the electronic device 400 further includes: a display screen 403 , a control circuit 404 , a radio frequency circuit 405 , an input unit 406 , an audio circuit 407 , a sensor 408 and a power supply 409 . Wherein, the processor 401 is electrically connected to the display screen 403 , the control circuit 404 , the radio frequency circuit 405 , the input unit 406 , the audio circuit 407 , the sensor 408 and the power supply 409 .

显示屏403可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 403 can be used to display information input by or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of images, texts, icons, videos and any combination thereof.

控制电路404与显示屏403电性连接,用于控制显示屏403显示信息。The control circuit 404 is electrically connected to the display screen 403 for controlling the display screen 403 to display information.

射频电路405用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 405 is used to send and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to send and receive signals with network equipment or other electronic equipment.

输入单元406可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元406可以包括指纹识别模组。The input unit 406 can be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Wherein, the input unit 406 may include a fingerprint identification module.

音频电路407可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker or a microphone.

传感器408用于采集外部环境信息。传感器408可以包括环境亮度传感器、加速度传感器、光传感器、运动传感器、以及其他传感器。The sensor 408 is used to collect external environment information. Sensors 408 may include ambient brightness sensors, acceleration sensors, light sensors, motion sensors, and other sensors.

电源409用于给电子设备400的各个部件供电。在一些实施例中,电源409可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 409 is used to supply power to various components of the electronic device 400 . In some embodiments, the power supply 409 may be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management may be implemented through the power management system.

尽管图9中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 9 , the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be repeated here.

由上可知,本申请实施例提供的电子设备,通过获取目标图像对应的音频数据、以及音频数据在历史时间段内的历史播放参数,然后基于该历史播放参数确定对应的目标播放次数,最后根据目标播放次数播放音频数据。该方案可根据音频数据的历史播放信息调整该音频数据当前的播放模式,提高了音频的播放效率、且更加智能化,同时还提升了所播音频的实用性。It can be seen from the above that the electronic device provided by the embodiment of the present application obtains the audio data corresponding to the target image and the historical playback parameters of the audio data in the historical time period, and then determines the corresponding target playback times based on the historical playback parameters, and finally according to The audio data is played back by the target number of plays. The solution can adjust the current playing mode of the audio data according to the historical playing information of the audio data, improves the playing efficiency of the audio, is more intelligent, and also improves the practicability of the played audio.

在一些实施例中,还提供了一种存储介质,该存储介质中存储有多条指令,该指令适于由处理器加载以执行上述任一音频播放方法。In some embodiments, there is also provided a storage medium, in which a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to execute any one of the above audio playing methods.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), disk or CD, etc.

在描述本申请的概念的过程中使用了术语“一”和“所述”以及类似的词语(尤其是在所附的权利要求书中),应该将这些术语解释为既涵盖单数又涵盖复数。此外,除非本文中另有说明,否则在本文中叙述数值范围时仅仅是通过快捷方法来指代属于相关范围的每个独立的值,而每个独立的值都并入本说明书中,就像这些值在本文中单独进行了陈述一样。另外,除非本文中另有指明或上下文有明确的相反提示,否则本文中所述的所有方法的步骤都可以按任何适当次序加以执行。本申请的改变并不限于描述的步骤顺序。除非另外主张,否则使用本文中所提供的任何以及所有实例或示例性语言(例如,“例如”)都仅仅为了更好地说明本申请的概念,而并非对本申请的概念的范围加以限制。在不脱离精神和范围的情况下,所属领域的技术人员将易于明白多种修改和适应。Where the terms "a" and "the" and similar words are used in describing the concepts of the application (particularly in the appended claims), these terms should be construed to cover both the singular and the plural. Moreover, unless otherwise indicated herein, recitation of ranges of values herein is merely a shorthand method of referring to each separate value falling within the associated range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if These values are as stated individually in this article. Additionally, the steps of all methods described herein can be performed in any suitable order unless otherwise indicated herein or unless otherwise clearly indicated by context. Variations of the application are not limited to the order of steps described. The use of any and all examples, or exemplary language (eg, "such as") provided herein, is intended merely to better illuminate the concepts of the application and does not pose a limitation on the scope of the concepts of the application unless otherwise claimed. Various modifications and adaptations will be readily apparent to those skilled in the art without departing from the spirit and scope.

以上对本申请实施例所提供的音频播放方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The audio playback method, device, storage medium and electronic equipment provided by the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only for To help understand the method and its core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. In summary, the content of this specification does not It should be understood as a limitation on the present application.

Claims (12)

1. a kind of audio frequency playing method, applied to electronic equipment, it is characterised in that methods described includes:
Obtain and treat a target image read;
Obtain the history of voice data and the voice data corresponding to the target image in historical time section and play ginseng Number;
Based on target broadcasting time corresponding to history play parameter determination;
The voice data is repeated playing according to the target broadcasting time.
2. audio frequency playing method as claimed in claim 1, it is characterised in that the history play parameter includes history and plays frequency Rate and history broadcasting time;
Based on the history play parameter determine corresponding to target broadcasting time the step of, including:
The parameter value according to corresponding to obtaining the history broadcasting frequency and history broadcasting time;
Determine the parameter value section that the parameter value is fallen into;
Broadcasting time corresponding with the parameter value section is obtained, to be used as the target broadcasting time.
3. audio frequency playing method as claimed in claim 2, it is characterised in that played according to the history broadcasting frequency and history Corresponding to number acquisition the step of parameter value, including:
Obtain weighted information corresponding to the history broadcasting frequency and history broadcasting time;
Processing is weighted to the history broadcasting frequency and history broadcasting time according to the weighted information, weighting is calculated Value;
The parameter value according to corresponding to obtaining the weighted value.
4. audio frequency playing method as claimed in claim 1, it is characterised in that during playing audio data, institute Stating method also includes:
Detect whether to receive the broadcasting interrupt instruction for the voice data;
If so, playing audio data is then stopped according to the broadcasting interrupt instruction, and to being gone through corresponding to the voice data History play parameter initializes.
5. audio frequency playing method as claimed in claim 1, it is characterised in that described after the voice data plays Method also includes:
Obtain the currently playing information of the audio played data;
The history play parameter is adjusted according to the broadcast information, to update the history play parameter.
6. audio frequency playing method as claimed in claim 1, it is characterised in that before the target image for treating to read is obtained, institute Stating method also includes:
Mapping relations database is built, wherein, the mapping relations database includes:Multiple voice datas, multiple sample images, And the mapping relations between the audio database and the sample image;
The step of obtaining voice data corresponding to the target image, including:
The target sample image matched with the target image is obtained from the mapping relations database;
According to the mapping relations, voice data corresponding with the target sample image is obtained.
7. a kind of audio playing apparatus, it is characterised in that described device includes:
First acquisition module, a target image read is treated for obtaining;
Second acquisition module, for obtaining voice data corresponding to the target image and the voice data in history Between history play parameter in section;
Determining module, for based on target broadcasting time corresponding to history play parameter determination;
Playing module, for repeating playing the voice data according to the target broadcasting time.
8. audio playing apparatus as claimed in claim 7, it is characterised in that the history play parameter includes history and plays frequency Rate and history broadcasting time;The determining module includes:
Parameter acquiring submodule, for the parameter value according to corresponding to the history broadcasting frequency and the acquisition of history broadcasting time;
Determination sub-module, the parameter value section fallen into for determining the parameter value;
Number acquisition submodule, for obtaining broadcasting time corresponding with the parameter value section, to be played as the target Number.
9. audio playing apparatus as claimed in claim 7, it is characterised in that described device also includes:
Detection module, for during playing audio data, detecting whether to receive for the voice data Play interrupt instruction;
Processing module, for when receiving playback terminal instruction, stopping playing the audio according to the broadcasting interrupt instruction Data, and history play parameter corresponding to the voice data is initialized.
10. audio playing apparatus as claimed in claim 7, it is characterised in that described device also includes:
3rd acquisition module, after being played in the voice data, obtain the currently playing of the audio played data Information;
Adjusting module, for being adjusted according to the broadcast information to the history play parameter, broadcast with updating the history Put parameter.
A kind of 11. storage medium, it is characterised in that be stored with a plurality of instruction in the storage medium, the instruction be suitable to by Reason device is loaded to perform the audio frequency playing method as any one of claim 1-6.
12. a kind of electronic equipment, it is characterised in that including processor and memory, the processor and the memory are electrical Connection, the memory are used for store instruction and data;The processor is used to perform as any one of claim 1-6 Audio frequency playing method.
CN201711087223.6A 2017-11-07 2017-11-07 Audio playback method, device, storage medium and electronic device Expired - Fee Related CN107871000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711087223.6A CN107871000B (en) 2017-11-07 2017-11-07 Audio playback method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711087223.6A CN107871000B (en) 2017-11-07 2017-11-07 Audio playback method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN107871000A true CN107871000A (en) 2018-04-03
CN107871000B CN107871000B (en) 2020-01-31

Family

ID=61753679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711087223.6A Expired - Fee Related CN107871000B (en) 2017-11-07 2017-11-07 Audio playback method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN107871000B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064787A (en) * 2018-07-17 2018-12-21 广东小天才科技有限公司 Point reading equipment
CN109523846A (en) * 2018-11-15 2019-03-26 武汉百行科技股份有限公司 A kind of playback method and playback equipment
CN111079051A (en) * 2019-12-13 2020-04-28 北京字节跳动网络技术有限公司 Display content playing method and device
CN112188115A (en) * 2020-09-29 2021-01-05 咪咕文化科技有限公司 Image processing method, electronic device and storage medium
CN112333533A (en) * 2020-09-07 2021-02-05 深圳Tcl新技术有限公司 Selection method, device and equipment of playing equipment and computer readable storage medium
CN118551073A (en) * 2024-07-24 2024-08-27 南京乐韵瑞信息技术有限公司 Audio playback method, device, equipment and storage medium based on user scenario

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150009640A (en) * 2013-07-16 2015-01-27 정동민 Internet cafe managing system and the managing method using the same
CN104575125A (en) * 2013-10-10 2015-04-29 北大方正集团有限公司 Double-audio-frequency rereading method and device
CN104732992A (en) * 2015-04-02 2015-06-24 陈佩珊 Music playing method and music player
CN107085592A (en) * 2017-03-02 2017-08-22 深圳市创想天空科技股份有限公司 Early education method and device based on cognitive card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150009640A (en) * 2013-07-16 2015-01-27 정동민 Internet cafe managing system and the managing method using the same
CN104575125A (en) * 2013-10-10 2015-04-29 北大方正集团有限公司 Double-audio-frequency rereading method and device
CN104732992A (en) * 2015-04-02 2015-06-24 陈佩珊 Music playing method and music player
CN107085592A (en) * 2017-03-02 2017-08-22 深圳市创想天空科技股份有限公司 Early education method and device based on cognitive card

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064787A (en) * 2018-07-17 2018-12-21 广东小天才科技有限公司 Point reading equipment
CN109523846A (en) * 2018-11-15 2019-03-26 武汉百行科技股份有限公司 A kind of playback method and playback equipment
CN111079051A (en) * 2019-12-13 2020-04-28 北京字节跳动网络技术有限公司 Display content playing method and device
CN111079051B (en) * 2019-12-13 2023-07-21 北京字节跳动网络技术有限公司 Method and device for playing display content
CN112333533A (en) * 2020-09-07 2021-02-05 深圳Tcl新技术有限公司 Selection method, device and equipment of playing equipment and computer readable storage medium
CN112333533B (en) * 2020-09-07 2023-12-05 深圳Tcl新技术有限公司 Selection method, device, equipment and computer-readable storage medium of playback equipment
CN112188115A (en) * 2020-09-29 2021-01-05 咪咕文化科技有限公司 Image processing method, electronic device and storage medium
CN112188115B (en) * 2020-09-29 2023-10-17 咪咕文化科技有限公司 Image processing method, electronic equipment and storage medium
CN118551073A (en) * 2024-07-24 2024-08-27 南京乐韵瑞信息技术有限公司 Audio playback method, device, equipment and storage medium based on user scenario
CN118551073B (en) * 2024-07-24 2024-10-22 南京乐韵瑞信息技术有限公司 Audio playing method, device, equipment and storage medium based on user scene
US12277367B1 (en) 2024-07-24 2025-04-15 Linkplay Technology Inc. User scenario-based audio playback method, apparatus and device, and storage medium

Also Published As

Publication number Publication date
CN107871000B (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN107871000B (en) Audio playback method, device, storage medium and electronic device
CN110012209B (en) Panoramic image generation method, device, storage medium and electronic device
CN110650379B (en) Video abstract generation method and device, electronic equipment and storage medium
CN111209970A (en) Video classification method and device, storage medium and server
CN105512685B (en) Object identification method and device
US8902361B2 (en) Relational display of images
WO2019137167A1 (en) Photo album management method and apparatus, storage medium, and electronic device
CN107707828B (en) A kind of method for processing video frequency and mobile terminal
CN107871001B (en) Audio playback method, device, storage medium and electronic device
CN107835366B (en) Multimedia playback method, device, storage medium and electronic device
CN107731020B (en) Multimedia playing method, device, storage medium and electronic equipment
CN107870999B (en) Multimedia playing method, device, storage medium and electronic equipment
CN107885482B (en) Audio playback method, device, storage medium and electronic device
CN107885430A (en) A kind of audio frequency playing method, device, storage medium and electronic equipment
CN108289057B (en) Video editing method and device and intelligent mobile terminal
CN109101931A (en) Scene recognition method, scene recognition device and terminal equipment
CN108961157A (en) Picture processing method, picture processing device and terminal equipment
CN113033245A (en) Function adjusting method and device, storage medium and electronic equipment
CN112672208A (en) Video playing method, device, electronic equipment, server and system
CN111475677A (en) Image processing method, device, storage medium and electronic device
CN110750368A (en) Copying and pasting method and terminal
EP2960816A1 (en) Method and apparatus for managing data
CN111077992B (en) Click-to-read method, electronic equipment and storage medium
CN109961403A (en) Photo adjustment method, device, storage medium, and electronic device
CN110276404A (en) Model training method, device and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200131