Movatterモバイル変換


[0]ホーム

URL:


CN104834738B - recording file storage method and device - Google Patents

recording file storage method and device
Download PDF

Info

Publication number
CN104834738B
CN104834738BCN201510258038.3ACN201510258038ACN104834738BCN 104834738 BCN104834738 BCN 104834738BCN 201510258038 ACN201510258038 ACN 201510258038ACN 104834738 BCN104834738 BCN 104834738B
Authority
CN
China
Prior art keywords
sound
recording file
recording
title
user
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.)
Expired - Fee Related
Application number
CN201510258038.3A
Other languages
Chinese (zh)
Other versions
CN104834738A (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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510258038.3ApriorityCriticalpatent/CN104834738B/en
Publication of CN104834738ApublicationCriticalpatent/CN104834738A/en
Application grantedgrantedCritical
Publication of CN104834738BpublicationCriticalpatent/CN104834738B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明适用于智能终端技术领域,提供了一种录音文件存储方法及装置,所述方法包括:在录音结束后,获取所述录音文件的属性信息;根据所述属性信息命名所述录音文件;存储命名后的所述录音文件。本发明实现了录音文件以其属性信息命名后存储,使得录音文件的名称直观地反映了所述录音文件的声音内容,用户可通过录音文件的声音内容搜索录音文件,有利于用户快速搜索到目标录音文件,简化了现有录音文件的搜索和辨别过程,且增加了录音搜索的趣味性。

The present invention is applicable to the technical field of intelligent terminals, and provides a recording file storage method and device. The method includes: after the recording is finished, acquiring attribute information of the recording file; naming the recording file according to the attribute information; The named recording file is stored. The invention realizes that the recording files are stored after being named after their attribute information, so that the name of the recording file intuitively reflects the sound content of the recording file, and the user can search the recording file through the sound content of the recording file, which is beneficial for the user to quickly search for the target The recording file simplifies the search and identification process of existing recording files, and increases the fun of recording search.

Description

Translated fromChinese
录音文件存储方法及装置Recording file storage method and device

技术领域technical field

本发明适用于智能终端技术领域,尤其涉及一种录音文件存储方法及装置。The invention is applicable to the technical field of intelligent terminals, and in particular relates to a recording file storage method and device.

背景技术Background technique

现有的智能终端(比如智能手机、平板电脑)通常设置有录音功能。然而现有技术中录音文件在存储时由智能终端自动按照录音时间和/或数字来进行命名,不利于用户进行搜索。而且,录音文件不能直观地反应出其内部包含的声音信息,用户只有通过播放所搜索到的录音文件才能确定是否为目标录音文件,过程繁琐且浪费时间。Existing smart terminals (such as smart phones and tablet computers) are usually provided with a recording function. However, in the prior art, when recording files are stored, the smart terminal automatically names them according to the recording time and/or number, which is not conducive to users' search. Moreover, the recording file cannot intuitively reflect the sound information contained in it, and the user can only determine whether it is the target recording file by playing the searched recording file, and the process is cumbersome and time-consuming.

发明内容Contents of the invention

鉴于此,本发明实施例提供一种录音文件存储方法及装置,以通过属性信息命名录音文件,提高录音文件搜索的效率。In view of this, an embodiment of the present invention provides a recording file storage method and device, so as to name recording files through attribute information and improve recording file search efficiency.

第一方面,提供了一种录音文件存储方法,所述方法包括:In a first aspect, a recording file storage method is provided, the method comprising:

在录音结束后,获取所述录音文件的属性信息;After the recording ends, acquire the attribute information of the recording file;

根据所述属性信息命名所述录音文件;naming the recording file according to the attribute information;

存储命名后的所述录音文件。The named recording file is stored.

进一步地,所述属性信息包括声音特征,所述声音特征包括声音类别、声音数量和/或声音所属用户的名称。Further, the attribute information includes sound characteristics, and the sound characteristics include sound category, number of sounds and/or name of the user to whom the sound belongs.

进一步地,所述在录音结束后,获取所述录音文件的属性信息包括:Further, after the recording ends, acquiring the attribute information of the recording file includes:

在录音结束后,对所录制的录音文件进行声纹识别,获取所述录音文件中的声音特征;After the recording ends, voiceprint recognition is performed on the recorded recording file, and the sound features in the recording file are obtained;

所述根据所述属性信息命名所述录音文件包括:Said naming said recording file according to said attribute information includes:

当所获取的声音特征包括声音所属用户的名称时,将所述录音文件的名称设置为所述声音所属用户的名称;或者When the acquired sound features include the name of the user to whom the sound belongs, setting the name of the recording file as the name of the user to whom the sound belongs; or

当所获取的声音特征不包括声音所属用户的名称,但包括声音类别和声音数量时,将所述录音文件的名称设置为所述声音类别和声音数量。When the acquired sound feature does not include the name of the user to whom the sound belongs, but includes the sound category and the number of sounds, the name of the recording file is set as the sound category and the number of sounds.

进一步地,所述对所录制的录音文件进行声纹识别,获取所述录音文件中的声音特征包括:Further, the performing voiceprint recognition on the recorded recording file, and obtaining the sound features in the recording file include:

对所述录音文件中的每一种声音进行音色识别,获取每一种声音的音色信息;Carry out timbre identification for each sound in the recording file, and obtain timbre information for each sound;

判断预设的关系表中是否存在与所述音色信息相对应的声音所属用户的名称;Judging whether there is a name of the user whose sound corresponds to the timbre information in the preset relationship table;

若是,获取所述声音所属用户的名称;If so, obtain the name of the user to whom the sound belongs;

若否,弹出对话框,以提示用户输入所述音色信息相对应的声音所属用户的名称,接收用户输入的所述声音所属用户的名称,将所述声音的音色信息及所述声音所属用户的名称存储至所述预设的关系表中。If not, a dialog box pops up to prompt the user to input the name of the user to whom the sound corresponds to the timbre information. The names are stored in the preset relationship table.

进一步地,所述属性信息包括所述录音文件的录制时间和录制地点:Further, the attribute information includes the recording time and recording location of the recording file:

所述根据所述属性信息命名所述录音文件包括:Said naming said recording file according to said attribute information includes:

根据所述录音文件的录制时间和录制地点命名所述录音文件。The recording file is named according to the recording time and recording location of the recording file.

进一步地,所述方法还包括:Further, the method also includes:

当接收到录音文件搜索指令时,获取用户输入的关键字,根据所述关键字搜索所存储的录音文件,获取名称与所述关键字匹配的录音文件,显示所获取的录音文件。When the recording file search instruction is received, the keyword input by the user is obtained, the stored recording files are searched according to the keyword, the recording file whose name matches the keyword is obtained, and the obtained recording file is displayed.

第二方面,提供了一种录音文件存储装置,所述装置包括:In a second aspect, a recording file storage device is provided, the device comprising:

获取模块,用于在录音结束后,获取所述录音文件的属性信息;An acquisition module, configured to acquire the attribute information of the recording file after the recording ends;

命名模块,用于根据所述属性信息命名所述录音文件;a naming module, configured to name the recording file according to the attribute information;

存储模块,用于存储命名后的所述录音文件。The storage module is used for storing the named recording files.

进一步地,所述属性信息包括声音特征,所述声音特征包括声音类别、声音数量和/或声音所属用户的名称。Further, the attribute information includes sound characteristics, and the sound characteristics include sound category, number of sounds and/or name of the user to whom the sound belongs.

进一步地,所述获取模块包括:Further, the acquisition module includes:

识别单元,用于在录音结束后,对所录制的录音文件进行声纹识别,获取所述录音文件中的声音特征;The recognition unit is used to perform voiceprint recognition on the recorded recording file after the recording is finished, and obtain the sound features in the recording file;

所述命名模块包括:The named modules include:

第一设置单元,用于当所获取的声音特征包括声音所属用户的名称时,将所述录音文件的名称设置为所述声音所属用户的名称;A first setting unit, configured to set the name of the recording file as the name of the user to whom the sound belongs when the acquired sound features include the name of the user to whom the sound belongs;

第二设置单元,用于当所获取的声音特征不包括声音所属用户的名称,但包括声音类别和声音数量时,将所述录音文件的名称设置为所述声音类别和声音数量。The second setting unit is configured to set the name of the recording file as the sound category and the number of sounds when the acquired sound feature does not include the name of the user to whom the sound belongs, but includes the sound category and the number of sounds.

进一步地,所述识别单元包括:Further, the identification unit includes:

识别子单元,用于对所述录音文件中的每一种声音进行音色识别,获取每一种声音的音色信息;The identification subunit is used to identify the timbre of each sound in the recording file, and obtain the timbre information of each sound;

判断子单元,用于判断预设的关系表中是否存在与所述音色信息相对应的声音所属用户的名称;A judging subunit, configured to judge whether there is a name of a user whose sound corresponds to the timbre information in the preset relationship table;

第一获取子单元,用于在判断单元的判断结果为是时,获取所述声音所属用户的名称;The first acquiring subunit is used to acquire the name of the user to whom the voice belongs when the judging result of the judging unit is yes;

第二获取子单元,用于在判断单元的判断结果为否时,弹出对话框,以提示用户输入所述音色信息相对应的声音所属用户的名称,接收用户输入的所述声音所属用户的名称,将所述声音的音色信息及所述声音所属用户的名称存储至所述预设的关系表中。The second acquisition subunit is used to pop up a dialog box to prompt the user to input the name of the user to whom the sound corresponding to the timbre information belongs when the judgment result of the judging unit is negative, and to receive the name of the user to whom the sound is input by the user. , storing the timbre information of the sound and the name of the user to whom the sound belongs to the preset relationship table.

进一步地,所述属性信息包括所述录音文件的录制时间和录制地点:Further, the attribute information includes the recording time and recording location of the recording file:

所述命名模块包括:The named modules include:

第三设置单元,用于根据所述录音文件的录制时间和录制地点命名所述录音文件。The third setting unit is used for naming the recording file according to the recording time and recording location of the recording file.

进一步地,所述装置还包括:Further, the device also includes:

搜索模块,用于当接收到录音文件搜索指令时,获取用户输入的关键字,根据所述关键字搜索所存储的录音文件,获取名称与所述关键字匹配的录音文件,显示所获取的录音文件。The search module is used to obtain the keywords input by the user when receiving the recording file search instruction, search the stored recording files according to the keywords, obtain the recording files whose names match the keywords, and display the obtained recordings document.

与现有技术相比,本发明实施例通过属性信息来命名录音文件;每当录音结束后,获取所述录音文件的属性信息;根据所述属性信息命名所述录音文件;存储命名后的所述录音文件;从而实现了录音文件以其属性信息命名后存储,使得所录制的录音文件的名称包含声音的属性信息,直观地反映了所述录音文件的声音内容,用户可通过录音文件的声音内容搜索录音文件,有利于用户快速搜索到目标录音文件,简化了现有录音文件的搜索和辨别过程,且增加了录音搜索的趣味性。Compared with the prior art, the embodiment of the present invention uses attribute information to name the recording file; whenever the recording ends, acquire the attribute information of the recording file; name the recording file according to the attribute information; store the named Describe the recording file; thus realize the storage of the recording file named after its attribute information, so that the name of the recorded recording file contains the attribute information of the sound, which intuitively reflects the sound content of the recording file, and the user can use the sound of the recording file Searching recording files by content helps users quickly search for target recording files, simplifies the search and identification process of existing recording files, and increases the fun of recording search.

附图说明Description of drawings

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

图1是本发明实施例一提供的录音文件存储方法的第一实现流程图;Fig. 1 is the first implementation flowchart of the recording file storage method provided by Embodiment 1 of the present invention;

图2是本发明实施例二提供的录音文件存储方法的第二实现流程图;Fig. 2 is the second implementation flowchart of the recording file storage method provided by the second embodiment of the present invention;

图3是本发明实施例三提供的录音文件存储装置的组成结构图。Fig. 3 is a structural diagram of the recording file storage device provided by Embodiment 3 of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例通过属性信息来命名录音文件;每当录音结束后,获取所述录音文件的属性信息;根据所述属性信息命名所述录音文件;存储命名后的所述录音文件;从而实现了录音文件以其属性信息命名后存储,使得所录制的录音文件的名称包含声音的属性信息,直观地反映了所述录音文件的声音内容,用户可通过录音文件的声音内容搜索录音文件,有利于用户快速搜索到目标录音文件,简化了现有录音文件的搜索和辨别过程,且增加了录音搜索的趣味性。本发明实施例还提供了相应的装置,以下分别进行详细的说明。In the embodiment of the present invention, the recording file is named through the attribute information; whenever the recording ends, the attribute information of the recording file is obtained; the recording file is named according to the attribute information; the named recording file is stored; thereby realizing Recording files are stored after naming their attribute information, so that the title of the recorded recording file contains the attribute information of the sound, which intuitively reflects the sound content of the recording file, and the user can search for the recording file through the sound content of the recording file, which is beneficial The user can quickly search for the target recording file, which simplifies the search and identification process of existing recording files, and increases the interest of recording search. Embodiments of the present invention also provide corresponding devices, which will be described in detail below.

实施例一Embodiment one

图1示出了本发明实施例一提供的录音文件存储方法的第一实现流程,为了便于说明,仅示出了与本发明相关的部分。FIG. 1 shows the first implementation flow of the recording file storage method provided by Embodiment 1 of the present invention. For the convenience of description, only the parts related to the present invention are shown.

在本发明实施例中,所述方法应用于智能终端。所述智能终端上安装有录音软件,能够实现录音功能。所述智能终端包括但不限于智能手机、平板电脑、学习机、音乐播放器(比如MP3、MP4等)、智能车载设备。In the embodiment of the present invention, the method is applied to a smart terminal. Recording software is installed on the intelligent terminal, which can realize the recording function. The smart terminal includes, but is not limited to, a smart phone, a tablet computer, a learning machine, a music player (such as MP3, MP4, etc.), and a smart vehicle-mounted device.

如图1所示,所述方法包括:As shown in Figure 1, the method includes:

在步骤S101中,在录音结束后,获取所述录音文件中的属性信息。In step S101, after the recording is finished, attribute information in the recording file is acquired.

在本发明实施例中,所述属性信息包括声音特征,所述声音特征包括声音类别、声音数量和/或声音所属用户的名称。所述声音类别是指通过音色识别出的人物声音,包括但不限于所述声音为男性声音、女性声音、老人声音、青年声音、孩童声音。所述声音数量是指通过音色识别出的人物声音的种数。需要说明的是,所述声音类别、声音数量是在录音文件包含人物声音的前提下识别出来的,因此,所述声音类别、声音数量是指人类发出的声音。声音所属用户的名称是指发出此声音的用户的名字。In the embodiment of the present invention, the attribute information includes sound characteristics, and the sound characteristics include sound category, number of sounds and/or name of the user to whom the sound belongs. The voice category refers to the voice of a person identified by timbre, including but not limited to male voice, female voice, elderly voice, youth voice, and child voice. The number of voices refers to the number of human voices identified through timbre. It should be noted that the voice category and the number of voices are identified on the premise that the recording file contains the voice of a person, therefore, the voice category and the number of voices refer to sounds made by humans. The name of the user who owns the sound refers to the name of the user who made the sound.

因此,所述在录音结束后,获取所述录音文件的属性信息包括:Therefore, after the recording ends, obtaining the attribute information of the recording file includes:

在录音结束后,对所录制的录音文件进行声纹识别,获取所述录音文件中的声音特征。After the recording is finished, voiceprint recognition is performed on the recorded recording file to obtain the sound features in the recording file.

本发明实施例在录制完录音文件后,通过对录音文件的音色进行声纹识别,获取所述录音文件中包含的上述任一一种及其组合的声音特征。In the embodiment of the present invention, after the recording file is recorded, voiceprint recognition is performed on the timbre of the recording file to obtain the sound features of any one of the above-mentioned ones and combinations thereof contained in the recording file.

在步骤S102中,根据所述属性信息命名所述录音文件。In step S102, the recording file is named according to the attribute information.

其中,对于有人物参与的录音文件,所述录音文件经过声纹识别后能够识别出声音特征。当所述当所获取的声音特征包括声音所属用户的名称时,将所述录音文件的名称设置为所述声音所属用户的名称;或者,当所获取的声音特征不包括声音所属用户的名称,但包括声音类别和声音数量时,将所述录音文件的名称设置为所述声音类别和声音数量。Wherein, for a recording file in which a person participates, the voice feature can be identified after the recording file is recognized through voiceprint recognition. When the acquired sound features include the name of the user to whom the sound belongs, the name of the recording file is set as the name of the user to whom the sound belongs; or, when the acquired sound features do not include the name of the user to whom the sound belongs, but include When the sound category and the sound quantity are specified, the name of the recording file is set as the sound category and the sound quantity.

本发明实施例使用录音文件中所包含的声音类别、声音数量,或者使用声音所属用户的名称,作为所述录音文件的名称,使得所述录音文件的名称直观地反映出其所包含的关键的声音内容,比如声音所述用户的名称“小明+小红”、声音类别和声音种类“男性1名+女性2名”等。In this embodiment of the present invention, the sound category and number of sounds contained in the recording file, or the name of the user to whom the sound belongs, are used as the name of the recording file, so that the name of the recording file intuitively reflects the key information contained in it. Voice content, such as the user's name "Xiaoming+Xiaohong" mentioned in the voice, voice category and voice type "1 male + 2 female", etc.

进一步地,所述属性信息还包括所述录音文件的录制时间和录制地点。对于无人物参与的录音文件,可能是动物叫声、车流声、机械工作声等,声纹识别无法获取所述录音文件的声音特征,则获取所述录音文件的录制时间和录制地点,并根据所述录音文件的录制时间和录制地点命名所述录音文件。Further, the attribute information also includes the recording time and recording location of the recording file. For recording files without human participation, which may be animal calls, traffic sounds, mechanical working sounds, etc., and the voiceprint recognition cannot obtain the sound characteristics of the recording files, the recording time and recording location of the recording files are obtained, and according to The recording time and recording location of the recording file name the recording file.

作为本发明的一个示例,所述录制时间为录音开始录制的日期和时间,可以精确到秒。所述录制地点可以为录音开始录制时的省、市、区,也可以为录音开始录制时通过全球定位系统GPS获取到的经度、纬度信息。As an example of the present invention, the recording time is the date and time when the recording starts, which may be accurate to the second. The recording location can be the province, city, or district when the recording starts, or it can be the longitude and latitude information obtained through the GPS when the recording starts.

在步骤S103中,存储命名后的所述录音文件。In step S103, the named recording file is stored.

本发明实施例以录音文件中的属性信息设置所述录音文件的名称后存储命名后的所述录音文件。通过此方式命名及存储,所存储的录音文件的名称直观地反映了该录音文件的声音内容。In the embodiment of the present invention, the name of the recording file is set according to the attribute information in the recording file, and then the named recording file is stored. By naming and storing in this way, the name of the stored recording file intuitively reflects the sound content of the recording file.

优选地,所述方法还包括:Preferably, the method also includes:

当接收到录音文件搜索指令时,获取用户输入的关键字,根据所述关键字搜索所存储的录音文件,获取名称与所述关键字匹配的录音文件,显示所获取的录音文件。When the recording file search instruction is received, the keyword input by the user is obtained, the stored recording files are searched according to the keyword, the recording file whose name matches the keyword is obtained, and the obtained recording file is displayed.

本发明实施例在录音软件中增加了关键词搜索功能。在进行录音文件的搜索时,加载搜索界面,所述搜索界面上包括搜索栏,用户可通过所述搜索栏的输入框输入目标录音文件的关键信息,即关键字。The embodiment of the present invention adds a keyword search function in the recording software. When searching for a recording file, a search interface is loaded, and the search interface includes a search bar, and the user can input key information of the target recording file, that is, a keyword, through an input box of the search bar.

所述关键字包括但不限于目标录音文件的录音时间、录音地点、声音类别、声音数量和/或声音所属用户的名称。当然,也可以为其他关键字,为了加快搜索的速度,优选为与录音文件名称相关的关键字。The keywords include, but are not limited to, the recording time, recording location, sound category, number of sounds, and/or the name of the user to whom the sound belongs, of the target recording file. Of course, other keywords may also be used. In order to speed up the search, keywords related to the name of the recording file are preferred.

通过搜索栏的输入框接收到用户输入的关键字后,根据所述关键字搜索所存储的录音文件,判断每一个录音文件的名称中是否包含所述关键字;若是,则获取名称与所述关键字匹配的录音文件,并以列表的方式显示搜索到的录音文件的名称及存储地址。After receiving the keywords input by the user through the input box of the search bar, search the stored recording files according to the keywords, and judge whether the title of each recording file contains the keywords; if so, obtain the name and the Recording files that match keywords, and display the name and storage address of the searched recording files in a list.

由于搜索是基于录音文件的名称,且录音文件的名称是在存储录音文件时根据录音文件本身包含的声音特征来确定的,因此,进行搜索时所使用的关键字可以是与录音文件的内容相关的信息,比如录音文件中声音类别、声音数量或者声音所属用户的名称等,进一步方便了用户搜索目标录音文件,避免了对搜索到的录音文件进行播放辨别,且声音类别、声音数量或者声音所述用户的名称相对于原有的时间、数字更便于用户记忆,有利于用户快速搜索到目标录音文件,极大地提升了用户的体验感。Since the search is based on the name of the recording file, and the name of the recording file is determined according to the sound characteristics contained in the recording file itself when the recording file is stored, the keyword used when searching may be related to the content of the recording file The information, such as the sound category, the number of sounds in the recording file, or the name of the user to whom the sound belongs, further facilitates the user to search for the target recording file, and avoids the need to play and identify the searched recording files. Compared with the original time and numbers, the name of the above-mentioned user is easier for the user to remember, and it is helpful for the user to quickly search for the target recording file, which greatly improves the user experience.

本发明实施例通过属性信息来命名录音文件;每当录音结束后,获取所述录音文件的属性信息;根据所述属性信息命名所述录音文件;存储命名后的所述录音文件;从而实现了录音文件以其属性信息命名后存储,使得所录制的录音文件的名称包含声音的属性信息,直观地反映了所述录音文件的声音内容,用户可通过录音文件的声音内容搜索录音文件,有利于用户快速搜索到目标录音文件,简化了现有录音文件的搜索和辨别过程,且增加了录音搜索的趣味性。In the embodiment of the present invention, the recording file is named through the attribute information; whenever the recording ends, the attribute information of the recording file is obtained; the recording file is named according to the attribute information; the named recording file is stored; thereby realizing Recording files are stored after naming their attribute information, so that the title of the recorded recording file contains the attribute information of the sound, which intuitively reflects the sound content of the recording file, and the user can search for the recording file through the sound content of the recording file, which is beneficial The user can quickly search for the target recording file, which simplifies the search and identification process of existing recording files, and increases the interest of recording search.

实施例二Embodiment two

图2示出了本发明实施例二提供的录音文件存储方法中步骤S101的具体实现流程,为了便于说明,仅示出了与本发明相关的部分。FIG. 2 shows the specific implementation process of step S101 in the recording file storage method provided by Embodiment 2 of the present invention. For the convenience of description, only the parts related to the present invention are shown.

在本发明实施例中,对于有人物参与的录音文件,其包含用户声音,所述对录音文件进行声纹识别包括:In the embodiment of the present invention, for a recorded file with the participation of a person, which contains the user's voice, the voiceprint recognition of the recorded file includes:

在步骤S201中,对所述录音文件中的每一种声音进行音色识别,获取每一种声音的音色信息。In step S201, timbre identification is performed on each sound in the recording file, and timbre information of each sound is obtained.

在步骤S202中,判断预设的关系表中是否存在与所述音色信息相对应的声音所属用户的名称。In step S202, it is judged whether there is a name of the user to whom the sound corresponding to the timbre information exists in the preset relationship table.

在本发明实施例中,所述预设的关系表中存储了每次声纹识别后获取到的声音的音色信息及其所属用户的名称(即ID信息)。当所述预设的关系表中存在与所述音色信息相对应的声音所述用户的名称时,表明当前声纹识别出来的声音在本次声纹识别之前已经被识别出来且进行了存储,则执行步骤S203;否则,执行步骤S204。In the embodiment of the present invention, the preset relationship table stores the timbre information of the voice obtained after each voiceprint recognition and the name of the user to which it belongs (ie ID information). When the name of the user whose voice corresponds to the timbre information exists in the preset relationship table, it indicates that the voice recognized by the current voiceprint has been recognized and stored before this voiceprint recognition, Then execute step S203; otherwise, execute step S204.

在步骤S203中,获取所述声音所属用户的名称。In step S203, the name of the user to whom the voice belongs is obtained.

在步骤S204中,弹出对话框,以提示用户输入所述音色信息相对应的声音所属用户的名称,接收用户输入的所述声音所属用户的名称,将所述声音的音色信息及所述声音所属用户的名称存储至所述预设的关系表中。In step S204, a dialog box pops up to prompt the user to input the name of the user to whom the sound corresponds to the timbre information. The user's name is stored in the preset relationship table.

示例性地,所述音色信息为声纹图谱,任何两个人的声纹图谱都是有差异的。对录音文件进行声纹识别,从而可获取到录音文件中每一种声音的声纹图谱,根据所述声纹图谱可以确定每一种声音所属用户的名称。优选地,若从预设的关系表中无法获得声音所属用户的名称时,判定该声音为首次出现,则弹出对话框,提示用户输入所述声音所述用户的名称,并将获取到的音色信息和所述声音所属用户的名称存储至所述预设的关系表中。后续进行声纹识别时,可直接从所述关系表中获取相同声音的用户名称。Exemplarily, the timbre information is a voiceprint map, and the voiceprint maps of any two people are different. Voiceprint recognition is performed on the recording file, so that the voiceprint map of each sound in the recording file can be obtained, and the name of the user to which each sound belongs can be determined according to the voiceprint map. Preferably, if the name of the user to whom the sound belongs cannot be obtained from the preset relationship table, and it is determined that the sound appears for the first time, a dialog box will pop up, prompting the user to input the name of the user of the sound, and the acquired timbre The information and the name of the user to which the voice belongs are stored in the preset relationship table. When voiceprint recognition is performed subsequently, the names of users with the same voice can be obtained directly from the relational table.

实施例三Embodiment three

图3示出了本发明实施例三提供的录音文件存储装置的组成结构,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 3 shows the composition and structure of the recording file storage device provided by the third embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown.

在本发明实施例中,所述装置用于实现图1或图2实施例中所述的录音文件存储方法,可以是内置于智能终端的软件单元、硬件单元或者软硬件结合的单元。所述智能终端包括但不限于智能手机、平板电脑、学习机、音乐播放器(比如MP3、MP4等)、智能车载设备。所述智能终端上安装有录音软件,能够实现录音功能。In the embodiment of the present invention, the device is used to implement the recording file storage method described in the embodiment of FIG. 1 or FIG. 2 , and may be a software unit, a hardware unit or a combination of software and hardware built into the smart terminal. The smart terminal includes, but is not limited to, a smart phone, a tablet computer, a learning machine, a music player (such as MP3, MP4, etc.), and a smart vehicle-mounted device. Recording software is installed on the intelligent terminal, which can realize the recording function.

如图3所示,所述装置包括:As shown in Figure 3, the device includes:

获取模块31,用于在录音结束后,获取所述录音文件的属性信息。The obtaining module 31 is configured to obtain the attribute information of the recording file after the recording is finished.

命名模块32,用于根据所述属性信息命名所述录音文件。A naming module 32, configured to name the recording file according to the attribute information.

存储模块33,用于存储命名后的所述录音文件。The storage module 33 is configured to store the named recording file.

在本发明实施例中,所述属性信息包括声音特征,所述声音特征包括声音类别、声音数量和/或声音所属用户的名称。所述声音类别是指通过音色识别出的人物声音,包括但不限于所述声音为男性声音、女性声音、老人声音、青年声音、孩童声音。所述声音数量是指通过音色识别出的人物声音的种数。需要说明的是,所述声音类别、声音数量是在录音文件包含人物声音的前提下识别出来的,因此,所述声音类别、声音数量是指人类发出的声音。声音所属用户的名称是指发出此声音的用户的名称。In the embodiment of the present invention, the attribute information includes sound characteristics, and the sound characteristics include sound category, number of sounds and/or name of the user to whom the sound belongs. The voice category refers to the voice of a person identified by timbre, including but not limited to male voice, female voice, elderly voice, youth voice, and child voice. The number of voices refers to the number of human voices identified through timbre. It should be noted that the voice category and the number of voices are identified on the premise that the recording file contains the voice of a person, therefore, the voice category and the number of voices refer to sounds made by humans. The name of the user who owns the sound refers to the name of the user who made the sound.

所述获取模块31包括:The acquisition module 31 includes:

识别单元311,用于在录音结束后,对所录制的录音文件进行声纹识别,获取所述录音文件中的声音特征。The recognition unit 311 is configured to perform voiceprint recognition on the recorded recording file after the recording is finished, and acquire voice features in the recording file.

所述命名模块32包括:Described naming module 32 comprises:

第一设置单元321,用于当所获取的声音特征包括声音所属用户的名称时,将所述录音文件的名称设置为所述声音所属用户的名称。The first setting unit 321 is configured to set the name of the recording file as the name of the user to whom the sound belongs when the acquired sound features include the name of the user to whom the sound belongs.

第二设置单元322,用于当所获取的声音特征不包括声音所属用户的名称,但包括声音类别和声音数量时,将所述录音文件的名称设置为所述声音类别和声音数量。The second setting unit 322 is configured to set the name of the recording file as the sound category and the number of sounds when the acquired sound features do not include the name of the user to whom the sound belongs, but include the sound category and the number of sounds.

进一步地,所述识别单元311包括:Further, the identification unit 311 includes:

识别子单元3111,用于对所述录音文件中的每一种声音进行音色识别,获取每一种声音的音色信息。The identification subunit 3111 is configured to identify the timbre of each sound in the recording file, and obtain the timbre information of each sound.

判断子单元3112,用于判断预设的关系表中是否存在与所述音色信息相对应的声音所属用户的名称。The judging subunit 3112 is configured to judge whether there is a name of the user to whom the sound corresponding to the timbre information exists in the preset relationship table.

第一获取子单元3113,用于在判断单元的判断结果为是时,获取所述声音所属用户的名称。The first acquiring subunit 3113 is configured to acquire the name of the user to whom the voice belongs when the judging result of the judging unit is yes.

第二获取子单元3114,用于在判断单元的判断结果为否时,弹出对话框,以提示用户输入所述音色信息相对应的声音所属用户的名称,接收用户输入的所述声音所属用户的名称,将所述声音的音色信息及所述声音所属用户的名称存储至所述预设的关系表中。The second acquiring subunit 3114 is configured to pop up a dialog box to prompt the user to input the name of the user to whom the sound corresponding to the timbre information belongs when the judgment result of the judging unit is negative, and to receive the user's name of the sound that is input by the user. name, storing the timbre information of the voice and the name of the user to whom the voice belongs to the preset relationship table.

对于有人物参与的录音文件,声纹识别后能够获取到声音特征,对于无人物参与的录音文件,声纹识别后无法获取到声音特征,则获取所述录音文件的录制时间和录制地点。因此,所述属性信息还包括所述录音文件的录制时间和录制地点:For recording files with human participation, the sound characteristics can be obtained after voiceprint recognition, and for recording files without human participation, the sound characteristics cannot be obtained after voiceprint recognition, then the recording time and recording location of the recording file can be obtained. Therefore, the attribute information also includes the recording time and recording location of the recording file:

所述命名模块32具体包括:Described naming module 32 specifically comprises:

第三设置单元323,用于根据所述录音文件的录制时间和录制地点命名所述录音文件。The third setting unit 323 is configured to name the recording file according to the recording time and recording location of the recording file.

优选地,所述装置还包括:Preferably, the device also includes:

搜索模块34,用于当接收到录音文件搜索指令时,获取用户输入的关键字,根据所述关键字搜索所存储的录音文件,获取名称与所述关键字匹配的录音文件,显示所获取的录音文件。The search module 34 is used to obtain the keyword input by the user when receiving the recording file search instruction, search the stored recording file according to the keyword, obtain the recording file whose name matches the keyword, and display the obtained Recording files.

需要说明的是,本发明实施例中的装置可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。It should be noted that the device in the embodiment of the present invention can be used to realize all the technical solutions in the above method embodiment, and the functions of each functional module can be realized according to the method in the above method embodiment, and the specific implementation process can refer to Relevant descriptions in the foregoing embodiments will not be repeated here.

本发明实施例通过属性信息来命名录音文件;每当录音结束后,获取所述录音文件的属性信息;根据所述属性信息命名所述录音文件;存储命名后的所述录音文件;从而实现了录音文件以其属性信息命名后存储,使得所录制的录音文件的名称包含声音的属性信息,直观地反映了所述录音文件的声音内容,用户可通过录音文件的声音内容搜索录音文件,有利于用户快速搜索到目标录音文件,简化了现有录音文件的搜索和辨别过程,且增加了录音搜索的趣味性。In the embodiment of the present invention, the recording file is named through the attribute information; whenever the recording ends, the attribute information of the recording file is obtained; the recording file is named according to the attribute information; the named recording file is stored; thereby realizing Recording files are stored after naming their attribute information, so that the title of the recorded recording file contains the attribute information of the sound, which intuitively reflects the sound content of the recording file, and the user can search for the recording file through the sound content of the recording file, which is beneficial The user can quickly search for the target recording file, which simplifies the search and identification process of existing recording files, and increases the interest of recording search.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and units can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (6)

CN201510258038.3A2015-05-182015-05-18recording file storage method and deviceExpired - Fee RelatedCN104834738B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510258038.3ACN104834738B (en)2015-05-182015-05-18recording file storage method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510258038.3ACN104834738B (en)2015-05-182015-05-18recording file storage method and device

Publications (2)

Publication NumberPublication Date
CN104834738A CN104834738A (en)2015-08-12
CN104834738Btrue CN104834738B (en)2018-09-11

Family

ID=53812624

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510258038.3AExpired - Fee RelatedCN104834738B (en)2015-05-182015-05-18recording file storage method and device

Country Status (1)

CountryLink
CN (1)CN104834738B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105895132B (en)*2016-03-182019-12-13北京智驾互联信息服务有限公司vehicle-mounted voice recording method, device and system
CN107403623A (en)*2017-07-312017-11-28努比亚技术有限公司Store method, terminal, Cloud Server and the readable storage medium storing program for executing of recording substance
CN109979430B (en)*2017-12-282021-04-20深圳市优必选科技有限公司Robot story telling method and device, robot and storage medium
CN108363817B (en)*2018-03-212020-08-18Oppo广东移动通信有限公司File processing method and device, mobile terminal and computer readable storage medium
CN108920619A (en)*2018-06-282018-11-30Oppo广东移动通信有限公司File display method and device, storage medium and electronic equipment
CN110134817A (en)*2019-05-162019-08-16天津讯飞极智科技有限公司A kind of storage method of recording file, searching method and relevant apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102752433A (en)*2012-07-272012-10-24东莞宇龙通信科技有限公司 Method for generating terminal and call recording file names
CN103186557A (en)*2011-12-282013-07-03宇龙计算机通信科技(深圳)有限公司Method and device for automatically naming sound record or video files
CN103631819A (en)*2012-08-272014-03-12华为技术有限公司Method and system for naming picture
CN104063402A (en)*2013-03-222014-09-24昆达电脑科技(昆山)有限公司Digital image naming method and digital image recording device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7634464B2 (en)*2006-06-142009-12-15Microsoft CorporationDesigning record matching queries utilizing examples

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103186557A (en)*2011-12-282013-07-03宇龙计算机通信科技(深圳)有限公司Method and device for automatically naming sound record or video files
CN102752433A (en)*2012-07-272012-10-24东莞宇龙通信科技有限公司 Method for generating terminal and call recording file names
CN103631819A (en)*2012-08-272014-03-12华为技术有限公司Method and system for naming picture
CN104063402A (en)*2013-03-222014-09-24昆达电脑科技(昆山)有限公司Digital image naming method and digital image recording device

Also Published As

Publication numberPublication date
CN104834738A (en)2015-08-12

Similar Documents

PublicationPublication DateTitle
CN104834738B (en)recording file storage method and device
US11568876B2 (en)Method and device for user registration, and electronic device
US9898847B2 (en)Multimedia picture generating method, device and electronic device
CN107766482B (en)Information pushing and sending method, device, electronic equipment and storage medium
CN103327053B (en)Online Music method for pushing and system
CN109981910A (en)Business recommended method and apparatus
CN103077165A (en) Natural Language Dialogue Method and System
CN104281656B (en)The method and apparatus of label information are added in the application
CN104679879B (en)A kind of photo intelligent storage method and device
CN103237136B (en)The search method of mobile terminal and descriptor thereof
CN103425668A (en)Information search method and electronic equipment
WO2022143349A1 (en)Method and device for determining user intent
CN106776760A (en)Question searching method and device applied to intelligent terminal
CN114556969A (en)Data processing method, device and storage medium
CN106682006A (en)Information prompting method and device about communication content
CN105491517B (en)A kind of route recommendation method and mobile terminal
CN109640142A (en)Content recommendation method and device, equipment and storage medium
CN104952451A (en)Sound recording processing method and sound recording processing device
CN108009251A (en)A kind of image file searching method and device
CN105843865B (en) Media file playback method and device
CN108595141A (en)Pronunciation inputting method and device, computer installation and computer readable storage medium
CN104933091B (en)A kind of method and terminal of file management
US10860799B2 (en)Answering entity-seeking queries
CN112487236A (en)Method, device, equipment and storage medium for determining associated song list
CN105915503A (en)Synchronous song demanding singing method and apparatus

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
EXSBDecision made by sipo to initiate substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

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

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

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

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

CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180911


[8]ページ先頭

©2009-2025 Movatter.jp