[go: up one dir, main page]

CN114864047A - Recipe recommendation method, storage medium and electronic device - Google Patents

Recipe recommendation method, storage medium and electronic device Download PDF

Info

Publication number
CN114864047A
CN114864047A CN202210320809.7A CN202210320809A CN114864047A CN 114864047 A CN114864047 A CN 114864047A CN 202210320809 A CN202210320809 A CN 202210320809A CN 114864047 A CN114864047 A CN 114864047A
Authority
CN
China
Prior art keywords
sound source
source object
audio
recipe
recipe information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210320809.7A
Other languages
Chinese (zh)
Inventor
陈皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210320809.7A priority Critical patent/CN114864047A/en
Publication of CN114864047A publication Critical patent/CN114864047A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/60ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets
    • 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L17/00Speaker identification or verification techniques
    • G10L17/22Interactive procedures; Man-machine interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Epidemiology (AREA)
  • Nutrition Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种食谱推荐方法、存储介质及电子装置,涉及智能家居/智慧家庭技术领域,该食谱推荐方法包括:获取待识别音频;在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;根据声纹特征确定待识别音频关联的声源对象;在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息。采用上述技术方案,解决了由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题。

Figure 202210320809

The present application discloses a recipe recommendation method, a storage medium and an electronic device, and relates to the technical field of smart home/smart home. The recipe recommendation method includes: acquiring audio to be recognized; when semantic features of the audio to be recognized meet recipe recommendation conditions , obtain the voiceprint feature of the audio to be recognized, wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized, and the voiceprint feature is the feature of the voiceprint information corresponding to the audio to be recognized; The sound source object; when the object attribute of the sound source object is obtained, obtain the first recipe information according to the object attribute of the sound source object; when the object attribute of the sound source object is not obtained, obtain the second recipe information. By adopting the above technical solution, the technical problem that the specified user cannot be accurately recommended due to the generalized recommended recipe for the user is solved.

Figure 202210320809

Description

食谱推荐方法、存储介质及电子装置Recipe recommendation method, storage medium and electronic device

技术领域technical field

本申请涉及通信领域,具体而言,涉及一种食谱推荐方法、存储介质及电子装置。The present application relates to the field of communications, and in particular, to a recipe recommendation method, a storage medium, and an electronic device.

背景技术Background technique

目前,很多应用程序具备为用户进行食谱推荐的功能,用户可以从推荐的食谱中进行选择。At present, many applications have the function of recommending recipes for users, and users can choose from the recommended recipes.

然而,应用程序在为用户推荐食谱时,通常是泛化的进行推荐,对于指定用户无法做精准推荐。However, when an application recommends recipes to users, it is usually generalized and cannot make precise recommendations for specific users.

针对相关技术中,由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题,尚未提出有效的解决方案。In the related art, due to the generalized recommended recipes for users, there is no effective solution to the technical problem that an accurate recommendation cannot be made for a specified user.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种食谱推荐方法、存储介质及电子装置,以至少解决相关技术中,由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题。Embodiments of the present invention provide a recipe recommendation method, a storage medium, and an electronic device to at least solve the technical problem in the related art that an accurate recommendation cannot be made for a specified user due to a generalized recommended recipe for a user.

根据本发明实施例的一个实施例,提供了一种食谱推荐方法,包括:获取待识别音频;在上述待识别音频的语义特征满足食谱推荐条件的情况下,获取上述待识别音频的声纹特征,其中,上述语义特征为上述待识别音频对应的语义内容的特征,上述声纹特征为上述待识别音频对应的声纹信息的特征;根据上述声纹特征确定上述待识别音频关联的声源对象;在获取到上述声源对象的对象属性的情况下,根据上述声源对象的对象属性获取第一食谱信息,其中,上述第一食谱信息为与上述声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,上述第二食谱信息为预设的基础食谱信息。According to an embodiment of the present invention, a recipe recommendation method is provided, including: acquiring audio to be recognized; and acquiring a voiceprint feature of the audio to be recognized when the semantic feature of the audio to be recognized satisfies a recipe recommendation condition , wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized, the voiceprint feature is the feature of the voiceprint information corresponding to the audio to be recognized; the sound source object associated with the audio to be recognized is determined according to the voiceprint feature In the case of acquiring the object attribute of the above-mentioned sound source object, obtain first recipe information according to the object attribute of the above-mentioned sound source object, wherein the above-mentioned first recipe information is the matching degree with the object attribute of the above-mentioned sound source object Recipe information that reaches a preset threshold; in the case that the object attribute of the sound source object is not acquired, acquire second recipe information, wherein the second recipe information is preset basic recipe information.

在一个示例性实施例中,上述根据上述声纹特征确定上述待识别音频关联的声源对象,包括以下之一:将上述声纹特征发送给第三方服务器,在上述第三方服务器利用第一目标算法处理上述声纹特征,得到上述待识别音频关联的声源对象之后,接收上述第三方服务器返回的上述待识别音频关联的声源对象;利用本地存储的第二目标算法处理上述声纹特征,得到上述待识别音频关联的声源对象。In an exemplary embodiment, determining the sound source object associated with the audio to be identified according to the voiceprint feature includes one of the following: sending the voiceprint feature to a third-party server, and using the first target in the third-party server The algorithm processes the voiceprint feature, and after obtaining the sound source object associated with the audio to be identified, receiving the sound source object associated with the audio to be identified returned by the third-party server; using the locally stored second target algorithm to process the voiceprint feature, Obtain the sound source object associated with the audio to be identified.

在一个示例性实施例中,上述利用本地存储的第二目标算法处理上述声纹特征,得到上述待识别音频关联的声源对象,包括:对上述声纹特征进行降维处理;利用聚类算法得到上述待识别音频关联的声源对象。In an exemplary embodiment, using the locally stored second target algorithm to process the voiceprint feature to obtain the sound source object associated with the audio to be identified includes: performing dimension reduction processing on the voiceprint feature; using a clustering algorithm Obtain the sound source object associated with the audio to be identified.

在一个示例性实施例中,上述在获取到上述声源对象的对象属性的情况下,根据上述声源对象的对象属性获取第一食谱信息,包括:在数据库中存储有与上述声源对象相关联的固定食谱的情况下,获取上述固定食谱的食谱信息。In an exemplary embodiment, the obtaining the first recipe information according to the object attribute of the sound source object when the object attribute of the sound source object is obtained includes: storing information related to the sound source object in the database. In the case of a linked fixed recipe, obtain the recipe information of the above fixed recipe.

在一个示例性实施例中,上述在获取到上述声源对象的对象属性的情况下,根据上述声源对象的对象属性获取第一食谱信息,包括:在数据库中未存储与上述声源对象相关联的固定食谱的情况下,根据上述数据库中存储的上述声源对象的对象属性,获取与上述声源对象的对象属性匹配度达到预设阈值的食谱信息。In an exemplary embodiment, the obtaining the first recipe information according to the object attribute of the sound source object when the object attribute of the sound source object is obtained includes: not storing a database related to the sound source object In the case of a linked fixed recipe, according to the object attribute of the sound source object stored in the database, the recipe information whose matching degree with the object attribute of the sound source object reaches a preset threshold is obtained.

在一个示例性实施例中,上述在未获取到上述声源对象的对象属性的情况下,获取第二食谱信,包括:在数据库中未存储上述声源对象的相关信息的情况下,获取预设的基础食谱信息。In an exemplary embodiment, the obtaining the second recipe information without obtaining the object attribute of the sound source object includes: obtaining the pre-recipe information under the condition that the relevant information of the sound source object is not stored in the database. basic recipe information.

在一个示例性实施例中,上述在数据库中未存储上述声源对象的相关信息的情况下,获取预设的基础食谱信息,包括:在数据库中未存储上述声源对象的相关信息的情况下,根据上述声纹特征确定上述声源对象所属的角色;根据上述声源对象所属的角色,获取与上述声源对象所属的角色匹配的基础食谱信息。In an exemplary embodiment, in the case that the relevant information of the sound source object is not stored in the database, obtaining the preset basic recipe information includes: in the case that the relevant information of the sound source object is not stored in the database , determining the role to which the sound source object belongs according to the voiceprint feature; and acquiring basic recipe information matching the role to which the sound source object belongs according to the role to which the sound source object belongs.

根据本发明实施例的另一个实施例,还提供了一种食谱推荐装置,包括:第一获取模块,用于获取待识别音频;第二获取模块,用于在上述待识别音频的语义特征满足食谱推荐条件的情况下,获取上述待识别音频的声纹特征,其中,上述语义特征为上述待识别音频对应的语义内容的特征,上述声纹特征为上述待识别音频对应的声纹信息的特征;确定模块,用于根据上述声纹特征确定上述待识别音频关联的声源对象;第三获取模块,用于在获取到上述声源对象的对象属性的情况下,根据上述声源对象的对象属性获取第一食谱信息,其中,上述第一食谱信息为与上述声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到上述声源对象的对象属性的情况下,获取第二食谱信息,其中,上述第二食谱信息为预设的基础食谱信息。According to another embodiment of the embodiments of the present invention, a recipe recommendation apparatus is further provided, including: a first acquisition module, configured to acquire the audio to be recognized; and a second acquisition module, configured to satisfy the above-mentioned semantic features of the audio to be recognized In the case of recipe recommendation conditions, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized, and the voiceprint feature is the feature of the voiceprint information corresponding to the audio to be recognized. A determination module is used to determine the sound source object associated with the audio to be identified according to the above-mentioned voiceprint feature; the third acquisition module is used to obtain the object attribute of the above-mentioned sound source object according to the above-mentioned sound source object. Attribute acquisition first recipe information, wherein the above-mentioned first recipe information is recipe information whose matching degree with the object attribute of the above-mentioned sound source object reaches a preset threshold; in the case where the object attribute of the above-mentioned sound source object is not obtained , and obtain second recipe information, where the above-mentioned second recipe information is preset basic recipe information.

根据本发明实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述食谱推荐方法。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above recipe recommendation method when running .

根据本发明实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述食谱推荐方法。According to another aspect of the embodiments of the present invention, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above recipe through the computer program recommended method.

在本发明实施例中,获取待识别音频;在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;根据声纹特征确定待识别音频关联的声源对象;在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。采用上述技术方案,通过获取声源对象的声纹特征,根据声纹特征确定声源对象,并向声源对象推荐与其相匹配的食谱,实现了可以精准的向指定用户进行食谱推荐,解决了由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题。In the embodiment of the present invention, the audio to be recognized is acquired; if the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, the voiceprint feature of the audio to be recognized is acquired, wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized , the voiceprint feature is the feature of the voiceprint information corresponding to the audio to be identified; the sound source object associated with the audio to be identified is determined according to the voiceprint feature; when the object attribute of the sound source object is obtained, according to the object attribute of the sound source object Obtain the first recipe information, wherein the first recipe information is the recipe information whose matching degree with the object attribute of the sound source object reaches a preset threshold; if the object attribute of the sound source object is not obtained, obtain the second recipe information. Recipe information, wherein the second recipe information is preset basic recipe information. By adopting the above technical solution, by acquiring the voiceprint feature of the sound source object, determining the sound source object according to the voiceprint feature, and recommending a matching recipe to the sound source object, it is possible to accurately recommend the recipe to the specified user, and solve the problem of solving the problem. Due to the generalized recommended recipes for users, there is a technical problem that an accurate recommendation cannot be made for a specified user.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.

图1是根据本申请实施例的一种可选的食谱推荐方法的应用场景的示意图;1 is a schematic diagram of an application scenario of an optional recipe recommendation method according to an embodiment of the present application;

图2是根据本发明实施例的一种可选的食谱推荐方法的流程图;2 is a flowchart of an optional recipe recommendation method according to an embodiment of the present invention;

图3是根据本发明实施例的一种可选的食谱推荐方法的示意图;3 is a schematic diagram of an optional recipe recommendation method according to an embodiment of the present invention;

图4是根据本发明实施例的另一种可选的食谱推荐方法的示意图;4 is a schematic diagram of another optional recipe recommendation method according to an embodiment of the present invention;

图5是根据本发明实施例的一种可选的食谱推荐装置的结构框图。FIG. 5 is a structural block diagram of an optional recipe recommendation apparatus according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

根据本申请实施例的一个方面,提供了一种食谱推荐方法。该食谱推荐方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(IntelligenceHouse)生态等全屋智能数字化控制应用场景。可选地,在本实施例中,上述食谱推荐方法可以应用于如图1所示的由终端设备102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端设备102进行连接,可用于为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器104提供数据存储服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,用于为服务器104提供数据运算服务。According to an aspect of the embodiments of the present application, a recipe recommendation method is provided. The recipe recommendation method is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart house ecology. Optionally, in this embodiment, the above recipe recommendation method may be applied to the hardware environment formed by the terminal device 102 and the server 104 as shown in FIG. 1 . As shown in FIG. 1 , the server 104 is connected to the terminal device 102 through the network, and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal, and a database can be set on the server or independent of the server for To provide the server 104 with data storage services, cloud computing and/or edge computing services may be configured on the server or independently of the server for providing the server 104 with data computing services.

上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The above network may include, but is not limited to, at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: a wide area network, a metropolitan area network, and a local area network, and the wireless network may include but not limited to at least one of the following: WIFI (Wireless Fidelity, wireless fidelity), Bluetooth. The terminal device 102 may not be limited to PCs, mobile phones, tablet computers, smart air conditioners, smart hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing devices, smart dishwashers, and smart projection devices. , Smart TV, Smart Clothes Rack, Smart Curtain, Smart Video, Smart Socket, Smart Audio, Smart Speaker, Smart Fresh Air Equipment, Smart Kitchen and Bathroom Equipment, Smart Bathroom Equipment, Smart Sweeping Robot, Smart Window Cleaning Robot, Smart Mopping Robot, Smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.

在本实施例中提供了一种食谱推荐方法,图2是根据本发明实施例的食谱推荐方法的流程图,该流程包括如下步骤:A recipe recommendation method is provided in this embodiment, and FIG. 2 is a flowchart of the recipe recommendation method according to an embodiment of the present invention, and the process includes the following steps:

步骤S202,获取待识别音频;Step S202, acquiring the audio to be recognized;

步骤S204,在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;Step S204, in the case that the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized, and the voiceprint feature is the corresponding feature of the audio to be recognized. characteristics of the voiceprint information;

步骤S206,根据声纹特征确定待识别音频关联的声源对象;Step S206, determining the sound source object associated with the audio to be identified according to the voiceprint feature;

步骤S208,在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。Step S208, in the case of obtaining the object attribute of the sound source object, obtain first recipe information according to the object attribute of the sound source object, wherein the first recipe information is that the matching degree with the object attribute of the sound source object reaches a predetermined level. Recipe information with a threshold value is set; in the case that the object attribute of the sound source object is not obtained, second recipe information is obtained, wherein the second recipe information is preset basic recipe information.

可选地,在本实施例中,获取音频的设备可以包括但不限于各种具备语音识别功能的设备,例如,智能冰箱,智能空调,智能洗衣机,在此不作限定;待识别音频可以包括但不限于人类、动物、风、机器等发出的各种不同类型的声音。Optionally, in this embodiment, the device for acquiring audio may include, but is not limited to, various devices with speech recognition functions, such as smart refrigerators, smart air conditioners, and smart washing machines, which are not limited here; the audio to be recognized may include but not limited to Not limited to the various types of sounds made by humans, animals, wind, machines, etc.

可选地,在本实施例中,待识别音频的语义特征满足食谱推荐条件可以包括但不限于语义特征与吃饭相关;获取待识别音频的声纹特征可以包括但不限于利用第三方服务器或本地存储的算法来识别音频的声纹特征。Optionally, in this embodiment, the semantic features of the audio to be recognized that satisfy the recipe recommendation conditions may include, but are not limited to, the semantic features are related to eating; acquiring the voiceprint features of the audio to be recognized may include, but is not limited to, using a third-party server or local Stored algorithms to identify the voiceprint features of audio.

可选地,在本实施例中,声源对象可以包括但不限于用户标识,用户的个人属性信息。例如,数据库中存储了用户标识与声纹特征的对应关系、个人属性信息与声纹特征的对应关系,其中,个人属性信息可以包括但不限于性别、身高、体重、饮食爱好等。Optionally, in this embodiment, the sound source object may include, but is not limited to, a user identifier and personal attribute information of the user. For example, the database stores the correspondence between user IDs and voiceprint features, and the correspondence between personal attribute information and voiceprint features, where personal attribute information may include, but is not limited to, gender, height, weight, and dietary preferences.

可选地,在本实施例中,与声源对象的对象属性之间的匹配度达到预设阈值的食物可以包括但不限于与声源对象相关的固定食谱、与声源对象之前的食谱信息相关联的食谱、与声源对象所属的角色相关联的食谱;显示声源对象匹配的食谱信息的方式至少包括以下一种或多种方式:在设备屏幕上展示文本信息的方式、语音播报的方式、向与所述声源对象相关联的设备发送短信的方式,在此不作限定。Optionally, in this embodiment, the food whose matching degree with the object attribute of the sound source object reaches a preset threshold may include, but is not limited to, a fixed recipe related to the sound source object, and recipe information before the sound source object. Associated recipes, recipes associated with the role to which the sound source object belongs; methods for displaying recipe information matching the sound source object include at least one or more of the following methods: the method of displaying text information on the device screen, the method of voice broadcast The method and the method of sending the short message to the device associated with the sound source object are not limited here.

通过本申请实施例提供的方案,获取待识别音频;在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;根据声纹特征确定待识别音频关联的声源对象;在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。采用上述技术方案,通过获取声源对象的声纹特征,根据声纹特征确定声源对象,并向声源对象推荐与其相匹配的食谱,实现了可以精准的向指定用户进行食谱推荐,解决了由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题。Acquire the audio to be recognized through the solution provided by the embodiment of the present application; in the case that the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the semantic content corresponding to the audio to be recognized The voiceprint feature is the feature of the voiceprint information corresponding to the audio to be identified; the sound source object associated with the audio to be identified is determined according to the voiceprint feature; when the object attribute of the sound source object is obtained, according to the sound source object The object attribute obtains first recipe information, wherein the first recipe information is the recipe information whose matching degree with the object attribute of the sound source object reaches a preset threshold; in the case where the object attribute of the sound source object is not obtained, obtain The second recipe information, wherein the second recipe information is preset basic recipe information. By adopting the above technical solution, by acquiring the voiceprint feature of the sound source object, determining the sound source object according to the voiceprint feature, and recommending a matching recipe to the sound source object, it is possible to accurately recommend the recipe to the specified user, and solve the problem of solving the problem. Due to the generalized recommended recipes for users, there is a technical problem that an accurate recommendation cannot be made for a specified user.

在一个示例性实施例中,根据声纹特征确定待识别音频关联的声源对象,包括以下之一:将声纹特征发送给第三方服务器,在第三方服务器利用第一目标算法处理声纹特征,得到待识别音频关联的声源对象之后,接收第三方服务器返回的待识别音频关联的声源对象;利用本地存储的第二目标算法处理声纹特征,得到待识别音频关联的声源对象。In an exemplary embodiment, determining the sound source object associated with the audio to be identified according to the voiceprint feature includes one of the following: sending the voiceprint feature to a third-party server, where the third-party server uses a first target algorithm to process the voiceprint feature , after obtaining the sound source object associated with the audio to be identified, receive the sound source object associated with the audio to be identified returned by the third-party server; use the locally stored second target algorithm to process the voiceprint feature to obtain the sound source object associated with the audio to be identified.

可选地,在本实施例中,在设备本地未存储有目标处理算法或者设备运行压力超过预设阈值的情况下,可以将声纹特征发送给第三方服务器,由第三方服务器利用声纹识别算法识别出待识别音频关联的声源对象,在此不作限定;在设备本地存储有目标处理算法且设备运行压力未超过预设阈值的情况下,可以利用设备本地存储的声纹识别算法识别出待识别音频关联的声源对象,在此不作限定。Optionally, in this embodiment, when the target processing algorithm is not stored locally on the device or the operating pressure of the device exceeds a preset threshold, the voiceprint feature can be sent to a third-party server, and the third-party server uses the voiceprint to identify the algorithm. The algorithm identifies the sound source object associated with the audio to be identified, which is not limited here; if the target processing algorithm is stored locally on the device and the operating pressure of the device does not exceed the preset threshold, the voiceprint recognition algorithm stored locally on the device can be used to identify The sound source object associated with the audio to be identified is not limited here.

通过本申请实施例提供的方案,通过第三方服务器或设备本身识别待识别音频关联的声源对象,提高了声纹识别的灵活性。With the solution provided by the embodiment of the present application, the sound source object associated with the audio to be recognized is recognized by the third-party server or the device itself, which improves the flexibility of voiceprint recognition.

在一个示例性实施例中,利用本地存储的第二目标算法处理声纹特征,得到待识别音频关联的声源对象,包括:对声纹特征进行降维处理;利用聚类算法得到待识别音频关联的声源对象。In an exemplary embodiment, using a locally stored second target algorithm to process the voiceprint feature to obtain a sound source object associated with the audio to be identified includes: performing dimension reduction processing on the voiceprint feature; using a clustering algorithm to obtain the audio to be identified The associated sound source object.

可选地,在本实施例中,利用设备本地存储的声纹识别算法识别待识别音频关联的声源对象时,可以通过与声源对象相关联的交互记录获取声源对象的声纹特征,并通过降维、聚类算法进行整合,以及定位出声源对象的质心范围来识别。Optionally, in this embodiment, when using the voiceprint recognition algorithm stored locally on the device to identify the sound source object associated with the audio to be identified, the voiceprint feature of the sound source object can be obtained through the interaction record associated with the sound source object, And through dimensionality reduction, clustering algorithm for integration, and locate the centroid range of the sound source object to identify.

通过本申请实施例提供的方案,通过降维、聚类算法来识别待识别音频关联的声源对象,提高了识别的准确性。With the solution provided by the embodiment of the present application, the sound source object associated with the audio to be identified is identified through a dimensionality reduction and clustering algorithm, which improves the accuracy of identification.

在一个示例性实施例中,在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,包括:在数据库中存储有与声源对象相关联的固定食谱的情况下,获取固定食谱的食谱信息。In an exemplary embodiment, when the object attribute of the sound source object is obtained, obtaining the first recipe information according to the object attribute of the sound source object includes: storing a fixed recipe associated with the sound source object in the database , get the recipe information of the fixed recipe.

可选地,在本实施例中,在数据库中存储有与声源对象相关联的固定食谱的情况下,例如,数据库中预先存储了声源对象近一周或者近一个月的食谱信息,则可以根据当天的日期获取与当天日期相关联的食谱信息。如图3所示,数据库中存储了声源对象近一周的食谱信息,若今天是星期二,则设备获取的食谱信息为“套餐B”。Optionally, in this embodiment, in the case where a fixed recipe associated with the sound source object is stored in the database, for example, the database has pre-stored recipe information of the sound source object for nearly a week or a month, you can Get recipe information associated with today's date based on today's date. As shown in Fig. 3, the database stores the recipe information of the sound source object for the past week. If today is Tuesday, the recipe information obtained by the device is "Meal B".

通过本申请实施例提供的方案,在数据库中存储有与声源对象相关联的固定食谱的情况下,获取声源对象匹配的固定食谱,达到了精准为指定用户推荐食谱的效果。With the solution provided by the embodiments of the present application, in the case where a fixed recipe associated with the sound source object is stored in the database, a fixed recipe matching the sound source object is obtained, which achieves the effect of accurately recommending a recipe for a specified user.

在一个示例性实施例中,在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,包括:在数据库中未存储与声源对象相关联的固定食谱的情况下,根据数据库中存储的声源对象的对象属性,获取与声源对象的对象属性匹配度达到预设阈值的食谱信息。In an exemplary embodiment, when the object attribute of the sound source object is obtained, obtaining the first recipe information according to the object attribute of the sound source object includes: not storing a fixed recipe associated with the sound source object in the database In the case of , according to the object attribute of the sound source object stored in the database, the recipe information whose matching degree with the object attribute of the sound source object reaches a preset threshold is obtained.

可选地,在本实施例中,声源对象的对象属性可以包括但不限于用户标识、性别、身高、体重、饮食爱好;在数据库中存储了与用户标识相关联的之前的食谱信息的情况下,可以向声源对象推荐与之前的食谱信息相关联的食谱;在对象属性信息为性别、身高、体重、饮食爱好等信息的情况下,可以向声源对象推荐符合声源对象的性别、身高、体重、饮食爱好等信息的相关食谱。Optionally, in this embodiment, the object attributes of the sound source object may include, but are not limited to, a user ID, gender, height, weight, and dietary preferences; in the case where the previous recipe information associated with the user ID is stored in the database In this case, the recipes associated with the previous recipe information can be recommended to the sound source object; if the object attribute information is information such as gender, height, weight, diet preference, etc., the sound source object can be recommended to the sound source object according to the gender, Recipes for height, weight, dietary preferences, and more.

通过本申请实施例提供的方案,通过获取与声源对象的对象属性匹配的食谱信息,提高了向指定用户推荐食谱的精准率。With the solution provided by the embodiment of the present application, by acquiring recipe information matching the object attribute of the sound source object, the accuracy of recommending recipes to a designated user is improved.

在一个示例性实施例中,在未获取到声源对象的对象属性的情况下,获取第二食谱信,包括:在数据库中未存储声源对象的相关信息的情况下,获取预设的基础食谱信息。In an exemplary embodiment, obtaining the second recipe information without obtaining the object attribute of the sound source object includes: obtaining a preset basis under the condition that the relevant information of the sound source object is not stored in the database Recipe information.

可选地,在本实施例中,在数据库中未存储声源对象的相关信息的情况下,可以向声源对象推荐基础食谱信息,其中,基础食谱信息可以包括但不限于用户接受度比较高的食谱、受大多数用户喜爱的食谱,例如,西红柿炒鸡蛋。Optionally, in this embodiment, in the case where the relevant information of the sound source object is not stored in the database, basic recipe information may be recommended to the sound source object, wherein the basic recipe information may include, but is not limited to, a relatively high degree of user acceptance. , recipes that are loved by most users, such as scrambled eggs with tomatoes.

通过本申请实施例提供的方案,在数据库中未存储声源对象的相关信息的情况下,显获取预设的基础食谱信息,提高了向指定用户推荐食谱的精准率。With the solution provided by the embodiments of the present application, in the case where the relevant information of the sound source object is not stored in the database, the preset basic recipe information is obviously obtained, which improves the accuracy of recommending recipes to a designated user.

在一个示例性实施例中,在数据库中未存储声源对象的相关信息的情况下,获取预设的基础食谱信息,包括:在数据库中未存储声源对象的相关信息的情况下,根据声纹特征确定声源对象所属的角色;根据声源对象所属的角色,获取与声源对象所属的角色匹配的基础食谱信息。In an exemplary embodiment, in the case that the relevant information of the sound source object is not stored in the database, acquiring the preset basic recipe information includes: in the case that the relevant information of the sound source object is not stored in the database, according to the sound source object The pattern feature determines the role to which the sound source object belongs; according to the role to which the sound source object belongs, basic recipe information matching the role to which the sound source object belongs is obtained.

可选地,在本实施例中,可以根据声纹特征确定声源对象所属的角色,例如,老人、中年、小孩等;在确定了所属角色的情况下,可以获取与声源对象所属的角色匹配的基础食谱信息。例如,在所属对象为老人或小孩的情况下,可以向声源对象推荐不辣或偏软的食谱;在所属对象为中年的情况下,可以向声源对象推荐偏辣的食谱。Optionally, in this embodiment, the character to which the sound source object belongs can be determined according to the voiceprint feature, for example, the old man, the middle-aged, the child, etc.; when the character to which the sound source object belongs is determined, the character belonging to the sound source object can be obtained. Basic recipe information for character matching. For example, when the target is an elderly person or a child, a non-spicy or soft recipe can be recommended to the sound source target; when the target is middle-aged, a spicy recipe can be recommended to the sound source target.

通过本申请实施例提供的方案,根据声源对象所属的角色,获取与声源对象所属的角色匹配的基础食谱信息,提高了向指定用户推荐食谱的精准率。With the solution provided by the embodiment of the present application, basic recipe information matching the role to which the sound source object belongs is obtained according to the role to which the sound source object belongs, which improves the accuracy of recommending recipes to a designated user.

为了更好的理解上述食谱推荐方法的过程,以下再结合可选实施例对上述食谱推荐方法进行说明,但不用于限定本发明实施例的技术方案。In order to better understand the process of the above recipe recommendation method, the above recipe recommendation method is described below with reference to optional embodiments, but is not used to limit the technical solutions of the embodiments of the present invention.

在本实施例中提供了一种食谱推荐方法的示意图,如图4所示。A schematic diagram of a recipe recommendation method is provided in this embodiment, as shown in FIG. 4 .

用户在触发“今天吃什么呢,今天做什么饭”等音频后,会触发程序根据当前用户的声纹特征判断具体是哪一个用户或者是老人、小孩等;After the user triggers audios such as "what to eat today, what to eat today", etc., the program will trigger the program to determine which user or the elderly, children, etc. according to the current user's voiceprint characteristics;

获取声纹特征后可以直接接入第三方服务声纹识人能力,也可以通过用户平时交互的记录获取声纹特征然后降维,聚类算法整合,定位当前用户的质心范围来获取;After obtaining the voiceprint features, you can directly access the third-party service voiceprint recognition ability, or you can obtain the voiceprint features through the user's usual interaction records, then reduce the dimension, integrate the clustering algorithm, and locate the current user's centroid range to obtain;

程序会主动查询推荐食谱(此食谱会动态维护),如果没有,会主动查询基础食谱,在用户选择自己需要的食谱后,自动将该食谱添加至该用户自定义的推荐食谱中,形成闭环;The program will actively query the recommended recipes (this recipe will be dynamically maintained), if not, it will actively query the basic recipes, and after the user selects the recipes he needs, it will automatically add the recipes to the user-defined recommended recipes to form a closed loop;

在交互过程中,会主动与用户进行人性化交互,例如;“为你推荐西红柿炒鸡蛋,做法…”等;During the interaction process, it will take the initiative to carry out humanized interaction with users, such as; "Recommend tomato scrambled eggs for you, practice..."

在业务处理中会基于redis做缓存,比如用户信息等,提高响应时间。In business processing, caching will be done based on redis, such as user information, to improve response time.

在本发明实施例中用到的体系架构如下:The architecture used in the embodiment of the present invention is as follows:

1)Spring Boot1) Spring Boot

Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。通过这种方式,Spring Boot致力于在蓬勃发展的快速应用开发领域(rapid application development)成为领导者。Spring Boot is a new framework provided by the Pivotal team, designed to simplify the initial setup and development of new Spring applications. The framework uses a specific way to configure, so that developers no longer need to define boilerplate configuration. In this way, Spring Boot aims to be a leader in the burgeoning field of rapid application development.

2)redis缓存2) redis cache

redis是一个高性能的key-value数据库。支持数据的持久化,支持多种数据结构,支持数据的备份。可减轻数据库压力,提高整体性能,带来更优的用户体验。redis is a high-performance key-value database. Supports data persistence, supports multiple data structures, and supports data backup. It can reduce the pressure on the database, improve the overall performance, and bring a better user experience.

3)nacos3) Nacos

nacos是构建以“服务”为中心的现代应用架构(例如微服务范式、云原生范式)的服务基础设施,致力于微服务的发现、管理和信息配置,能帮助开发者快速实现动态服务发现、服务配置、服务元数据及流量管理,从而更敏捷、更容易的构建、交付和管理微服务平台。nacos支持几乎所有主流类型(诸如:Kubernetes Service、gRPC&Dubbo RPC Service、SpringCloud RESTful Service)的服务的发现、配置和管理。nacos is a service infrastructure for building modern application architectures centered on "services" (such as microservices paradigm, cloud native paradigm), dedicated to the discovery, management and information configuration of microservices, and can help developers quickly realize dynamic service discovery, Service configuration, service metadata and traffic management for more agile and easier building, delivery and management of microservice platforms. nacos supports the discovery, configuration and management of almost all mainstream types of services (such as: Kubernetes Service, gRPC&Dubbo RPC Service, SpringCloud RESTful Service).

4)websocket4) websocket

websocket是一种在单个TCP连接上进行全双工通信的协议,使得客户端和服务器之间的数据交换变得更加简单,允许服务端主动向客户端推送数据。在websocket API中,浏览器和服务器只需要完成一次握手,两者之间就直接可以创建持久性的连接,并进行双向数据传输。Websocket is a protocol for full-duplex communication over a single TCP connection, making data exchange between the client and server simpler, allowing the server to actively push data to the client. In the websocket API, the browser and the server only need to complete a handshake once, and a persistent connection can be created directly between the two, and two-way data transmission can be performed.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present invention.

图5是根据本发明实施例的一种食谱推荐装置的结构框图;如图5所示,包括:FIG. 5 is a structural block diagram of a recipe recommendation device according to an embodiment of the present invention; as shown in FIG. 5 , it includes:

第一获取模块501,用于获取待识别音频;The first acquisition module 501 is used to acquire the audio to be recognized;

第二获取模块502,用于在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;The second acquisition module 502 is configured to acquire the voiceprint feature of the audio to be recognized when the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized, and the voiceprint feature is the feature of the voiceprint information corresponding to the audio to be recognized;

确定模块503,用于根据声纹特征确定待识别音频关联的声源对象;A determination module 503, configured to determine the sound source object associated with the audio to be identified according to the voiceprint feature;

第三获取模块504,用于在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。The third obtaining module 504 is configured to obtain first recipe information according to the object attribute of the sound source object when the object attribute of the sound source object is obtained, wherein the first recipe information is between the object attribute of the sound source object and the sound source object. Recipe information whose matching degree reaches a preset threshold; when the object attribute of the sound source object is not acquired, acquire second recipe information, where the second recipe information is preset basic recipe information.

通过本申请实施例提供的方案,获取待识别音频;在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;根据声纹特征确定待识别音频关联的声源对象;在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。采用上述技术方案,通过获取声源对象的声纹特征,根据声纹特征确定声源对象,并向声源对象推荐与其相匹配的食谱,实现了可以精准的向指定用户进行食谱推荐,解决了由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题。Acquire the audio to be recognized through the solution provided by the embodiment of the present application; in the case that the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the semantic content corresponding to the audio to be recognized The voiceprint feature is the feature of the voiceprint information corresponding to the audio to be identified; the sound source object associated with the audio to be identified is determined according to the voiceprint feature; when the object attribute of the sound source object is obtained, according to the sound source object The object attribute obtains first recipe information, wherein the first recipe information is the recipe information whose matching degree with the object attribute of the sound source object reaches a preset threshold; in the case where the object attribute of the sound source object is not obtained, obtain The second recipe information, wherein the second recipe information is preset basic recipe information. By adopting the above technical solution, by acquiring the voiceprint feature of the sound source object, determining the sound source object according to the voiceprint feature, and recommending a matching recipe to the sound source object, it is possible to accurately recommend the recipe to the specified user, and solve the problem of solving the problem. Due to the generalized recommended recipes for users, there is a technical problem that an accurate recommendation cannot be made for a specified user.

本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项的方法。An embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for executing the following steps:

S1,获取待识别音频;S1, obtain the audio to be recognized;

S2,在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;S2, in the case that the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized, and the voiceprint feature is the feature corresponding to the audio to be recognized Characteristics of voiceprint information;

S3,根据声纹特征确定待识别音频关联的声源对象;S3, determine the sound source object associated with the audio to be identified according to the voiceprint feature;

S4,在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。S4, in the case of obtaining the object attribute of the sound source object, obtain first recipe information according to the object attribute of the sound source object, wherein the first recipe information is that the matching degree with the object attribute of the sound source object reaches a preset level Recipe information of a threshold; in the case where the object attribute of the sound source object is not acquired, acquire second recipe information, where the second recipe information is preset basic recipe information.

通过本申请实施例提供的方案,获取待识别音频;在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;根据声纹特征确定待识别音频关联的声源对象;在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。采用上述技术方案,通过获取声源对象的声纹特征,根据声纹特征确定声源对象,并向声源对象推荐与其相匹配的食谱,实现了可以精准的向指定用户进行食谱推荐,解决了由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题。Acquire the audio to be recognized through the solution provided by the embodiment of the present application; in the case that the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the semantic content corresponding to the audio to be recognized The voiceprint feature is the feature of the voiceprint information corresponding to the audio to be identified; the sound source object associated with the audio to be identified is determined according to the voiceprint feature; when the object attribute of the sound source object is obtained, according to the sound source object The object attribute obtains first recipe information, wherein the first recipe information is the recipe information whose matching degree with the object attribute of the sound source object reaches a preset threshold; in the case where the object attribute of the sound source object is not obtained, obtain The second recipe information, wherein the second recipe information is preset basic recipe information. By adopting the above technical solution, by acquiring the voiceprint feature of the sound source object, determining the sound source object according to the voiceprint feature, and recommending a matching recipe to the sound source object, it is possible to accurately recommend the recipe to the specified user, and solve the problem of solving the problem. Due to the generalized recommended recipes for users, there is a technical problem that an accurate recommendation cannot be made for a specified user.

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.

可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

S1,获取待识别音频;S1, obtain the audio to be recognized;

S2,在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;S2, in the case that the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the feature of the semantic content corresponding to the audio to be recognized, and the voiceprint feature is the feature corresponding to the audio to be recognized Characteristics of voiceprint information;

S3,根据声纹特征确定待识别音频关联的声源对象;S3, determine the sound source object associated with the audio to be identified according to the voiceprint feature;

S4,在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。S4, in the case of obtaining the object attribute of the sound source object, obtain first recipe information according to the object attribute of the sound source object, wherein the first recipe information is that the matching degree with the object attribute of the sound source object reaches a preset level Recipe information of a threshold; in the case where the object attribute of the sound source object is not acquired, acquire second recipe information, where the second recipe information is preset basic recipe information.

通过本申请实施例提供的方案,获取待识别音频;在待识别音频的语义特征满足食谱推荐条件的情况下,获取待识别音频的声纹特征,其中,语义特征为待识别音频对应的语义内容的特征,声纹特征为待识别音频对应的声纹信息的特征;根据声纹特征确定待识别音频关联的声源对象;在获取到声源对象的对象属性的情况下,根据声源对象的对象属性获取第一食谱信息,其中,第一食谱信息为与声源对象的对象属性之间的匹配度达到预设阈值的食谱信息;在未获取到声源对象的对象属性的情况下,获取第二食谱信息,其中,第二食谱信息为预设的基础食谱信息。采用上述技术方案,通过获取声源对象的声纹特征,根据声纹特征确定声源对象,并向声源对象推荐与其相匹配的食谱,实现了可以精准的向指定用户进行食谱推荐,解决了由于为用户泛化的推荐食谱,导致对于指定用户无法做精准推荐的技术问题。Acquire the audio to be recognized through the solution provided by the embodiment of the present application; in the case that the semantic feature of the audio to be recognized satisfies the recipe recommendation condition, acquire the voiceprint feature of the audio to be recognized, wherein the semantic feature is the semantic content corresponding to the audio to be recognized The voiceprint feature is the feature of the voiceprint information corresponding to the audio to be identified; the sound source object associated with the audio to be identified is determined according to the voiceprint feature; when the object attribute of the sound source object is obtained, according to the sound source object The object attribute obtains first recipe information, wherein the first recipe information is the recipe information whose matching degree with the object attribute of the sound source object reaches a preset threshold; in the case where the object attribute of the sound source object is not obtained, obtain The second recipe information, wherein the second recipe information is preset basic recipe information. By adopting the above technical solution, by acquiring the voiceprint feature of the sound source object, determining the sound source object according to the voiceprint feature, and recommending a matching recipe to the sound source object, it is possible to accurately recommend the recipe to the specified user, and solve the problem of solving the problem. Due to the generalized recommended recipes for users, there is a technical problem that an accurate recommendation cannot be made for a specified user.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store program codes, such as removable hard disks, magnetic disks, or optical disks.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not described herein again in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.

以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can also be made. It should be regarded as the protection scope of this application.

Claims (10)

1. A recipe recommendation method comprising:
acquiring audio to be identified;
acquiring a voiceprint feature of the audio to be recognized under the condition that the semantic feature of the audio to be recognized meets a recipe recommendation condition, wherein the semantic feature is the feature of semantic content corresponding to the audio to be recognized, and the voiceprint feature is the feature of voiceprint information corresponding to the audio to be recognized;
determining a sound source object associated with the audio to be identified according to the voiceprint features;
under the condition that the object attribute of the sound source object is obtained, obtaining first recipe information according to the object attribute of the sound source object, wherein the first recipe information is the recipe information of which the matching degree with the object attribute of the sound source object reaches a preset threshold value;
and under the condition that the object attribute of the sound source object is not acquired, acquiring second recipe information, wherein the second recipe information is preset basic recipe information.
2. The method according to claim 1, wherein the determining the sound source object associated with the audio to be identified according to the voiceprint feature comprises one of:
sending the voiceprint features to a third-party server, and receiving the sound source object associated with the audio to be identified, which is returned by the third-party server, after the third-party server processes the voiceprint features by using a first target algorithm to obtain the sound source object associated with the audio to be identified;
and processing the voiceprint characteristics by using a second target algorithm stored locally to obtain a sound source object associated with the audio to be identified.
3. The method according to claim 2, wherein the processing the voiceprint features by using a second target algorithm stored locally to obtain a sound source object associated with the audio to be identified comprises:
performing dimension reduction processing on the voiceprint features;
and obtaining the sound source object associated with the audio to be identified by utilizing a clustering algorithm.
4. The method according to claim 1, wherein the acquiring first recipe information according to the object attribute of the sound source object in the case of acquiring the object attribute of the sound source object includes:
and acquiring recipe information of the fixed recipe when the fixed recipe associated with the sound source object is stored in a database.
5. The method according to claim 1, wherein the acquiring first recipe information according to the object attribute of the sound source object in the case of acquiring the object attribute of the sound source object includes:
and under the condition that a fixed recipe related to the sound source object is not stored in a database, acquiring recipe information of which the matching degree with the object attribute of the sound source object reaches a preset threshold value according to the object attribute of the sound source object stored in the database.
6. The method of claim 1, wherein the obtaining second recipe information without obtaining the object properties of the sound source object comprises:
and under the condition that the related information of the sound source object is not stored in the database, acquiring preset basic recipe information.
7. The method according to claim 6, wherein the obtaining of the preset basic recipe information in case that the related information of the sound source object is not stored in the database comprises:
under the condition that the related information of the sound source object is not stored in a database, determining the role to which the sound source object belongs according to the voiceprint characteristics;
and acquiring basic recipe information matched with the role to which the sound source object belongs according to the role to which the sound source object belongs.
8. A recipe recommendation device, comprising:
the first acquisition module is used for acquiring the audio to be identified;
the second acquisition module is used for acquiring the voiceprint characteristics of the audio to be recognized under the condition that the semantic characteristics of the audio to be recognized meet the recipe recommendation condition, wherein the semantic characteristics are the characteristics of semantic contents corresponding to the audio to be recognized, and the voiceprint characteristics are the characteristics of voiceprint information corresponding to the audio to be recognized;
the determining module is used for determining the sound source object related to the audio to be identified according to the voiceprint characteristics;
a third obtaining module, configured to obtain first recipe information according to an object attribute of the sound source object when the object attribute of the sound source object is obtained, where the first recipe information is recipe information in which a matching degree with the object attribute of the sound source object reaches a preset threshold; and under the condition that the object attribute of the sound source object is not acquired, acquiring second recipe information, wherein the second recipe information is preset basic recipe information.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210320809.7A 2022-03-29 2022-03-29 Recipe recommendation method, storage medium and electronic device Pending CN114864047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210320809.7A CN114864047A (en) 2022-03-29 2022-03-29 Recipe recommendation method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210320809.7A CN114864047A (en) 2022-03-29 2022-03-29 Recipe recommendation method, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114864047A true CN114864047A (en) 2022-08-05

Family

ID=82628799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210320809.7A Pending CN114864047A (en) 2022-03-29 2022-03-29 Recipe recommendation method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114864047A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117558410A (en) * 2024-01-12 2024-02-13 吉林大学 Artificial intelligence-based diet management system and method for diabetic nephropathy patients

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507612A (en) * 2017-06-30 2017-12-22 百度在线网络技术(北京)有限公司 A kind of method for recognizing sound-groove and device
CN108062354A (en) * 2017-11-22 2018-05-22 上海博泰悦臻电子设备制造有限公司 Information recommendation method, system, storage medium, electronic equipment and vehicle
CN111241292A (en) * 2019-12-27 2020-06-05 珠海格力电器股份有限公司 Menu recommendation method and device, electronic equipment and storage medium
CN112069403A (en) * 2020-08-31 2020-12-11 青岛海尔智能技术研发有限公司 Menu recommendation method and device, computer equipment and storage medium
CN113764069A (en) * 2020-06-02 2021-12-07 云米互联科技(广东)有限公司 Food material management method, refrigerator, household appliance system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507612A (en) * 2017-06-30 2017-12-22 百度在线网络技术(北京)有限公司 A kind of method for recognizing sound-groove and device
CN108062354A (en) * 2017-11-22 2018-05-22 上海博泰悦臻电子设备制造有限公司 Information recommendation method, system, storage medium, electronic equipment and vehicle
CN111241292A (en) * 2019-12-27 2020-06-05 珠海格力电器股份有限公司 Menu recommendation method and device, electronic equipment and storage medium
CN113764069A (en) * 2020-06-02 2021-12-07 云米互联科技(广东)有限公司 Food material management method, refrigerator, household appliance system and storage medium
CN112069403A (en) * 2020-08-31 2020-12-11 青岛海尔智能技术研发有限公司 Menu recommendation method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117558410A (en) * 2024-01-12 2024-02-13 吉林大学 Artificial intelligence-based diet management system and method for diabetic nephropathy patients
CN117558410B (en) * 2024-01-12 2024-03-22 吉林大学 Artificial intelligence-based diet management system and method for diabetic nephropathy patients

Similar Documents

Publication Publication Date Title
US20170171336A1 (en) Method and electronic device for information recommendation
US10129352B2 (en) Information management method
US9088475B2 (en) Hierarchical service management
EP3128476A1 (en) Managing a device cloud
US20200356462A1 (en) Systems and methods for determining performance metrics of remote relational databases
CN106487928B (en) Message push method and device
CN114821236A (en) Smart home environment sensing method, system, storage medium and electronic device
CN108985954A (en) A kind of method and relevant device of incidence relation that establishing each mark
US20170374001A1 (en) Providing communication ranking scheme based on relationship graph
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN109495763A (en) Virtual objects, which record, determines method, apparatus, server and storage medium
CN114675928A (en) Method and device for constructing container image, storage medium and electronic device
US20140006374A1 (en) Method and apparatus for deriving and using trustful application metadata
CN113407830A (en) Information recommendation method and device
CN114864047A (en) Recipe recommendation method, storage medium and electronic device
CN114915514B (en) Method and device for processing intention, storage medium and electronic device
CN113535987B (en) Linkage rule matching method and related device
CN115714810A (en) Method and device for sending push message, storage medium and electronic device
CN109408737B (en) User recommendation method, device and storage medium
WO2023165051A1 (en) Identity determination method, storage medium and electronic apparatus
CN114677168A (en) Resource recommendation method, device, equipment and medium
CN117743529A (en) Information acquisition method and device, storage medium and electronic device
CN116224815B (en) Control instruction generation method, storage medium and electronic device
CN110503482A (en) An article processing method, device, terminal and storage medium
CN116319138A (en) Intelligent device scene recommendation method and device, storage medium and computer device

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