TW201826776A - Contact person adding method, electronic devices and server - Google Patents

Contact person adding method, electronic devices and server Download PDF

Info

Publication number
TW201826776A
TW201826776A TW106144850A TW106144850A TW201826776A TW 201826776 A TW201826776 A TW 201826776A TW 106144850 A TW106144850 A TW 106144850A TW 106144850 A TW106144850 A TW 106144850A TW 201826776 A TW201826776 A TW 201826776A
Authority
TW
Taiwan
Prior art keywords
electronic device
sound signal
identification information
user
contact
Prior art date
Application number
TW106144850A
Other languages
Chinese (zh)
Other versions
TWI725270B (en
Inventor
王福釙
劉占坤
王穎
Original Assignee
大陸商北京搜狗科技發展有限公司
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 大陸商北京搜狗科技發展有限公司 filed Critical 大陸商北京搜狗科技發展有限公司
Publication of TW201826776A publication Critical patent/TW201826776A/en
Application granted granted Critical
Publication of TWI725270B publication Critical patent/TWI725270B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27453Directories allowing storage of additional subscriber data, e.g. metadata
    • H04M1/27457Management thereof, e.g. manual editing of data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27453Directories allowing storage of additional subscriber data, e.g. metadata

Landscapes

  • Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the field of communication and discloses a contact person adding method, electronic devices and a server, aiming at solving the technical problem of high electronic device cost caused by a contact person adding function in the prior art. The contact person adding method includes receiving a first contact person adding request related to a first sound signal and sent by a second electronic device, wherein the first sound signal corresponds to first identification information of a first electronic device, and the second electronic device acquires the first sound signal played by the first electronic device by means of answering; determining the first identification information and second identification information of the second electronic device based on the first contact person adding request; adding a first user of the first electronic device as a contact person of a second user of the second electronic device. The contact person adding method has the advantage that contact person adding efficiency is improved.

Description

添加連絡人方法、電子設備及伺服器Add contact method, electronic device and server

本發明涉及通信領域,尤其涉及一種添加連絡人方法、電子設備及伺服器。The present invention relates to the field of communications, and in particular, to a method for adding a contact person, an electronic device, and a server.

隨著科學技術的不斷發展,電子技術也得到了飛速的發展,電子產品的種類也越來越多,人們也享受到了科技發展帶來的各種便利。現在人們可以通過各種類型的電子設備,享受隨著科技發展帶來的舒適生活。例如,智慧型手錶、智慧型手機、平板電腦等電子設備已經成為人們生活中一個重要的組成部分,其可以包含各種功能。With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products. People also enjoy the convenience brought by the development of science and technology. Now people can enjoy the comfortable life brought by the development of science and technology through various types of electronic devices. For example, electronic devices such as smart watches, smart phones, and tablet computers have become an important part of people's lives, which can include various functions.

以電子設備為智慧型手錶為例,其除指示時間之外,還具有提醒、導航、校準、監測、交互等其中一種或者多種功能,顯示方式包括指標、數字、圖像等,另外,智慧型手錶彼此之間還可以互相通信。現有技術中,如果智慧型手錶如果需要添加另一智慧型手錶作為連絡人的話,可以通過搜索藍牙和WIFI位址的方式,由於需要藍牙模組和WIFI模組支援,從而存在著成本較高的技術問題。Taking an electronic device as a smart watch as an example, in addition to indicating time, it also has one or more functions such as reminding, navigation, calibration, monitoring, and interaction. The display mode includes indicators, numbers, images, etc. Watches can also communicate with each other. In the prior art, if a smart watch needs to add another smart watch as a contact person, it can search for the Bluetooth and WIFI addresses. Since the Bluetooth module and the WIFI module are needed, there is a high cost. technical problem.

本發明提供一種添加連絡人方法、電子設備及伺服器,以解決現有技術中添加連絡人功能導致的電子設備成本較高的技術問題。The invention provides a method for adding a contact person, an electronic device and a server, so as to solve the technical problem of high cost of the electronic device caused by adding a contact person function in the prior art.

第一方面,本發明實施例提供一種添加連絡人方法,包括: 接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號; 基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊; 基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。According to a first aspect, an embodiment of the present invention provides a method for adding a contact, including: receiving a first contact adding request associated with a first sound signal sent by a second electronic device, where the first sound signal corresponds to a first contact of the first electronic device; An identification information, the second electronic device obtains the first sound signal played by the first electronic device in a listening manner; and determines the first identification information and the first identification information based on the first add contact request Second identification information of a second electronic device; and based on the first identification information and the second identification information, adding a first user of the first electronic device as a second user of the second electronic device Contacts.

結合第一方面,在第一種可選的實施例中,所述基於所述第一添加連絡人請求確定出所述第一標識資訊,包括: 從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者, 從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。With reference to the first aspect, in a first optional embodiment, the determining the first identification information based on the first add contact request includes: extracting from the first add contact request The first sound signal; determining the first identification information corresponding to the first sound signal based on a correspondence between the sound signal and the identification information; or extracting all the information from the first add contact request The first identification information, wherein after receiving the first sound signal from the first electronic device, the second electronic device parses out the first identification information based on the first sound signal.

结合第一方面,在第二種可選的實施例中,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括: 在獲得所述第一電子設備的確認信號之後,將所述第一使用者添加為所述第二使用者的連絡人。With reference to the first aspect, in a second optional embodiment, the first user of the first electronic device is added as the first user based on the first identification information and the second identification information. The contact of the second user of the two electronic devices includes: after obtaining the confirmation signal of the first electronic device, adding the first user as a contact of the second user.

結合第一方面或第一方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括: 接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號; 在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。With reference to the first aspect or any one of the first to two optional embodiments of the first aspect, in a third optional embodiment, the based on the first identification information and The adding the second identification information to the first user of the first electronic device as a contact of the second user of the second electronic device includes: receiving an associated second sent by the first electronic device A second contact request for adding a sound signal, the second sound signal corresponding to the second identification information, and the first electronic device obtaining the second sound signal played by the second electronic device in a listening manner; After receiving the first add contact request and the second add contact request, the first user and the second user are added to each other as contacts.

第二方面,本發明實施例提供一種添加連絡人方法,包括: 確定第一電子設備的第一標識資訊所對應的第一聲音信號; 播放所述第一聲音信號。In a second aspect, an embodiment of the present invention provides a method for adding a contact, including: determining a first sound signal corresponding to first identification information of a first electronic device; and playing the first sound signal.

結合第二方面,在第一種可選的實施例中,所述確定第一電子設備的第一標識資訊所對應的第一聲音信號,包括: 從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者, 對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。With reference to the second aspect, in a first optional embodiment, determining the first sound signal corresponding to the first identification information of the first electronic device includes: from a correspondence between the identification information and the sound signal, based on The first identification information determines the first sound signal; or, the first identification information is encoded according to a preset rule, thereby generating the first sound signal.

結合第二方面,在第二種可選的實施例中,在所述播放所述第一聲音信號之後,所述方法進一步包括: 如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。With reference to the second aspect, in a second optional embodiment, after the playing of the first sound signal, the method further includes: if a confirmation signal generated by the second electronic device is detected, stopping playing The first sound signal.

結合第二方面,在第三種可選的實施例中,所述方法進一步包括: 檢測第二電子設備所播放的第二聲音信號; 在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。With reference to the second aspect, in a third optional embodiment, the method further includes: detecting a second sound signal played by the second electronic device; after receiving the second sound signal, based on the first sound signal The second identification information corresponding to the two sound signals adds the second user as a contact of the first user.

結合第二方面的第三種可選的實施例,在第四種可選的實施例中,所述方法進一步包括: 每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程; 在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。With reference to the third optional embodiment of the second aspect, in a fourth optional embodiment, the method further includes: starting a process of playing the first sound signal every first random time interval; At a time other than playing the first sound signal, a process of detecting the second sound signal is started.

第三方面,本發明實施例提供一種添加連絡人方法,包括: 檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊; 基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。According to a third aspect, an embodiment of the present invention provides a method for adding a contact, including: detecting and obtaining a first sound signal, where the first sound signal corresponds to first identification information of a first electronic device; and based on the first sound signal, A first user of the first electronic device is added as a contact to a second user of the second electronic device.

結合第三方面,在第一種可選的實施例中,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括: 基於所述第一聲音信號確定出所述第一標識資訊; 將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。With reference to the third aspect, in a first optional embodiment, the first user of the first electronic device is added as a second user of the second electronic device based on the first sound signal. Contacting includes: determining the first identification information based on the first sound signal; and sending the first identification information and the second identification information of the second electronic device to a server for the server The device adds the first user as a contact of the second user based on the first identification information and the second identification information.

結合第三方面,在第二種可選的實施例中,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括: 將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。With reference to the third aspect, in a second optional embodiment, the first user of the first electronic device is added as a second user of the second electronic device based on the first sound signal. Contacting includes: sending the first sound signal and the second identification information of the second electronic device to a server for the server to determine the first identification based on the first sound signal Information, and adding the first user as a contact of the second user based on the first identification information and the second identification information.

結合第三方面或第三方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述方法進一步包括: 確定與所述第二電子設備的第二標識資訊對應的第二聲音信號; 播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。With reference to the third aspect or any one of the first to two optional embodiments of the third aspect, in a third optional embodiment, the method further includes: determining and the A second sound signal corresponding to the second identification information of the second electronic device; playing the second sound signal so that when the first electronic device receives the second sound signal, based on the second identification information Adding the second user as a contact of the first user.

結合第三方面的第三種可選的實施例,在第四種可選的實施例中,所述方法進一步包括: 每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程; 在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。With reference to the third optional embodiment of the third aspect, in a fourth optional embodiment, the method further includes: starting a process of playing the second sound signal every second random time interval; When the second sound signal is played, the process of detecting and obtaining the first sound signal is stopped.

結合第三方面或第三方面的第一至二種可選的實施例中的任意一種可選的實施例,在第五種可選的實施例中,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括: 如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。With reference to the third aspect or any one of the first to two optional embodiments of the third aspect, in a fifth optional embodiment, the based on the first sound signal, Adding a first user of the first electronic device as a contact of a second user of the second electronic device includes: if the first sound signal includes a sound signal corresponding to identification information of at least two electronic devices, Adding users of the at least two electronic devices as contacts of the second user based on the first sound signal.

第四方面,本發明實施例提供一種伺服器,包括: 接收模組,用於接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號; 第一確定模組,用於基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊; 第一添加模組,用於基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。According to a fourth aspect, an embodiment of the present invention provides a server, including: a receiving module configured to receive a first contact adding request associated with a first sound signal sent by a second electronic device, where the first sound signal corresponds to the first First identification information of an electronic device, and the second electronic device obtains the first sound signal played by the first electronic device in a listening manner; a first determining module configured to add a contact request based on the first Determining the first identification information and the second identification information of the second electronic device; a first adding module configured to convert the first identification information based on the first identification information and the second identification information The first user of the electronic device is added as a contact to the second user of the second electronic device.

結合第四方面,在第一種可選的實施例中,所述第一確定模組,用於: 從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者, 從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。With reference to the fourth aspect, in a first optional embodiment, the first determining module is configured to: extract the first sound signal from the first request for adding a contact; based on the sound signal and The corresponding relationship of the identification information determines the first identification information corresponding to the first sound signal; or extracts the first identification information from the first request for adding a contact, wherein the first After receiving the first sound signal from the first electronic device, the two electronic devices parse out the first identification information based on the first sound signal.

結合第四方面,在第二種可選的實施例中,所述第一添加模組,用於: 在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。With reference to the fourth aspect, in a second optional embodiment, the first adding module is configured to: after obtaining a confirmation signal of the second electronic device, add the second user as all The contact of the first user.

結合第四方面或第四方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述第一添加模組,包括: 接收單元,用於接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號; 添加單元,用於在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。With reference to the fourth aspect or any one of the first to two optional embodiments of the fourth aspect, in a third optional embodiment, the first added module includes: A receiving unit, configured to receive a second add contact request associated with a second sound signal sent by the first electronic device, where the second sound signal corresponds to the second identification information, and the first electronic device uses an answering mode Obtaining the second sound signal played by the second electronic device; an adding unit, configured to, after receiving the first add contact request and the second add contact request, send the first user And the second user are added to each other as contacts.

第五方面,本發明實施例提供一種第一電子設備,包括: 第二確定模組,用於確定第一電子設備的第一標識資訊所對應的第一聲音信號; 第一播放模組,用於播放所述第一聲音信號。According to a fifth aspect, an embodiment of the present invention provides a first electronic device, including: a second determining module, configured to determine a first sound signal corresponding to the first identification information of the first electronic device; a first playback module, For playing the first sound signal.

結合第五方面,在第一種可選的實施例中,所述第二確定模組,用於: 從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者, 對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。With reference to the fifth aspect, in a first optional embodiment, the second determining module is configured to determine the first identification information based on the first identification information from the correspondence between the identification information and the sound signal. A sound signal; or, encoding the first identification information according to a preset rule, thereby generating the first sound signal.

結合第五方面,在第二種可選的實施例中,所述第一電子設備進一步包括: 停止模組,用於如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。With reference to the fifth aspect, in a second optional embodiment, the first electronic device further includes: a stop module, configured to stop playing the first electronic device if a confirmation signal generated by the second electronic device is detected. A sound signal.

結合第五方面,在第三種可選的實施例中,所述第一電子設備進一步包括: 第一檢測模組,用於檢測第二電子設備所播放的第二聲音信號; 第二添加模組,用於在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。With reference to the fifth aspect, in a third optional embodiment, the first electronic device further includes: a first detection module, configured to detect a second sound signal played by the second electronic device; a second adding module A group for adding the second user as a contact of the first user based on the second identification information corresponding to the second sound signal after receiving the second sound signal.

結合第五方面的第三種可選的實施例,在第四種可選的實施例中,所述第一播放模組,用於:每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程;With reference to the third optional embodiment of the fifth aspect, in a fourth optional embodiment, the first playback module is configured to: start playing the first random interval every first random time interval. Sound signal process;

所述第一檢測模組,用於在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。The first detection module is configured to start a process of detecting the second sound signal at a time other than playing the first sound signal.

第六方面,本發明實施例提供一種第二電子設備,包括: 第二檢測模組,用於檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊; 第三添加模組,用於基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。According to a sixth aspect, an embodiment of the present invention provides a second electronic device, including: a second detection module configured to detect and obtain a first sound signal, where the first sound signal corresponds to first identification information of the first electronic device; Three adding modules are used to add a first user of the first electronic device as a contact of a second user of the second electronic device based on the first sound signal.

結合第六方面,在第一種可選的實施例中,所述第三添加模組,包括: 確定單元,用於基於所述第一聲音信號確定出所述第一標識資訊; 發送單元,用於將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。With reference to the sixth aspect, in a first optional embodiment, the third adding module includes: a determining unit, configured to determine the first identification information based on the first sound signal; a sending unit, Configured to send the first identification information and the second identification information of the second electronic device to a server for the server to send the first identification information based on the first identification information and the second identification information. A user is added as a contact for the second user.

結合第六方面,在第二種可選的實施例中,所述第三添加模組,用於: 將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。With reference to the sixth aspect, in a second optional embodiment, the third adding module is configured to: send the first sound signal and the second identification information of the second electronic device to a servo For the server to determine the first identification information based on the first sound signal, and to add the first user as the first identification information based on the first identification information and the second identification information Contacts for the second user.

結合第六方面或第六方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述第二電子設備進一步包括: 第三確定模組,用於確定與所述第二電子設備的第二標識資訊對應的第二聲音信號; 第二播放模組,用於播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。With reference to the sixth aspect or any one of the first to two optional embodiments of the sixth aspect, in a third optional embodiment, the second electronic device further includes: Three determining modules for determining a second sound signal corresponding to the second identification information of the second electronic device; a second playing module for playing the second sound signal so that the first electronic device When the device receives the second sound signal, the device adds the second user as a contact of the first user based on the second identification information.

結合第六方面的第三種可選的實施例,在第四種可選的實施例中第二播放模組,用於:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程; 所述第二檢測模組,用於在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。With reference to the third optional embodiment of the sixth aspect, in a fourth optional embodiment, the second playback module is configured to start playing the second sound signal every second random time interval. Process; the second detection module is configured to stop detecting a process of obtaining the first sound signal when the second sound signal is played.

結合第六方面或第六方面的第一至二種可選的實施例中的任意一種可選的實施例,在第五種可選的實施例中,所述第三添加模組,用於: 如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。In combination with the sixth aspect or any one of the first to two optional embodiments of the sixth aspect, in a fifth optional embodiment, the third added module is used for If the first sound signal includes a sound signal corresponding to identification information of at least two electronic devices, adding a user of the at least two electronic devices as a contact of the second user based on the first sound signal people.

第七方面,本發明實施例提供一種伺服器,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號; 基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊; 基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。According to a seventh aspect, an embodiment of the present invention provides a server including a memory and one or more programs. One or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: receiving a first add contact request associated with a first sound signal sent by a second electronic device, the first sound signal corresponding to the first of the first electronic device Identification information, where the second electronic device obtains the first sound signal played by the first electronic device in a listening manner; determining the first identification information and the first identification information based on the first add contact request Second identification information of two electronic devices; based on the first identification information and the second identification information, adding a first user of the first electronic device as a second user of the second electronic device Contact people.

結合第七方面,在第一種可選的實施例中,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者, 從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。With reference to the seventh aspect, in a first optional embodiment, the server is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Extracting the first sound signal from the first contact request; determining the first identification information corresponding to the first sound signal based on the correspondence between the sound signal and the identification information; or, The first identification information is extracted from the first contact adding request, wherein the second electronic device analyzes the first sound signal based on the first sound signal after receiving the first sound signal from the first electronic device. The first identification information.

結合第七方面的第一種可選的實施例,在第二種可選的實施例中,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。With reference to the first optional embodiment of the seventh aspect, in a second optional embodiment, the server is further configured to be executed by one or more processors by the one or more programs. An instruction for performing the following operations: after obtaining the confirmation signal of the second electronic device, adding the second user as a contact of the first user.

結合第七方面或第七方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號; 在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。With reference to the seventh aspect or any one of the first to two optional embodiments of the seventh aspect, in an optional embodiment, in a third optional embodiment, the server is further configured to be controlled by one Or one or more processors executing the one or more programs include instructions for performing the following operations: receiving a second contact request for adding a second sound signal associated with a second sound signal sent by the first electronic device, the second sound signal Corresponding to the second identification information, the first electronic device obtains the second sound signal played by the second electronic device in a listening manner; upon receiving the first add contact request and the second add After the contact request, the first user and the second user are added to each other as contacts.

第八方面,本發明實施例提供一種第一電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 確定第一電子設備的第一標識資訊所對應的第一聲音信號; 播放所述第一聲音信號。According to an eighth aspect, an embodiment of the present invention provides a first electronic device including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more The processor executing the one or more programs includes instructions for performing the following operations: determining a first sound signal corresponding to the first identification information of the first electronic device; and playing the first sound signal.

結合第八方面,在第一種可選的實施例中,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者, 對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。With reference to the eighth aspect, in a first optional embodiment, the first electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Determine the first sound signal from the correspondence between the identification information and the sound signal based on the first identification information; or, encode the first identification information according to a preset rule to generate the first sound signal .

結合第八方面,在第二種可選的實施例中,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。With reference to the eighth aspect, in a second optional embodiment, the first electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: If a confirmation signal generated by the second electronic device is detected, the first sound signal is stopped playing.

結合第八方面,在第三種可選的實施例中,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 檢測第二電子設備所播放的第二聲音信號; 在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。With reference to the eighth aspect, in a third optional embodiment, the first electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Detecting a second sound signal played by a second electronic device; after receiving the second sound signal, adding the second user as the first user based on the second identification information corresponding to the second sound signal A user's contact.

結合第八方面的第三種可選的實施例,在第四種可選的實施例中,一個以上程式包含用於進行以下操作的指令: 每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程; 在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。With reference to the third optional embodiment of the eighth aspect, in a fourth optional embodiment, more than one program includes instructions for performing the following operations: starting to play the first random interval every first random time interval. A sound signal process; starting the process of detecting the second sound signal at a time other than playing the first sound signal.

第九方面,本發明實施例提供一種第二電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊; 基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。In a ninth aspect, an embodiment of the present invention provides a second electronic device including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more The processor executes the one or more programs including instructions for performing the following operations: detecting and obtaining a first sound signal, the first sound signal corresponding to the first identification information of the first electronic device; based on the first sound signal, A first user of the first electronic device is added as a contact of a second user of the second electronic device.

結合第九方面,在第一種可選的實施例中,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 基於所述第一聲音信號確定出所述第一標識資訊; 將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。With reference to the ninth aspect, in a first optional embodiment, the second electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Determining the first identification information based on the first sound signal; and sending the first identification information and the second identification information of the second electronic device to a server for the server to use based on the first identification information An identification information and the second identification information add the first user as a contact of the second user.

結合第九方面,在第二種可選的實施例中,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。With reference to the ninth aspect, in a second optional embodiment, the second electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Sending the first sound signal and the second identification information of the second electronic device to a server for the server to determine the first identification information based on the first sound signal, and based on the The first identification information and the second identification information add the first user as a contact of the second user.

結合第九方面或第九方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 確定與所述第二電子設備的第二標識資訊對應的第二聲音信號; 播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。With reference to the ninth aspect or any one of the first to two optional embodiments of the ninth aspect, in a third optional embodiment, the second electronic device is further configured to: Execution of the one or more programs by one or more processors includes instructions for performing the following operations: determining a second sound signal corresponding to the second identification information of the second electronic device; and playing the second sound A signal so that when the first electronic device receives the second sound signal, the second user is added as a contact of the first user based on the second identification information.

結合第九方面的第三種可選的實施例,在第四種可選的實施例中,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程; 在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。With reference to the third optional embodiment of the ninth aspect, in a fourth optional embodiment, the second electronic device is further configured to execute the one or more programs by one or more processors. It includes instructions for performing the following operations: starting the process of playing the second sound signal every second random time interval; and stopping the process of detecting and obtaining the first sound signal when the second sound signal is played.

結合第九方面或第九方面的第一至二種可選的實施例中的任意一種可選的實施例,在第五種可選的實施例中,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。With reference to the ninth aspect or any one of the optional embodiments of the first to two optional embodiments of the ninth aspect, in a fifth optional embodiment, the second electronic device is further configured to Execution of the one or more programs by one or more processors includes instructions for performing the following operations: if the first sound signal includes a sound signal corresponding to identification information of at least two electronic devices, based on the first The sound signal adds users of the at least two electronic devices as contacts of the second user.

本發明有益效果如下:The beneficial effects of the present invention are as follows:

由於在本發明實施例中,第一電子設備可以通過播放第一聲音信號的方式將其第一標識資訊提供給第二電子設備,從而第二電子設備直接基於接聽到的第一聲音信號就可以將第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,而不需要額外的功能模組(例如:藍牙模組、WIFI模組等等),故而達到了降低添加連絡人的成本的技術效果。並且,通常情況下採集聲音信號的方式都較為方便,不需要使用者手動對麥克風進行調整,也不需要使用者手動進行一些其他輸入,故而能夠提高添加連絡人的效率。In the embodiment of the present invention, the first electronic device can provide its first identification information to the second electronic device by playing the first sound signal, so that the second electronic device can directly based on the received first sound signal. Adding the first user of the first electronic device as the contact of the second user of the second electronic device without the need for additional functional modules (such as Bluetooth module, WIFI module, etc.), thus achieving The technical effect of reducing the cost of adding contacts. In addition, in general, the methods of collecting sound signals are relatively convenient, and the user does not need to manually adjust the microphone, and the user does not need to manually perform some other input, so the efficiency of adding contacts can be improved.

本發明提供一種添加連絡人方法、電子設備及伺服器,以解決現有技術中添加連絡人功能導致的電子設備成本較高的技術問題。The invention provides a method for adding a contact person, an electronic device and a server, so as to solve the technical problem of high cost of the electronic device caused by adding a contact person function in the prior art.

本發明實施例中的技術方案為解決上述的技術問題,總體思路如下:In order to solve the above technical problems, the technical solution in the embodiment of the present invention is as follows:

第一電子設備可以通過播放第一聲音信號的方式將其第一標識資訊提供給第二電子設備,從而第二電子設備直接基於接聽到的第一聲音信號就可以將第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,而不需要額外的功能模組(例如:藍牙模組、WIFI模組等等),故而達到了降低添加連絡人的成本的技術效果。並且,通常情況下採集聲音信號的方式都較為方便,不需要使用者手動對麥克風進行調整,也不需要使用者手動進行一些其他輸入,故而能夠提高添加連絡人的效率。The first electronic device can provide its first identification information to the second electronic device by playing the first sound signal, so that the second electronic device can directly send the first electronic device's first based on the received first sound signal. The user adds the contact as the second user of the second electronic device without the need for additional function modules (such as a Bluetooth module, a WIFI module, etc.), thus achieving a technology to reduce the cost of adding a contact effect. In addition, in general, the methods of collecting sound signals are relatively convenient, and the user does not need to manually adjust the microphone, and the user does not need to manually perform some other input, so the efficiency of adding contacts can be improved.

為了更好的理解上述技術方案,下面通過圖式以及具體實施例對本發明技術方案做詳細的說明,應當理解本發明實施例以及實施例中的具體特徵是對本發明技術方案的詳細的說明,而不是對本發明技術方案的限定,在不衝突的情況下,本發明實施例以及實施例中的技術特徵可以相互組合。In order to better understand the above technical solutions, the following describes the technical solutions of the present invention in detail through drawings and specific embodiments. It should be understood that the embodiments of the present invention and specific features in the embodiments are detailed descriptions of the technical solutions of the present invention, and It is not a limitation on the technical solutions of the present invention. In the case of no conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.

第一方面,本發明實施例提供一種添加連絡人方法,請參考圖1,包括:In a first aspect, an embodiment of the present invention provides a method for adding a contact. Please refer to FIG. 1, including:

步驟S101:確定第一電子設備的第一標識資訊所對應的第一聲音信號;Step S101: Determine a first sound signal corresponding to the first identification information of the first electronic device;

步驟S102:播放所述第一聲音信號。Step S102: play the first sound signal.

在具體實施過程中,該第一聲音信號用於,第二電子設備接聽到所述第一聲音信號之後,基於所述第一標識資訊將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。In a specific implementation process, the first sound signal is used to add a first user of the first electronic device to all users based on the first identification information after the second electronic device receives the first sound signal. The contact of a second user of the second electronic device.

舉例來說,本發明實施例中的電子設備(第一電子設備或者第二電子設備)例如為:智慧型手錶、智慧型手環、手機、平板電腦等等。如圖2所示,為一智慧型手錶的結構圖,其包括:中央處理器(CPU);揚聲器,連接於CPU,用於播放聲音信號;麥克風,連接於CPU,用於接聽其他電子設備所產生的聲音信號。當然,針對其他電子設備,其結構與之類似,在此不再贅述。For example, the electronic device (the first electronic device or the second electronic device) in the embodiment of the present invention is, for example, a smart watch, a smart bracelet, a mobile phone, a tablet computer, or the like. As shown in FIG. 2, it is a structural diagram of a smart watch, including: a central processing unit (CPU); a speaker connected to the CPU for playing sound signals; a microphone connected to the CPU for receiving other electronic devices. Generated acoustic signals. Of course, for other electronic devices, the structure is similar, and will not be repeated here.

在具體實施過程中,可以針對每個電子設備分別設置用於唯一表徵其身份的標識資訊,該標識資訊可以與電子設備綁定,其例如為:電子設備的MAC(Media Access Control或者Medium Access Control:媒體存取控制)地址、IMEI(International Mobile Equipment Identification Number:國際行動設備識別碼)等等;該標識資訊也可以與使用者的即時通訊軟體的帳號綁定,其例如為:手機號、聊天軟體的帳號等等。該標識資訊可以為電子設備出廠時設定,也可以在使用者使用電子設備之後,按照預設規則生成該標識資訊,本發明實施例不作限制。In the specific implementation process, identification information for uniquely identifying the identity of each electronic device can be set separately, and the identification information can be bound to the electronic device, for example, the MAC (Media Access Control or Medium Access Control) of the electronic device. : Media access control) address, IMEI (International Mobile Equipment Identification Number), etc .; this identification information can also be bound to the user ’s instant messaging software account, such as: mobile phone number, chat Software account, etc. The identification information may be set when the electronic device is delivered from the factory, or may be generated according to a preset rule after the user uses the electronic device, which is not limited in the embodiment of the present invention.

步驟S101中,可以通過多種方式確定出第一標識資訊所對應的第一聲音信號,下面列舉其中的兩種進行介紹,當然,在具體實施過程中,不限於以下兩種情況。In step S101, the first sound signal corresponding to the first identification information can be determined in various ways. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two cases.

第一種,對第一標識資訊按照預設規則進行調製(如調頻、調幅、調相等等),從而生成第一聲音信號。也就是說,針對第一標識資訊中的各個字符串,可以將其對應不同頻率、不同幅度、或者不同相位的聲音信號,假設標識資訊通過二進制標識,1對應頻率為100HZ的聲音信號,0對應頻率為200HZ的聲音信號,假設第一標識資訊為1010,則可以先生成預設時長(例如:0.1s、0.2s等等)的100HZ的聲音信號,然後生成預設時長的200HZ的聲音信號等等,針對通過不同幅度或者不同相位表示不同的字元,其對應的聲音信號的產生方式與之類似,在此不再一一贅述。First, the first identification information is modulated according to a preset rule (such as frequency modulation, amplitude modulation, phase modulation, etc.) to generate a first sound signal. That is, for each character string in the first identification information, it can correspond to sound signals of different frequencies, different amplitudes, or different phases. Assuming that the identification information passes the binary identification, 1 corresponds to a sound signal with a frequency of 100 Hz, and 0 corresponds to A sound signal with a frequency of 200HZ. Assuming the first identification information is 1010, a sound signal of 100HZ with a preset duration (eg, 0.1s, 0.2s, etc.) can be generated first, and then a sound with a preset duration of 200HZ is generated. Signals and so on, for different characters represented by different amplitudes or different phases, the corresponding sound signals are generated in a similar manner, and will not be described one by one here.

在這種情況下,各個設備(例如:伺服器、第二電子設備等等)直接對第一聲音信號進行解碼,就可以獲得第一標識資訊,例如:假設針對第一標識資訊中的不同字符採用不同頻率的聲音信號對其進行變換,則解碼的設備在接收到第一聲音信號之後,可以按照預設時間間隔對其分隔,然後通過每段聲音信號匹配其對應的字符串,從而獲得第一標識資訊,該方法中不需要存儲標識資訊與聲音信號的對應關係,從而能夠降低電子設備的存儲負擔。In this case, each device (for example, a server, a second electronic device, and the like) directly decodes the first sound signal to obtain the first identification information. For example, suppose that different characters in the first identification information are targeted. The sound signals of different frequencies are used to transform them. After receiving the first sound signal, the decoding device can separate it at a preset time interval, and then match each string with its corresponding character string to obtain the first An identification information. The method does not need to store the correspondence between the identification information and the sound signal, thereby reducing the storage load of the electronic device.

第二種,預先設定好各個標識資訊與聲音信號的對應關係,從而基於第一標識資訊在該對應關係中匹配獲得所述第一聲音信號。Second, a correspondence relationship between each identification information and a sound signal is set in advance, so that the first sound signal is obtained by matching in the correspondence relationship based on the first identification information.

在具體實施過程中,可以針對每個標識資訊按照任意原則設置聲音信號,只要該標識資訊的聲音信號與其他標識資訊的聲音信號不同即可,在第一電子設備、以及需要獲取第一標識資訊的設備(例如:伺服器、第二電子設備)可以存儲有標識資訊與聲音信號的對應關係,從而,第一電子設備在需要播放第一聲音信號之前,可以基於第一標識資訊在該對應關係中匹配獲取第一聲音信號;而後續其他設備在獲得該第一聲音信號之後,通過第一聲音信號在該對應關係中匹配,從而確定出對應的第一標識資訊。In the specific implementation process, the sound signal can be set according to any principle for each identification information, as long as the sound signal of the identification information is different from the sound signals of other identification information, the first electronic device and the first identification information need to be obtained Device (for example: server, second electronic device) can store the correspondence between the identification information and the sound signal, so that before the first electronic device needs to play the first sound signal, it can use the first identification information in the correspondence relationship. The first sound signal is obtained through matching; and after other devices obtain the first sound signal, the first sound signal is matched in the correspondence relationship to determine the corresponding first identification information.

在基於步驟S101確定出第一聲音信號之後,則可以執行步驟S102,也即:播放所述第一聲音信號,以在第二電子設備接聽到所述第一聲音信號之後,基於所述第一標識資訊將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。After the first sound signal is determined based on step S101, step S102 may be performed, that is, the first sound signal is played, after the second electronic device receives the first sound signal, based on the first sound signal, The identification information adds a first user of the first electronic device as a contact of a second user of the second electronic device.

步驟S102中,將第一使用者添加為第二使用者的連絡人可以存在多種情況,例如:①電子設備的標識資訊為與電子設備綁定的標識資訊,在這種情況下,則是直接將第一電子設備添加為第二電子設備的連絡人;②電子設備的標識資訊為與即時聊天軟體的帳號綁定的標識資訊,在這種情況下,則是將第一使用者的聊天軟體帳號添加為第二使用者的聊天軟體的帳號的連絡人。In step S102, there may be various situations in which the first user is added as the contact of the second user. For example: ① The identification information of the electronic device is identification information bound to the electronic device. In this case, it is directly Add the first electronic device as a contact of the second electronic device; ② The identification information of the electronic device is the identification information bound to the account of the instant chat software, in this case, the chat software of the first user The account is added as a contact of the second user's chat software account.

步驟S102中,第一電子設備可以通過第一電子設備內置或者外接的揚聲器播放第一聲音信號,其他電子設備(例如:第二電子設備)如果需要添加第二使用者為第一使用者的連絡人的話,則會檢測其他電子設備所播放的第一聲音信號,在檢測到第一聲音信號之後,可以通過第一聲音信號所對應的第一標識資訊將第一使用者添加為第二使用者的連絡人。在具體實施過程中,該添加連絡人可以為單向添加,也即僅僅將第一使用者添加為第二使用者的連絡人,該添加連絡人也可以為雙向添加,也即將第一使用者與第二使用者彼此添加為連絡人。In step S102, the first electronic device can play the first sound signal through the built-in or external speaker of the first electronic device. If other electronic devices (for example, the second electronic device) need to add a second user as a first user contact If it is human, it will detect the first sound signal played by other electronic devices. After detecting the first sound signal, the first user can be added as the second user through the first identification information corresponding to the first sound signal. Contacts. In the specific implementation process, the adding contact can be added in one direction, that is, only the first user is added as a contact in the second user, and the added contact can also be added in two directions, that is, the first user. And a second user as contacts.

在具體實施過程中,第二電子設備在接聽到第一聲音信號之後,可以通過多種方式將第一使用者添加為第二使用者的連絡人,下面列舉其中的兩種進行介紹,當然,在具體實施過程中,不限於以下兩種情況。In the specific implementation process, after receiving the first sound signal, the second electronic device can add the first user as a contact of the second user in a variety of ways. Two of them are listed below for introduction. Of course, The specific implementation process is not limited to the following two cases.

第一種,第二電子設備基於所述第一聲音信號確定出所述第一標識資訊;First, the second electronic device determines the first identification information based on the first sound signal;

將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Sending the first identification information and the second identification information of the second electronic device to a server for the server to use the first based on the first identification information and the second identification information This is added as a contact for the second user.

舉例來說,如果第一電子設備按照預設規則對第一標識資訊進行編碼從而生成第一聲音信號的話,則第二電子設備通過對第一聲音信號進行解碼,從而可以獲得第一標識資訊;如果第一電子設備基於標識資訊與聲音信號的對應關係確定出第一聲音信號的話,則第二電子設備直接通過第一聲音信號在該對應關係中進行查找,就可以獲得第一標識資訊。For example, if the first electronic device encodes the first identification information to generate a first sound signal according to a preset rule, the second electronic device can obtain the first identification information by decoding the first sound signal; If the first electronic device determines the first sound signal based on the correspondence between the identification information and the sound signal, the second electronic device can directly search for the correspondence through the first sound signal to obtain the first identification information.

第二電子設備在基於第一聲音信號獲得第一標識資訊之後,就將攜帶第一標識資訊和第二標識資訊的第一添加連絡人請求發送至伺服器,伺服器收到第一添加連絡人請求之後,通過解析確定出第二使用者希望添加第一使用者為連絡人,從而將第一使用者添加為第一使用者的連絡人。After the second electronic device obtains the first identification information based on the first sound signal, the second electronic device sends a first addition contact request carrying the first identification information and the second identification information to the server, and the server receives the first addition contact After the request, it is determined through analysis that the second user wishes to add the first user as a contact, thereby adding the first user as a contact of the first user.

由於在上述方案中,第二電子設備對第一聲音信號解析之後,直接發送第一標識資訊給伺服器,而不需要發送第一聲音信號,故而能夠降低資料傳輸負擔。In the above solution, after the second electronic device parses the first sound signal, it directly sends the first identification information to the server without the need to send the first sound signal, so the data transmission burden can be reduced.

第二種,第二電子設備將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Secondly, the second electronic device sends the first sound signal and the second identification information of the second electronic device to a server for the server to determine the first sound signal based on the first sound signal. A first identification information, and adding the first user as a contact of the second user based on the first identification information and the second identification information.

舉例來說,也就是第二電子設備在獲得第一聲音信號之後,並不需要對第一聲音信號進行處理,而是直接將攜帶第一聲音信號以及第二標識資訊的第一添加連絡人請求發送至伺服器,由伺服器對第一聲音信號進行解析,從而從中獲取出第一標識資訊,進而將第一使用者添加為第二使用者的連絡人。該方案中,由於不需要在電子設備進行相關處理,故而能夠提高該方案的相容性。For example, after the second electronic device obtains the first sound signal, it does not need to process the first sound signal, but directly requests the first add contact that carries the first sound signal and the second identification information. Send to the server, and the server analyzes the first sound signal to obtain the first identification information from it, and then add the first user as a contact of the second user. In this solution, since the related processing is not required in the electronic equipment, the compatibility of the solution can be improved.

在具體實施過程中,伺服器可以在接收到第二電子設備發送的第一添加連絡人請求之後,就將第一使用者添加為第二使用者的連絡人,而為了保證該方案的安全性(例如:第一使用者可能並不希望被第二使用者添加為連絡人),則伺服器可以在獲得所述第一電子設備的確認信號之後,再將所述第一使用者添加為所述第二使用者的連絡人。In a specific implementation process, the server may add the first user as a contact of the second user after receiving the first contact addition request sent by the second electronic device, and to ensure the security of the solution (For example, the first user may not want to be added as a contact by the second user), the server may add the first user as a contact after obtaining the confirmation signal of the first electronic device. The contact of the second user.

該確認信號可以為多種確認信號,例如:The confirmation signal can be various confirmation signals, for example:

①第二電子設備在接收到第一電子設備的第一聲音信號之後,向第一電子設備產生回饋資訊(例如:聲音信號,當然也可以為其他資訊,例如:文字、畫面等等)告知第一電子設備其接聽到第一聲音信號,並且請求添加對方為連絡人,如果第一電子設備同意,則可以產生一個同意對方添加的確認信號(其同樣可以為聲音信號,當然,也可以為其他信號,例如:文字、畫面等等),第二電子設備在獲得該確認信號之後,將其發送至伺服器,伺服器在接收到第二電子設備發送的確認信號之後,將第一使用者添加為第二使用者的連絡人。① After receiving the first sound signal from the first electronic device, the second electronic device generates feedback information (for example, a sound signal, of course, other information, such as text, pictures, etc.) to inform the first electronic device of the first electronic device. An electronic device receives the first sound signal and requests to add the other party as a contact. If the first electronic device agrees, it can generate a confirmation signal that agrees to the addition of the other party (it can also be a sound signal, of course, it can also be other Signal, such as text, picture, etc.), the second electronic device sends the confirmation signal to the server, and the server adds the first user after receiving the confirmation signal from the second electronic device Contact for second user.

②伺服器在接收到第二電子設備發送的添加連絡人請求之後,向第一電子設備發送詢問資訊,用於詢問是否同意被第二電子設備添加為連絡人,第一電子設備如果同意的話,則可以向伺服器發送一個確認信號,伺服器在接收到該確認信號之後,將第二使用者添加為第一使用者的連絡人。② After receiving the request to add a contact from the second electronic device, the server sends inquiry information to the first electronic device to inquire whether to agree to be added as a contact by the second electronic device. If the first electronic device agrees, Then, a confirmation signal may be sent to the server, and after receiving the confirmation signal, the server adds the second user as a contact of the first user.

③第一電子設備與第二電子設備如果希望彼此添加連絡人,則第一電子設備可以向伺服器發送第一添加連絡人請求,第二電子設備也可以向伺服器發送第二添加連絡人請求,伺服器在接收到第一電子設備與第二電子設備的第一添加連絡人請求和第二添加連絡人請求之後,確定雙方都同意添加連絡人,在這種情況下,則可以將第一使用者與第一使用者彼此添加為連絡人。③ If the first electronic device and the second electronic device wish to add contacts to each other, the first electronic device may send a first contact adding request to the server, and the second electronic device may also send a second contact adding request to the server. , After receiving the first request for adding a contact and the second request for adding a contact from the first electronic device and the second electronic device, the server determines that both parties agree to add the contact. In this case, the first The user and the first user are added as contacts to each other.

在這種情況下,第一電子設備除了播放第一聲音信號之後,還可以檢測第二電子設備播放的第二聲音信號,同樣,第二聲音信號對應第二標識資訊;第一電子設備在接聽到第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。例如,第一電子設備可以向伺服器發送攜帶第一標識資訊和第二聲音信號的第一添加連絡人請求,伺服器基於第二聲音信號解析出第二標識資訊;又或者,第一電子設備在接聽到第二聲音信號之後,直接從第二聲音信號中解析出第二標識資訊,然後將攜帶第一標識資訊、第二標識資訊的第一添加連絡人請求發送至伺服器,伺服器在接收到第一添加連絡人請求和第二添加連絡人請求之後,確定彼此都同意添加對方為連絡人,且彼此都同意被對方添加為連絡人,在這種情況下,才將第一使用者與第二使用者添加為連絡人。In this case, in addition to playing the first sound signal, the first electronic device can also detect the second sound signal played by the second electronic device. Similarly, the second sound signal corresponds to the second identification information; the first electronic device is receiving After hearing the second sound signal, the second user is added as a contact of the first user based on the second identification information corresponding to the second sound signal. For example, the first electronic device may send a first contact request to the server carrying the first identification information and the second sound signal, and the server may parse the second identification information based on the second sound signal; or, the first electronic device After receiving the second sound signal, the second identification information is directly parsed from the second sound signal, and then the first add contact request carrying the first identification information and the second identification information is sent to the server, and the server After receiving the first request to add a contact and the second request to add a contact, it is determined that each other agrees to add the other party as a contact, and each other agrees to be added by the other party as a contact. In this case, the first user is added. Add as a contact with a second user.

在具體實施過程中,如果電子設備(第一電子設備或者第二電子設備)可以同時播放和接聽聲音信號,則電子設備可以直接在播放聲音信號的同時接聽聲音信號,如果電子設備不可以同時播放和接聽聲音信號,則電子設備可以每隔隨機時間間隔,啟動接聽聲音信號的過程,在接聽聲音信號的同時,停止播放聲音信號的過程,以電子設備為第一電子設備為例,則是:每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程;在播放所述第一聲音信號之外的其他時間,啟動接聽第二聲音信號的過程,以供所述第一電子設備在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。In the specific implementation process, if the electronic device (the first electronic device or the second electronic device) can simultaneously play and listen to the sound signal, the electronic device can directly listen to the sound signal while playing the sound signal. And answering the sound signal, the electronic device can start the process of receiving the sound signal at random intervals, and stop the process of playing the sound signal while receiving the sound signal. Taking the electronic device as the first electronic device as an example, it is: At a first random time interval, a process of playing the first sound signal is started; at a time other than playing the first sound signal, a process of receiving a second sound signal is started for the first electronic device After receiving the second sound signal, the second user is added as a contact of the first user based on the second identification information corresponding to the second sound signal.

舉例來說,第一電子設備可以設定第一隨機時間間隔的最短時長(例如:0.1s、0.2s等等)和最長時長(例如:0.4s、0.5s等等),在第一電子設備與第二電子設備之間需要添加連絡人時,可以通過第一電子設備隨機生成第一隨機時間間隔,在沒有達到該第一隨機時間間隔時,檢測第二電子設備所產生的第二聲音信號,在達到該第一隨機時間間隔之後,停止檢測第二聲音信號,開始播放第一聲音信號,同時繼續生成新的第一隨機時間間隔等等;在第一聲音信號播放結束之後,繼續檢測是否存在第二聲音信號,並將達到新的第一隨機時間間隔之後,繼續停止檢測第二聲音信號,並開始播放第一聲音信號,依次類推;直到第一電子設備檢測到第二聲音信號,或者,第一電子設備確認第二電子設備檢測到第一聲音信號。For example, the first electronic device may set the shortest duration (eg, 0.1s, 0.2s, etc.) and the longest duration (eg, 0.4s, 0.5s, etc.) of the first random time interval. When a contact needs to be added between the device and the second electronic device, a first random time interval may be randomly generated by the first electronic device, and when the first random time interval is not reached, a second sound generated by the second electronic device is detected Signal, after reaching the first random time interval, stop detecting the second sound signal, start playing the first sound signal, while continuing to generate a new first random time interval, etc .; after the first sound signal is finished playing, continue to detect Whether there is a second sound signal, and after reaching a new first random time interval, stop detecting the second sound signal and start playing the first sound signal, and so on; until the first electronic device detects the second sound signal, Alternatively, the first electronic device confirms that the second electronic device detects the first sound signal.

針對第二電子設備,其處理方式與之類似,也即:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。第二隨機時間間隔的確定方式與第一隨機時間間隔的確定方式類似,在此不再一一贅述。For the second electronic device, the processing method is similar, that is, the process of playing the second sound signal is started every second random time interval; when the second sound signal is played, the detection is stopped to obtain the first The process of sound signals. The determination method of the second random time interval is similar to the determination method of the first random time interval, and details are not described herein again.

由於在上述方案中,第一電子設備與第二電子設備啟動播放聲音信號的時間間隔都是隨機的,從而能夠錯開第一電子設備與第二電子設備播放聲音信號的時間,以保證兩者都能順利的接聽到對方所播放的聲音信號,從而能夠在第一電子設備與第二電子設備不具備同時接聽和播放聲音功能的情況下,也能夠準確的接聽的聲音信號,以完成連絡人的添加。In the above solution, the time interval between the first electronic device and the second electronic device starting to play the sound signal is random, so that the time when the first electronic device and the second electronic device play the sound signal can be staggered to ensure that both It can smoothly receive the sound signal played by the other party, so that when the first electronic device and the second electronic device do not have the function of simultaneously receiving and playing sound, the sound signal can be accurately received to complete the contact person's Add to.

步驟S102中,第一電子設備可以僅僅播放一次第一聲音信號,而為了保證第二電子設備接聽到第一聲音信號,第一電子設備也可以多次(例如:3次、4次等等)播放第一聲音信號,在這種情況下,在所述播放所述第一聲音信號之後,所述方法進一步包括:如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。In step S102, the first electronic device may play the first sound signal only once, and in order to ensure that the second electronic device receives the first sound signal, the first electronic device may also play multiple times (for example, 3 times, 4 times, etc.) Playing a first sound signal, in this case, after playing the first sound signal, the method further includes: if a confirmation signal generated by the second electronic device is detected, stopping playing the first sound signal Sound signal.

舉例來說,為了方便第一電子設備獲得該確認資訊,該確認信號也可以為聲音信號,第一電子設備可以通過麥克風採集獲得該確認資訊,從而確認第二電子設備已經接聽到第一聲音信號,則可以停止第一聲音信號的播放,通過該方案,能夠保證第一電子設備與第二電子設備之間可以相互檢測到對方。For example, in order to facilitate the first electronic device to obtain the confirmation information, the confirmation signal may also be a sound signal. The first electronic device may acquire the confirmation information through a microphone to confirm that the second electronic device has received the first sound signal. , Then the playback of the first sound signal can be stopped, and through this solution, it can be ensured that the first electronic device and the second electronic device can detect each other.

另外,在具體實施過程中,第一電子設備所產生的第一聲音信號,可以被多個電子設備所接聽到,例如:可以被電子設備A(對應使用者A)、電子設備B(對應使用者B)、電子設備C(對應使用者C)、電子設備D(對應使用者D),所接聽到,在這種情況下,這多個電子設備可以都將第一使用者添加為對應電子設備的使用者的連絡人,其中,這多個電子設備可以直接將第一使用者添加為對應電子設備的使用者的連絡人,又或者,這多個電子設備向伺服器發送添加連絡人請求,伺服器在接收到第一電子設備的確認資訊之後,才將第一使用者添加為對應電子設備的使用者的連絡人。例如:電子設備A、電子設備B、電子設備C、電子設備D在接聽到第一聲音信號之後,向伺服器發送對應的添加連絡人請求,伺服器接收到添加連絡人請求之後,分別向第一電子設備發送以下的詢問資訊:使用者A(使用者B、使用者C或者使用者D)希望將您添加為連絡人,請確認是否同意?,第一電子設備在接收到詢問資訊之後,如果希望被使用者A、使用者B、使用者C添加為連絡人,而並不希望被使用者D添加為連絡人,可以確認針對使用者A、使用者B、使用者C的詢問資訊,而拒絕針對使用者D的詢問資訊。又或者,第一電子設備也可以接聽電子設備A、電子設備B、電子設備C和電子設備D的聲音信號,然後第一電子設備僅希望添加使用者A、使用者B、使用者C為連絡人,則可以僅向伺服器發送針對使用者A、使用者B和使用者C的添加連絡人請求,而不發送針對使用者D的添加連絡人請求等等。In addition, in the specific implementation process, the first sound signal generated by the first electronic device can be heard by multiple electronic devices, for example, it can be used by electronic device A (corresponding to user A) and electronic device B (corresponding to use Person B), electronic device C (corresponding to user C), electronic device D (corresponding to user D), and in this case, the multiple electronic devices may all add the first user as the corresponding electronic device. A contact of a user of the device, where the multiple electronic devices can directly add the first user as a contact of the user of the corresponding electronic device, or the multiple electronic devices send a request to add a contact to the server , The server adds the first user as a contact of the user of the corresponding electronic device after receiving the confirmation information of the first electronic device. For example, after receiving the first sound signal, electronic device A, electronic device B, electronic device C, and electronic device D send a corresponding request for adding a contact to the server. After receiving the request for adding a contact, the server sends the request to the first contact. An electronic device sends the following query information: User A (User B, User C, or User D) wants to add you as a contact. Please confirm your agreement? After the first electronic device receives the inquiry information, if it wants to be added as a contact by user A, user B, and user C, but does not want to be added as a contact by user D, it can be confirmed for user A , User B, and user C's query information, while rejecting the query information for user D. Alternatively, the first electronic device can also listen to the sound signals of electronic device A, electronic device B, electronic device C, and electronic device D, and then the first electronic device only wants to add user A, user B, and user C as contacts Person, it may only send a contact adding request for user A, user B, and user C to the server, without sending a contact adding request for user D, and so on.

另外,在具體實施過程中,步驟S102中,第一電子設備可以在任意時機播放第一聲音信號,而為了降低第一電子設備的處理負擔,則第一使用者在需要添加其他使用者為連絡人時,可以控制第一電子設備進入添加連絡人或者交友介面,然後控制第一電子設備播放第一聲音信號;同理,也可以在第一電子設備進入添加連絡人或者交友介面之後,才接聽第二聲音信號。In addition, in the specific implementation process, in step S102, the first electronic device can play the first sound signal at any timing, and in order to reduce the processing load of the first electronic device, the first user needs to add other users as contacts When you are a person, you can control the first electronic device to enter the contact or friend interface, and then control the first electronic device to play the first sound signal. Similarly, you can also answer the call after the first electronic device enters the contact or friend interface. The second sound signal.

通常情況下,如果第一電子設備與第二電子設備之間彼此希望添加連絡人的話,則第一電子設備與第二電子設備分別進入交友介面,進行聲音信號的播放和檢測過程,基於聲音信號的播放,將自身的標識資訊提供給對方,基於聲音信號的檢測,獲得對方的標識資訊,由此添加對方為連絡人。Generally, if the first electronic device and the second electronic device wish to add contacts to each other, the first electronic device and the second electronic device enter the dating interface respectively to perform the playback and detection process of the sound signal, based on the sound signal Play, provide its own identification information to the other party, and obtain the other party ’s identification information based on the detection of the sound signal, thereby adding the other party as a contact.

第二方面,基於同一發明構思,本發明實施例提供一種添加連絡人方法,應用於第二電子設備中,請參考圖3,包括:In a second aspect, based on the same inventive concept, an embodiment of the present invention provides a method for adding a contact, which is applied to a second electronic device. Please refer to FIG. 3, including:

步驟S301:檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;Step S301: detecting and obtaining a first sound signal, where the first sound signal corresponds to the first identification information of the first electronic device;

步驟S302:基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。Step S302: Add the first user of the first electronic device as a contact of the second user of the second electronic device based on the first sound signal.

在具體實施過程中,步驟S302中可以採用多種方式將第一使用者添加為第二使用者的連絡人,下面列舉其中的兩種進行介紹,當然,在具體實施過程中,不限於以下兩種情況。In the specific implementation process, in step S302, the first user can be added as a contact of the second user in various ways. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two. Happening.

第一種,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括:基於所述第一聲音信號確定出所述第一標識資訊;將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。In the first type, adding the first user of the first electronic device as a contact of the second user of the second electronic device based on the first sound signal includes: based on the first sound signal Determining the first identification information; and sending the first identification information and the second identification information of the second electronic device to a server for the server to use based on the first identification information and the first identification information The second identification information adds the first user as a contact of the second user.

第二種,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括:將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Secondly, adding the first user of the first electronic device as a contact of the second user of the second electronic device based on the first sound signal includes: adding the first sound signal And the second identification information of the second electronic device is sent to a server for the server to determine the first identification information based on the first sound signal, and based on the first identification information and all information The second identification information adds the first user as a contact of the second user.

可選的,所述方法進一步包括:確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。其中,第二電子設備確定第二聲音信號的方式與第一電子設備確定第一聲音信號的方式類似,在此不再一一贅述。Optionally, the method further includes: determining a second sound signal corresponding to the second identification information of the second electronic device; and playing the second sound signal so that the first electronic device is receiving the When the second sound signal is described, the second user is added as a contact of the first user based on the second identification information. The manner in which the second electronic device determines the second sound signal is similar to the manner in which the first electronic device determines the first sound signal, and details are not described herein again.

可選的,所述方法進一步包括:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。Optionally, the method further includes: starting a process of playing the second sound signal every second random time interval; and stopping the process of detecting and obtaining the first sound signal when the second sound signal is played.

可選的,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括:如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。Optionally, adding the first user of the first electronic device as a contact of the second user of the second electronic device based on the first sound signal includes: if the first sound signal A sound signal including identification information corresponding to at least two electronic devices, and a user of the at least two electronic devices is added as a contact of the second user based on the first sound signal.

舉例來說,也就是第二電子設備可以通過接聽多個其他電子設備所產生的聲音信號,從而同時將多個其他電子設備的使用者添加為第二使用者的連絡人,例如:假設第二電子設備周圍存在電子設備A、電子設備B、電子設備C,這幾個電子設備都有播放其標識資訊所對應的聲音信號,則第二電子設備在接聽聲音信號時,會同時接聽到電子設備A、電子設備B、電子設備C的標識資訊所對應的聲音信號,則第二電子設備可以從中解析出電子設備A、電子設備B或者電子設備C的標識資訊,並將這些標識資訊發送至伺服器,從而將這些電子設備的使用者添加為第二使用者的連絡人;或者,第二電子設備直接將這些電子設備的聲音信號發送至伺服器,由伺服器解析出這些電子設備的標識資訊,並將這些電子設備的使用者添加為第二使用者的連絡人。基於該方案,達到了能夠同時為一個電子設備的使用者添加多個連絡人的技術效果。For example, that is, the second electronic device can listen to sound signals generated by multiple other electronic devices, thereby simultaneously adding users of multiple other electronic devices as contacts of the second user. For example, suppose the second There are electronic device A, electronic device B, and electronic device C around the electronic device. These electronic devices all play the sound signal corresponding to their identification information. When the second electronic device receives the sound signal, it will also hear the electronic device at the same time. A, the electronic device B, the electronic device C corresponding to the identification information, then the second electronic device can parse the identification information of the electronic device A, the electronic device B or the electronic device C, and send these identification information to the servo To add the users of these electronic devices as contacts of the second user; or, the second electronic device directly sends the sound signals of these electronic devices to the server, and the server parses out the identification information of these electronic devices And add users of these electronic devices as contacts for the second user. Based on this solution, the technical effect of being able to add multiple contacts to a user of an electronic device at the same time is achieved.

第三方面,基於同一發明構思,本發明實施例提供一種添加連絡人方法,請參考圖4,包括:In a third aspect, based on the same inventive concept, an embodiment of the present invention provides a method for adding a contact person. Please refer to FIG. 4, including:

步驟S401:接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;Step S401: receiving a first contact adding request associated with a first sound signal sent by a second electronic device, where the first sound signal corresponds to the first identification information of the first electronic device, and the second electronic device obtains the answering method The first sound signal played by the first electronic device;

步驟S402:基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;Step S402: determine the first identification information and the second identification information of the second electronic device based on the first add contact request;

步驟S403:基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。Step S403: Based on the first identification information and the second identification information, add a first user of the first electronic device as a contact of a second user of the second electronic device.

在具體實施過程中,第一添加連絡人請求中可以攜帶對應第二聲音信號的第二標識資訊(或者第二聲音信號),其中,可以直接將第二標識資訊(或者第二聲音信號)攜帶于第一添加連絡人請求中,為了提高資料傳輸的安全性,也可以對第二標識資訊(或者第二聲音信號)加密之後將其攜帶于第一添加連絡人請求,從而伺服器在獲得第一添加連絡人請求之後,需要對其中所包含的第二標識資訊(或者第二聲音信號)進行解密處理。In the specific implementation process, the first addition contact request may carry the second identification information (or the second sound signal) corresponding to the second sound signal, where the second identification information (or the second sound signal) may be directly carried In the first adding contact request, in order to improve the security of data transmission, the second identification information (or the second sound signal) may be encrypted and carried in the first adding contact request, so that the server obtains the first After a contact request is added, the second identification information (or the second sound signal) contained therein needs to be decrypted.

步驟S402中,可以通過多種方式確定出第一標識資訊,下面列舉其中的兩種進行介紹,當然,在具體實施過程中,不限於以下兩種情況。In step S402, the first identification information can be determined in multiple ways. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two cases.

第一種,所述基於所述第一添加連絡人請求確定出所述第一標識資訊,包括:First, the determining the first identification information based on the first add contact request includes:

從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,Extracting the first sound signal from the first adding contact request; determining the first identification information corresponding to the first sound signal based on a correspondence between the sound signal and the identification information; or,

從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。Extracting the first identification information from the first request for adding a contact, wherein after the second electronic device receives the first sound signal from the first electronic device, based on the first The sound signal parses out the first identification information.

第二種,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括:Secondly, based on the first identification information and the second identification information, adding a first user of the first electronic device as a contact of a second user of the second electronic device, include:

在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。After obtaining the confirmation signal of the second electronic device, the second user is added as a contact of the first user.

可選的,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括:接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。同理,第二添加連絡人請求中可以攜帶第一標識資訊(或者第一聲音信號),為了提高資料傳輸的安全性,可以將第一標識資訊(或者第一聲音信號)加密之後攜帶於第二添加連絡人請求中。Optionally, based on the first identification information and the second identification information, adding a first user of the first electronic device as a contact of a second user of the second electronic device, Including: receiving a second contact request for adding a second sound signal associated with a second sound signal sent by the first electronic device, the second sound signal corresponding to the second identification information, and the first electronic device obtaining the The second sound signal played by a second electronic device; after receiving the first add contact request and the second add contact request, connecting the first user and the second user to each other Add as a contact. Similarly, the second identification contact request may carry the first identification information (or the first sound signal). In order to improve the security of data transmission, the first identification information (or the first sound signal) may be encrypted and carried in the first Add a contact request.

第四方面,基於同一發明構思,本發明實施例提供一種伺服器,請參考圖5,包括:In a fourth aspect, based on the same inventive concept, an embodiment of the present invention provides a server. Please refer to FIG. 5, including:

接收模組50,用於接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;The receiving module 50 is configured to receive a first contact adding request associated with a first sound signal sent by a second electronic device, where the first sound signal corresponds to the first identification information of the first electronic device, and the second electronic device Obtaining the first sound signal played by the first electronic device in an answering manner;

第一確定模組51,用於基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;A first determining module 51, configured to determine the first identification information and the second identification information of the second electronic device based on the first contact addition request;

第一添加模組52,用於基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。The first adding module 52 is configured to add a first user of the first electronic device as a second user of the second electronic device based on the first identification information and the second identification information. Contact people.

可選的,所述第一確定模組51,用於:Optionally, the first determining module 51 is configured to:

從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,Extracting the first sound signal from the first adding contact request; determining the first identification information corresponding to the first sound signal based on a correspondence between the sound signal and the identification information; or,

從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。Extracting the first identification information from the first request for adding a contact, wherein after the second electronic device receives the first sound signal from the first electronic device, based on the first The sound signal parses out the first identification information.

可選的,所述第一添加模組52,用於:Optionally, the first adding module 52 is configured to:

在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。After obtaining the confirmation signal of the second electronic device, the second user is added as a contact of the first user.

可選的,所述第一添加模組52,包括:Optionally, the first adding module 52 includes:

接收單元,用於接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;A receiving unit, configured to receive a second add contact request associated with a second sound signal sent by the first electronic device, where the second sound signal corresponds to the second identification information, and the first electronic device uses an answering mode Obtaining the second sound signal played by the second electronic device;

添加單元,用於在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。The adding unit is configured to add the first user and the second user to each other as contacts after receiving the first request for adding a contact and the second request for adding a contact.

由於本發明第四方面所介紹的伺服器,與本發明實施例第一方面所介紹的添加連絡人方法所採用的伺服器為相同的伺服器,故而基於本發明實施例第一方面所介紹的添加連絡人方法,本發明所屬技術領域中具有通常知識者能夠瞭解本發明實施例第四方面所介紹的伺服器的具體結構及變形,故而在此不再贅述,凡是實施本發明實施例第一方面所介紹的添加連絡人方法所採用的伺服器都屬於本發明所欲保護的範圍。Since the server described in the fourth aspect of the present invention is the same server as that used in the method for adding a contact person described in the first aspect of the present invention, based on the first aspect of the present invention, The method of adding a contact person can be understood by those with ordinary knowledge in the technical field to which the present invention pertains to the specific structure and deformation of the server described in the fourth aspect of the embodiment of the present invention, so it will not be repeated here. The servers used in the method for adding contacts described in the aspects all belong to the scope of the present invention.

第五方面,基於同一發明構思,本發明實施例提供一種第一電子設備,請參考圖6,包括:In a fifth aspect, based on the same inventive concept, an embodiment of the present invention provides a first electronic device. Please refer to FIG. 6, including:

第二確定模組60,用於確定第一電子設備的第一標識資訊所對應的第一聲音信號;A second determining module 60, configured to determine a first sound signal corresponding to the first identification information of the first electronic device;

第一播放模組61,用於播放所述第一聲音信號。The first playback module 61 is configured to play the first sound signal.

可選的,所述第二確定模組60,用於:Optionally, the second determining module 60 is configured to:

從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者,Determine the first sound signal from the correspondence between the identification information and the sound signal based on the first identification information; or

對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。Encode the first identification information according to a preset rule, thereby generating the first sound signal.

可選的,所述第一電子設備進一步包括:Optionally, the first electronic device further includes:

停止模組,用於如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。A stop module is configured to stop playing the first sound signal if a confirmation signal generated by the second electronic device is detected.

可選的,所述第一電子設備進一步包括:Optionally, the first electronic device further includes:

第一檢測模組,用於檢測第二電子設備所播放的第二聲音信號;A first detection module, configured to detect a second sound signal played by a second electronic device;

第二添加模組,用於在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。The second adding module is configured to add the second user as a contact of the first user based on the second identification information corresponding to the second sound signal after receiving the second sound signal. people.

可選的,所述第一播放模組61,用於:每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程;Optionally, the first playback module 61 is configured to: start a process of playing the first sound signal every first random time interval;

所述第一檢測模組,用於在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。The first detection module is configured to start a process of detecting the second sound signal at a time other than playing the first sound signal.

由於本發明第五方面所介紹的第一電子設備,與本發明實施例第一方面所介紹的添加連絡人方法所採用的第一電子設備為相同的第一電子設備,故而基於本發明實施例第一方面所介紹的添加連絡人方法,本發明所屬技術領域中具有通常知識者能夠瞭解本發明實施例第五方面所介紹的第一電子設備的具體結構及變形,故而在此不再贅述,凡是實施本發明實施例第一方面所介紹的添加連絡人方法所採用的第一電子設備都屬於本發明所欲保護的範圍。Because the first electronic device described in the fifth aspect of the present invention is the same first electronic device as the first electronic device used in the method of adding a contact person described in the first aspect of the present invention, it is based on the embodiment of the present invention. The method for adding a contact person described in the first aspect can enable a person having ordinary knowledge in the technical field to which the present invention pertains to understand the specific structure and deformation of the first electronic device described in the fifth aspect of the embodiments of the present invention, and therefore will not be repeated here. Any first electronic device used to implement the method for adding a contact person described in the first aspect of the embodiment of the present invention belongs to the scope of the present invention.

第六方面,基於同一發明構思,本發明實施例提供一種第二電子設備,請參考圖7,包括:In a sixth aspect, based on the same inventive concept, an embodiment of the present invention provides a second electronic device. Please refer to FIG. 7, including:

第二檢測模組70,用於檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;A second detection module 70, configured to detect and obtain a first sound signal, where the first sound signal corresponds to the first identification information of the first electronic device;

第三添加模組71,用於基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。The third adding module 71 is configured to add a first user of the first electronic device as a contact of a second user of the second electronic device based on the first sound signal.

可選的,所述第三添加模組71,包括:Optionally, the third adding module 71 includes:

確定單元,用於基於所述第一聲音信號確定出所述第一標識資訊;A determining unit, configured to determine the first identification information based on the first sound signal;

發送單元,用於將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。A sending unit, configured to send the first identification information and the second identification information of the second electronic device to a server for the server to send based on the first identification information and the second identification information The first user is added as a contact of the second user.

可選的,所述第三添加模組71,用於:Optionally, the third adding module 71 is configured to:

將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Sending the first sound signal and the second identification information of the second electronic device to a server for the server to determine the first identification information based on the first sound signal, and based on the The first identification information and the second identification information add the first user as a contact of the second user.

可選的,所述第二電子設備進一步包括:Optionally, the second electronic device further includes:

第三確定模組,用於確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;A third determining module, configured to determine a second sound signal corresponding to the second identification information of the second electronic device;

第二播放模組,用於播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。A second playback module, configured to play the second sound signal, so that when the first electronic device receives the second sound signal, adds the second user based on the second identification information A contact for the first user.

可選的,第二播放模組,用於:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;Optionally, a second playback module is configured to: start the process of playing the second sound signal every second random time interval;

所述第二檢測模組70,用於在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。The second detection module 70 is configured to stop detecting a process of obtaining the first sound signal when the second sound signal is played.

可選的,所述第三添加模組71,用於:Optionally, the third adding module 71 is configured to:

如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。If the first sound signal includes a sound signal corresponding to identification information of at least two electronic devices, adding a user of the at least two electronic devices as a contact of the second user based on the first sound signal .

由於本發明第六方面所介紹的第二電子設備,與本發明實施例第一方面所介紹的添加連絡人方法所採用的第二電子設備為相同的第二電子設備,故而基於本發明實施例第一方面所介紹的添加連絡人方法,本發明所屬技術領域中具有通常知識者能夠瞭解本發明實施例第六方面所介紹的第二電子設備的具體結構及變形,故而在此不再贅述,凡是實施本發明實施例第一方面所介紹的添加連絡人方法所採用的第二電子設備都屬於本發明所欲保護的範圍。Since the second electronic device described in the sixth aspect of the present invention is the same second electronic device as the second electronic device used in the method of adding a contact person described in the first aspect of the present invention, it is based on the embodiment of the present invention. The method for adding a contact person described in the first aspect can enable a person having ordinary knowledge in the technical field to which the present invention pertains to understand the specific structure and deformation of the second electronic device described in the sixth aspect of the embodiments of the present invention, and will not be repeated here. Any second electronic device used to implement the method for adding a contact person described in the first aspect of the embodiment of the present invention belongs to the scope of the present invention.

第七方面,基於同一發明構思,本發明實施例提供一種伺服器,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:According to a seventh aspect, based on the same inventive concept, an embodiment of the present invention provides a server including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be replaced by one or more More than one processor executing the one or more programs includes instructions for:

接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;Receiving a first add contact request associated with a first sound signal sent by a second electronic device, the first sound signal corresponding to the first identification information of the first electronic device, and the second electronic device obtaining the first The first sound signal played by an electronic device;

基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;Determining the first identification information and the second identification information of the second electronic device based on the first add contact request;

基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。Based on the first identification information and the second identification information, a first user of the first electronic device is added as a contact of a second user of the second electronic device.

可選的,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the server is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,Extracting the first sound signal from the first adding contact request; determining the first identification information corresponding to the first sound signal based on a correspondence between the sound signal and the identification information; or,

從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。Extracting the first identification information from the first request for adding a contact, wherein after the second electronic device receives the first sound signal from the first electronic device, based on the first The sound signal parses out the first identification information.

可選的,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the server is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。After obtaining the confirmation signal of the second electronic device, the second user is added as a contact of the first user.

可選的,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the server is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;Receiving a second add contact request associated with a second sound signal sent by the first electronic device, the second sound signal corresponding to the second identification information, and the first electronic device obtaining the second The second sound signal played by the electronic device;

在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。After receiving the first add contact request and the second add contact request, the first user and the second user are added to each other as contacts.

由於本發明第七方面所介紹的伺服器,與本發明實施例第一方面所介紹的添加連絡人方法所採用的伺服器為相同的伺服器,故而基於本發明實施例第一方面所介紹的添加連絡人方法,本發明所屬技術領域中具有通常知識者能夠瞭解本發明實施例第七方面所介紹的伺服器的具體結構及變形,故而在此不再贅述,凡是實施本發明實施例第一方面所介紹的添加連絡人方法所採用的伺服器都屬於本發明所欲保護的範圍。Since the server described in the seventh aspect of the present invention is the same server as the server used in the method for adding a contact person described in the first aspect of the present invention, based on the The method of adding a contact person has ordinary knowledge in the technical field to which the present invention can understand the specific structure and deformation of the server described in the seventh aspect of the embodiment of the present invention, so it will not be repeated here. The servers used in the method for adding contacts described in the aspects all belong to the scope of the present invention.

第八方面,基於同一發明構思,本發明實施例提供一種第一電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:According to an eighth aspect, based on the same inventive concept, an embodiment of the present invention provides a first electronic device including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be configured by Execution of the one or more programs by one or more processors includes instructions for:

確定第一電子設備的第一標識資訊所對應的第一聲音信號;Determining a first sound signal corresponding to the first identification information of the first electronic device;

播放所述第一聲音信號。Playing the first sound signal.

可選的,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the first electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者,Determine the first sound signal from the correspondence between the identification information and the sound signal based on the first identification information; or

對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。Encode the first identification information according to a preset rule, thereby generating the first sound signal.

可選的,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the first electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。If a confirmation signal generated by the second electronic device is detected, the first sound signal is stopped playing.

可選的,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the first electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

檢測第二電子設備所播放的第二聲音信號;Detecting a second sound signal played by the second electronic device;

在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。After receiving the second sound signal, the second user is added as a contact of the first user based on the second identification information corresponding to the second sound signal.

可選的,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the first electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程;Starting the process of playing the first sound signal every first random time interval;

在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。At a time other than playing the first sound signal, a process of detecting the second sound signal is started.

由於本發明第八方面所介紹的第一電子設備,與本發明實施例第一方面所介紹的添加連絡人方法所採用的第一電子設備為相同的第一電子設備,故而基於本發明實施例第一方面所介紹的添加連絡人方法,本發明所屬技術領域中具有通常知識者能夠瞭解本發明實施例第八方面所介紹的第一電子設備的具體結構及變形,故而在此不再贅述,凡是實施本發明實施例第一方面所介紹的添加連絡人方法所採用的第一電子設備都屬於本發明所欲保護的範圍。Since the first electronic device described in the eighth aspect of the present invention is the same first electronic device as the first electronic device used in the method for adding a contact person described in the first aspect of the present invention, it is based on the embodiment of the present invention. The method for adding a contact person described in the first aspect can enable a person having ordinary knowledge in the technical field to which the present invention pertains to understand the specific structure and deformation of the first electronic device described in the eighth aspect of the embodiment of the present invention, and therefore will not be repeated here. Any first electronic device used to implement the method for adding a contact person described in the first aspect of the embodiment of the present invention belongs to the scope of the present invention.

第九方面,基於同一發明構思,本發明實施例提供一種第二電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:In a ninth aspect, based on the same inventive concept, an embodiment of the present invention provides a second electronic device, including a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to Execution of the one or more programs by one or more processors includes instructions for:

檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;Detecting and obtaining a first sound signal, where the first sound signal corresponds to the first identification information of the first electronic device;

基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。Based on the first sound signal, a first user of the first electronic device is added as a contact of a second user of the second electronic device.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the second electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

基於所述第一聲音信號確定出所述第一標識資訊;Determining the first identification information based on the first sound signal;

將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Sending the first identification information and the second identification information of the second electronic device to a server for the server to use the first based on the first identification information and the second identification information This is added as a contact for the second user.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the second electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Sending the first sound signal and the second identification information of the second electronic device to a server for the server to determine the first identification information based on the first sound signal, and based on the The first identification information and the second identification information add the first user as a contact of the second user.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the second electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;Determining a second sound signal corresponding to the second identification information of the second electronic device;

播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。Playing the second sound signal, so that when the first electronic device receives the second sound signal, based on the second identification information, the second user is added as the first user ’s Contact people.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;Optionally, the second electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: starting to play the second random time interval. The process of the second sound signal;

在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。When the second sound signal is played, the process of detecting and obtaining the first sound signal is stopped.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the second electronic device is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。If the first sound signal includes a sound signal corresponding to identification information of at least two electronic devices, adding a user of the at least two electronic devices as a contact of the second user based on the first sound signal .

由於本發明第九方面所介紹的第二電子設備,與本發明實施例第一方面所介紹的添加連絡人方法所採用的第二電子設備為相同的第二電子設備,故而基於本發明實施例第一方面所介紹的添加連絡人方法,本發明所屬技術領域中具有通常知識者能夠瞭解本發明實施例第九方面所介紹的第二電子設備的具體結構及變形,故而在此不再贅述,凡是實施本發明實施例第一方面所介紹的添加連絡人方法所採用的第二電子設備都屬於本發明所欲保護的範圍。Since the second electronic device described in the ninth aspect of the present invention is the same second electronic device as the second electronic device used in the method of adding a contact person described in the first aspect of the present invention, it is based on the embodiment of the present invention. The method for adding a contact person described in the first aspect can enable a person having ordinary knowledge in the technical field to which the present invention pertains to understand the specific structure and deformation of the second electronic device described in the ninth aspect of the embodiments of the present invention, and therefore will not be repeated here. Any second electronic device used to implement the method for adding a contact person described in the first aspect of the embodiment of the present invention belongs to the scope of the present invention.

圖8是根據一示例性實施例示出的一種添加連絡人方法的電子設備800(第一電子設備或第二電子設備)的框圖。例如,電子設備800可以是行動電話,電腦,數位廣播終端,消息收發設備,遊戲控制台,平板設備,醫療設備,健身設備,個人數位助理等。Fig. 8 is a block diagram of an electronic device 800 (a first electronic device or a second electronic device) showing a method for adding a contact person according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

參照圖8,電子設備800可以包括以下一個或多個組件:處理組件802,記憶體804,電源組件806,多媒體組件808,音頻組件810,輸入/輸出(I/ O)介面812,傳感器組件814,以及通信組件816。8, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, and a sensor component 814 , And communication component 816.

處理組件802通常控制電子設備800的整體操作,諸如與顯示,電話呼叫,資料通信,相機操作和記錄操作相關聯的操作。處理組件802可以包括一個或多個處理器820來執行指令,以完成上述的方法的全部或部分步驟。此外,處理組件802可以包括一個或多個模組,便於處理組件802和其他組件之間的交互。例如,處理組件802可以包括多媒體模組,以方便多媒體組件808和處理組件802之間的交互。The processing component 802 generally controls overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the method described above. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

記憶體804被配置為存儲各種類型的資料以支援在電子設備800的操作。這些資料的示例包括用於在電子設備800上操作的任何應用程式或方法的指令,連絡人資料,電話簿資料,消息,圖片,視頻等。記憶體804可以由任何類型的易失性或非易失性存放裝置或者它們的組合實現,如靜態隨機存取記憶體(SRAM),電可抹除式可程式唯讀記憶體(EEPROM),可抹除可程式唯讀記憶體(EPROM),可程式唯讀記憶體(PROM),唯讀記憶體(ROM),磁記憶體,快閃記憶體,磁片或光碟。The memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these materials include instructions for any application or method for operating on the electronic device 800, contact information, phonebook information, messages, pictures, videos, and the like. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.

電源組件806為電子設備800的各種組件提供電力。電源組件806可以包括電源管理系統,一個或多個電源,及其他與為電子設備800生成、管理和分配電力相關聯的組件。The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.

多媒體組件808包括在所述電子設備800和使用者之間的提供一個輸出介面的螢幕。在一些實施例中,螢幕可以包括液晶顯示器(LCD)和觸控面板(TP)。如果螢幕包括觸控面板,螢幕可以被實現為觸控螢幕,以接收來自使用者的輸入信號。觸控面板包括一個或多個觸控傳感器以感測觸摸、滑動和觸控面板上的手勢。所述觸控傳感器可以不僅感測觸控或滑動動作的邊界,而且還檢測與所述觸控或滑動操作相關的持續時間和壓力。在一些實施例中,多媒體組件808包括一個前置攝像頭和/或後置攝像頭。當電子設備800處於操作模式,如拍攝模式或視訊模式時,前置攝像頭和/或後置攝像頭可以接收外部的多媒體資料。每個前置攝像頭和後置攝像頭可以是一個固定的光學透鏡系統或具有焦距和光學變焦能力。The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor can not only sense the boundary of a touch or sliding action, but also detect the duration and pressure related to the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

音頻組件810被配置為輸出和/或輸入音頻信號。例如,音頻組件810包括一個麥克風(MIC),當電子設備800處於操作模式,如呼叫模式、記錄模式和語音識別模式時,麥克風被配置為接收外部音頻信號。所接收的音頻信號可以被進一步存儲在記憶體804或經由通信組件816發送。在一些實施例中,音頻組件810還包括一個揚聲器,用於輸出音頻信號。The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC). When the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

I/ O介面812為處理組件802和週邊介面模組之間提供介面,上述週邊介面模組可以是鍵盤,點擊輪,按鈕等。這些按鈕可包括但不限於:主頁按鈕、音量按鈕、啟動按鈕和鎖定按鈕。The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

傳感器組件814包括一個或多個傳感器,用於為電子設備800提供各個方面的狀態評估。例如,傳感器組件814可以檢測到電子設備800的打開/關閉狀態,組件的相對定位,例如所述組件為電子設備800的顯示器和小鍵盤,傳感器組件814還可以檢測電子設備800或電子設備800一個組件的位置改變,使用者與電子設備800接觸的存在或不存在,電子設備800方位或加速/減速和電子設備800的溫度變化。傳感器組件814可以包括接近傳感器,被配置用來在沒有任何的物理接觸時檢測附近物體的存在。傳感器組件814還可以包括光傳感器,如CMOS或CCD視頻傳感器,用於在成像應用中使用。在一些實施例中,該傳感器組件814還可以包括加速度傳感器,陀螺儀傳感器,磁傳感器,壓力傳感器或溫度傳感器。The sensor component 814 includes one or more sensors for providing various aspects of the state evaluation of the electronic device 800. For example, the sensor component 814 may detect the on / off state of the electronic device 800, and the relative positioning of the components, such as the display and keypad of the electronic device 800. The sensor component 814 may also detect the electronic device 800 or an electronic device 800 The position of the component changes, the presence or absence of the user's contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD video sensor, for use in imaging applications. In some embodiments, the sensor component 814 may further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信組件816被配置為便於電子設備800和其他設備之間有線或無線方式的通信。電子設備800可以接入基於通信標準的無線網路,如WiFi,2G或3G,或它們的組合。在一個示例性實施例中,通信組件816經由廣播通道接收來自外部廣播管理系統的廣播信號或廣播相關資訊。在一個示例性實施例中,所述通信組件816還包括近場通信(NFC)模組,以促進短程通信。例如,在NFC模組可基於射頻識別(RFID)技術,紅外資料協會(IrDA)技術,超寬頻(UWB)技術,藍牙(BT)技術和其他技術來實現。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性實施例中,電子設備800可以被一個或多個應用專用積體電路(ASIC)、數位信號處理器(DSP)、數位信號處理設備(DSPD)、可程式邏輯裝置(PLD)、現場可程式化閘陣列(FPGA)、控制器、微控制器、微處理器或其他電子元件實現,用於執行上述方法。In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation is used to perform the above methods.

在示例性實施例中,還提供了一種包括指令的非臨時性電腦可讀存儲介質,例如包括指令的記憶體804,上述指令可由電子設備800的處理器820執行以完成上述方法。例如,所述非臨時性電腦可讀存儲介質可以是ROM、隨機存取記憶體(RAM)、CD-ROM、磁帶、軟碟和光數據存儲設備等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, for example, a memory 804 including instructions, may be executed by the processor 820 of the electronic device 800 to complete the foregoing method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

一種非臨時性電腦可讀存儲介質,當所述存儲介質中的指令由第一電子設備的處理器執行時,使得第一電子設備能夠執行一種添加連絡人方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a first electronic device, enable the first electronic device to execute a method for adding a contact, the method including:

確定第一電子設備的第一標識資訊所對應的第一聲音信號;Determining a first sound signal corresponding to the first identification information of the first electronic device;

播放所述第一聲音信號。Playing the first sound signal.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者,Determine the first sound signal from the correspondence between the identification information and the sound signal based on the first identification information; or

對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。Encode the first identification information according to a preset rule, thereby generating the first sound signal.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。If a confirmation signal generated by the second electronic device is detected, the first sound signal is stopped playing.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

檢測第二電子設備所播放的第二聲音信號;Detecting a second sound signal played by the second electronic device;

在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。After receiving the second sound signal, the second user is added as a contact of the first user based on the second identification information corresponding to the second sound signal.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程;Starting the process of playing the first sound signal every first random time interval;

在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。At a time other than playing the first sound signal, a process of detecting the second sound signal is started.

一種非臨時性電腦可讀存儲介質,當所述存儲介質中的指令由第二電子設備的處理器執行時,使得第二電子設備能夠執行一種添加連絡人方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a second electronic device, enable the second electronic device to execute a method for adding a contact, the method comprising:

檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;Detecting and obtaining a first sound signal, where the first sound signal corresponds to the first identification information of the first electronic device;

基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。Based on the first sound signal, a first user of the first electronic device is added as a contact of a second user of the second electronic device.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

基於所述第一聲音信號確定出所述第一標識資訊;Determining the first identification information based on the first sound signal;

將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Sending the first identification information and the second identification information of the second electronic device to a server for the server to use the first based on the first identification information and the second identification information This is added as a contact for the second user.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。Sending the first sound signal and the second identification information of the second electronic device to a server for the server to determine the first identification information based on the first sound signal, and based on the The first identification information and the second identification information add the first user as a contact of the second user.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;Determining a second sound signal corresponding to the second identification information of the second electronic device;

播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。Playing the second sound signal, so that when the first electronic device receives the second sound signal, based on the second identification information, the second user is added as the first user ’s Contact people.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;Starting a process of playing the second sound signal every second random time interval;

在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。When the second sound signal is played, the process of detecting and obtaining the first sound signal is stopped.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。If the first sound signal includes a sound signal corresponding to identification information of at least two electronic devices, adding a user of the at least two electronic devices as a contact of the second user based on the first sound signal .

圖9是本發明的一些實施例中伺服器的結構示意圖。該伺服器1900可因配置或性能不同而產生比較大的差異,可以包括一個或一個以上中央處理器(central processing units,CPU)1922(例如,一個或一個以上處理器)和記憶體1932,一個或一個以上存儲應用程式1942或資料1944的存儲介質1930(例如一個或一個以上海量存儲設備)。其中,記憶體1932和存儲介質1930可以是短暫存儲或持久存儲。存儲在存儲介質1930的程式可以包括一個或一個以上模組(圖示沒標出),每個模組可以包括對伺服器中的一系列指令操作。更進一步地,中央處理器1922可以設置為與存儲介質1930通信,在伺服器1900上執行存儲介質1930中的一系列指令操作。FIG. 9 is a schematic structural diagram of a server in some embodiments of the present invention. The server 1900 may have a large difference due to different configurations or performance, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, one Or more than one storage medium 1930 storing application programs 1942 or data 1944 (such as one or one storage device in Shanghai). The memory 1932 and the storage medium 1930 may be temporary storage or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of command operations on the server. Furthermore, the central processing unit 1922 may be configured to communicate with the storage medium 1930, and execute a series of instruction operations in the storage medium 1930 on the server 1900.

伺服器1900還可以包括一個或一個以上電源1926,一個或一個以上有線或無線網路介面1950,一個或一個以上輸入輸出介面1958,一個或一個以上鍵盤1956,和/或,一個或一個以上作業系統1941,例如Windows ServerTM,Mac OS XTM,UnixTM, LinuxTM,FreeBSDTM等等。The server 1900 may also include one or more power sources 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and / or, one or more operations System 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

一種非臨時性電腦可讀存儲介質,當所述存儲介質中的指令由伺服器的處理器執行時,使得伺服器能夠執行一種添加連絡人方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a server, enable the server to execute a method for adding a contact, the method includes:

接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;Receiving a first add contact request associated with a first sound signal sent by a second electronic device, the first sound signal corresponding to the first identification information of the first electronic device, and the second electronic device obtaining the first The first sound signal played by an electronic device;

基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;Determining the first identification information and the second identification information of the second electronic device based on the first add contact request;

基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。Based on the first identification information and the second identification information, a first user of the first electronic device is added as a contact of a second user of the second electronic device.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,Extracting the first sound signal from the first adding contact request; determining the first identification information corresponding to the first sound signal based on a correspondence between the sound signal and the identification information; or,

從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。Extracting the first identification information from the first request for adding a contact, wherein after the second electronic device receives the first sound signal from the first electronic device, based on the first The sound signal parses out the first identification information.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。After obtaining the confirmation signal of the second electronic device, the second user is added as a contact of the first user.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:Optionally, the readable storage medium is further configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;Receiving a second add contact request associated with a second sound signal sent by the first electronic device, the second sound signal corresponding to the second identification information, and the first electronic device obtaining the second The second sound signal played by the electronic device;

在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。After receiving the first add contact request and the second add contact request, the first user and the second user are added to each other as contacts.

本發明一個或多個實施例,至少具有以下有益效果:One or more embodiments of the present invention have at least the following beneficial effects:

由於在本發明實施例中,第一電子設備可以通過播放第一聲音信號的方式將其第一標識資訊提供給第二電子設備,從而第二電子設備直接基於接聽到的第一聲音信號就可以將第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,而不需要額外的功能模組(例如:藍牙模組、WIFI模組等等),故而達到了降低添加連絡人的成本的技術效果。並且,通常情況下採集聲音信號的方式都較為方便,不需要使用者手動對麥克風進行調整,也不需要使用者手動進行一些其他輸入,故而能夠提高添加連絡人的效率。In the embodiment of the present invention, the first electronic device can provide its first identification information to the second electronic device by playing the first sound signal, so that the second electronic device can directly based on the received first sound signal. Adding the first user of the first electronic device as the contact of the second user of the second electronic device without the need for additional functional modules (such as Bluetooth module, WIFI module, etc.), thus achieving The technical effect of reducing the cost of adding contacts. In addition, in general, the methods of collecting sound signals are relatively convenient, and the user does not need to manually adjust the microphone, and the user does not need to manually perform some other input, so the efficiency of adding contacts can be improved.

本發明是參照根據本發明實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式資料處理設備的處理器以產生一個機器,使得通過電腦或其他可程式資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方框或多個方框中指定的功能的設備。The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and a combination of the flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to generate a machine, so that instructions generated by the processor of the computer or other programmable data processing device can be used A device for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.

這些電腦程式指令也可存儲在能引導電腦或其他可程式資料處理設備以特定方式工作的電腦可讀記憶體中,使得存儲在該電腦可讀記憶體中的指令產生包括指令設備的製造品,該指令設備實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。These computer program instructions may also be stored in computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory generate a manufactured article including the instruction device, The instruction device implements a function specified in a flowchart or a plurality of processes and / or a block or a block of a block diagram.

這些電腦程式指令也可裝載到電腦或其他可程式資料處理設備上,使得在電腦或其他可程式設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operating steps can be performed on the computer or other programmable equipment to generate computer-implemented processing, thereby executing on the computer or other programmable equipment The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.

儘管已描述了本發明的優選實施例,但本發明所屬技術領域中具有通常知識者一旦得知了基本創造性概念,則可對這些實施例作出另外的變更和修改。所以,申請專利範圍意欲解釋為包括優選實施例以及落入本發明範圍的所有變更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art to which the present invention pertains may make additional changes and modifications to these embodiments once they have learned the basic inventive concepts. Therefore, the scope of patent application is intended to be construed as including the preferred embodiments as well as all changes and modifications that fall within the scope of the invention.

顯然,本發明所屬技術領域中具有通常知識者可以對本發明進行各種改動和變型而不脫離本發明的精神和範圍。這樣,倘若本發明的這些修改和變型屬於本發明申請專利範圍及其等同技術的範圍之內,則本發明也意圖包含這些改動和變型在內。Obviously, those skilled in the art to which the present invention pertains can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the patent application for the present invention and the scope of the equivalent technology, the present invention also intends to include these modifications and variations.

50‧‧‧接收模組 50‧‧‧Receiving module

51‧‧‧第一確定模組 51‧‧‧First Confirmation Module

52‧‧‧第一添加模組 52‧‧‧The first add module

60‧‧‧第二確定模組 60‧‧‧Second Confirmation Module

61‧‧‧第一播放模組 61‧‧‧The first playback module

70‧‧‧第二檢測模組 70‧‧‧Second detection module

71‧‧‧第三添加模組 71‧‧‧ Third Add Module

800‧‧‧電子設備 800‧‧‧electronic equipment

802‧‧‧處理組件 802‧‧‧Processing component

804‧‧‧記憶體 804‧‧‧Memory

806‧‧‧電源組件 806‧‧‧Power Module

808‧‧‧多媒體組件 808‧‧‧Multimedia component

810‧‧‧音頻組件 810‧‧‧Audio components

812‧‧‧I/O介面 812‧‧‧I / O interface

814‧‧‧傳感器組件 814‧‧‧Sensor component

816‧‧‧通信組件 816‧‧‧Communication component

820‧‧‧處理器 820‧‧‧Processor

1900‧‧‧伺服器 1900‧‧‧Server

1922‧‧‧中央處理器 1922‧‧‧Central Processing Unit

1926‧‧‧電源 1926‧‧‧Power

1930‧‧‧存儲介質 1930‧‧‧Storage media

1932‧‧‧記憶體 1932‧‧‧Memory

1941‧‧‧作業系統 1941‧‧‧Operating System

1942‧‧‧應用程式 1942‧‧‧ Apps

1944‧‧‧資料 1944‧‧‧ Information

1950‧‧‧有線或無線網路介面 1950‧‧‧Wired or wireless network interface

1956‧‧‧鍵盤 1956‧‧‧Keyboard

1958‧‧‧輸入輸出介面 1958‧‧‧Input and output interface

圖1為本發明實施例的第一方面的添加連絡人方法的流程圖。 圖2為本發明實施例的智慧型手錶的結構圖。 圖3為本發明實施例的第二方面的添加連絡人方法的流程圖。 圖4為本發明實施例的第三方面的添加連絡人方法的流程圖。 圖5為本發明實施例的第四方面的伺服器的結構圖。 圖6為本發明實施例的第五方面的第一電子設備的結構圖。 圖7為本發明實施例的第六方面的第二電子設備的結構圖。 圖8為本發明實施例中實施添加連絡人方法的電子設備的結構圖。 圖9為本發明實施例中實施添加連絡人方法的伺服器的結構圖。FIG. 1 is a flowchart of a method for adding a contact person according to a first aspect of an embodiment of the present invention. FIG. 2 is a structural diagram of a smart watch according to an embodiment of the present invention. 3 is a flowchart of a method for adding a contact person according to a second aspect of an embodiment of the present invention. FIG. 4 is a flowchart of a method for adding a contact person according to a third aspect of the embodiments of the present invention. FIG. 5 is a structural diagram of a server according to a fourth aspect of the embodiment of the present invention. FIG. 6 is a structural diagram of a first electronic device according to a fifth aspect of the embodiments of the present invention. FIG. 7 is a structural diagram of a second electronic device according to a sixth aspect of the embodiments of the present invention. FIG. 8 is a structural diagram of an electronic device implementing a method for adding a contact person according to an embodiment of the present invention. FIG. 9 is a structural diagram of a server implementing a method for adding a contact person according to an embodiment of the present invention.

Claims (21)

一種添加連絡人方法,包括: 接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號; 基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊; 基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。A method for adding a contact includes: receiving a first contact adding request associated with a first sound signal sent by a second electronic device, the first sound signal corresponding to the first identification information of the first electronic device, and the second electronic device The device obtains the first sound signal played by the first electronic device in a listening manner; and determines the first identification information and the second identification information of the second electronic device based on the first addition contact request. Adding a first user of the first electronic device as a contact of a second user of the second electronic device based on the first identification information and the second identification information. 如請求項1所述之添加連絡人方法,所述基於所述第一添加連絡人請求確定出所述第一標識資訊,包括: 從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者, 從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。The method for adding a contact person according to claim 1, wherein the determining the first identification information based on the first adding contact person request includes: extracting the first contact information from the first adding contact person request A sound signal; determining the first identification information corresponding to the first sound signal based on a correspondence between the sound signal and the identification information; or extracting the first identification from the first contact adding request Information, wherein after receiving the first sound signal from the first electronic device, the second electronic device parses out the first identification information based on the first sound signal. 如請求項1所述之添加連絡人方法,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括: 在獲得所述第一電子設備的確認信號之後,將所述第一使用者添加為所述第二使用者的連絡人。The method of adding a contact person according to claim 1, wherein, based on the first identification information and the second identification information, adding a first user of the first electronic device as a contact of the second electronic device The contact of the second user includes: after obtaining the confirmation signal of the first electronic device, adding the first user as a contact of the second user. 如請求項1至3中任一項所述之添加連絡人方法,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括: 接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號; 在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。According to the method for adding a contact person according to any one of claims 1 to 3, the first user of the first electronic device is added as the all based on the first identification information and the second identification information. The contact of the second user of the second electronic device includes: receiving a second contact request for adding a second sound signal associated with a second sound signal sent by the first electronic device, the second sound signal corresponding to the second identifier Information, the first electronic device obtains the second sound signal played by the second electronic device in a listening manner; after receiving the first add contact request and the second add contact request, The first user and the second user are added as contacts to each other. 一種添加連絡人方法,包括: 確定第一電子設備的第一標識資訊所對應的第一聲音信號; 播放所述第一聲音信號。A method for adding a contact includes: determining a first sound signal corresponding to the first identification information of the first electronic device; and playing the first sound signal. 如請求項5所述之添加連絡人方法,所述確定第一電子設備的第一標識資訊所對應的第一聲音信號,包括: 從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者, 對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。The method for adding a contact person as described in claim 5, wherein the determining the first sound signal corresponding to the first identification information of the first electronic device includes: from the correspondence between the identification information and the sound signal, based on the first The identification information determines the first sound signal; or, the first identification information is encoded according to a preset rule to generate the first sound signal. 如請求項5所述之添加連絡人方法,在所述播放所述第一聲音信號之後,所述方法進一步包括: 如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。The method of adding a contact person as described in claim 5, after the playing of the first sound signal, the method further comprises: if a confirmation signal generated by the second electronic device is detected, stopping playing the first Sound signal. 如請求項5所述之添加連絡人方法,所述方法進一步包括: 檢測第二電子設備所播放的第二聲音信號; 在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。The method for adding a contact person according to claim 5, the method further comprising: detecting a second sound signal played by the second electronic device; and after receiving the second sound signal, based on the second sound signal. The corresponding second identification information adds the second user as a contact of the first user. 如請求項8所述之添加連絡人方法,所述方法進一步包括: 每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程; 在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。The method of adding a contact person as described in claim 8, the method further comprising: starting a process of playing the first sound signal at a first random time interval; at a time other than playing the first sound signal , Starting a process of detecting the second sound signal. 一種添加連絡人方法,包括: 檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊; 基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。A method for adding a contact includes: detecting and obtaining a first sound signal, the first sound signal corresponding to the first identification information of the first electronic device; and based on the first sound signal, The user is added as a contact of the second user of the second electronic device. 如請求項10所述之添加連絡人方法,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括: 基於所述第一聲音信號確定出所述第一標識資訊; 將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。The method for adding a contact person according to claim 10, wherein the adding a first user of the first electronic device as a contact person of a second user of the second electronic device based on the first sound signal includes: : Determining the first identification information based on the first sound signal; and sending the first identification information and the second identification information of the second electronic device to a server for the server based on the The first identification information and the second identification information add the first user as a contact of the second user. 如請求項10所述之添加連絡人方法,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括: 將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。The method for adding a contact person according to claim 10, wherein the adding a first user of the first electronic device as a contact person of a second user of the second electronic device based on the first sound signal includes: Sending the first sound signal and the second identification information of the second electronic device to a server for the server to determine the first identification information based on the first sound signal, and based on The first identification information and the second identification information add the first user as a contact of the second user. 如請求項10至12中任一項所述之添加連絡人方法,所述方法进一步包括: 確定與所述第二電子設備的第二標識資訊對應的第二聲音信號; 播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。The method for adding a contact person according to any one of claims 10 to 12, further comprising: determining a second sound signal corresponding to the second identification information of the second electronic device; and playing the second sound A signal so that when the first electronic device receives the second sound signal, the second user is added as a contact of the first user based on the second identification information. 如請求項13所述之添加連絡人方法,所述方法進一步包括: 每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程; 在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。The method for adding a contact person as described in claim 13, the method further comprising: starting a process of playing the second sound signal every second random time interval; and stopping the detection when the second sound signal is played The process of the first sound signal. 如請求項10至12中任一項所述之添加連絡人方法,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括: 如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。The method for adding a contact person according to any one of claims 10 to 12, wherein the first user of the first electronic device is added as a second use of the second electronic device based on the first sound signal. A contact person of the user includes: if the first sound signal includes a sound signal corresponding to identification information of at least two electronic devices, adding a user of the at least two electronic devices as the first sound signal based on the first sound signal Contacts for the second user. 一種伺服器,包括: 接收模組,用於接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號; 第一確定模組,用於基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊; 第一添加模組,用於基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。A server includes: a receiving module for receiving a first contact request for association with a first sound signal sent by a second electronic device, the first sound signal corresponding to the first identification information of the first electronic device, and The second electronic device obtains the first sound signal played by the first electronic device in a listening manner; a first determining module is configured to determine the first identification information based on the first add contact request, And the second identification information of the second electronic device; a first adding module configured to add a first user of the first electronic device as A contact for a second user of the second electronic device. 一種第一電子設備,包括: 第二確定模組,用於確定第一電子設備的第一標識資訊所對應的第一聲音信號; 第一播放模組,用於播放所述第一聲音信號。A first electronic device includes: a second determining module for determining a first sound signal corresponding to the first identification information of the first electronic device; a first playback module for playing the first sound signal. 一種第二電子設備,包括: 第二檢測模組,用於檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊; 第三添加模組,用於基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。A second electronic device includes: a second detection module for detecting and obtaining a first sound signal, the first sound signal corresponding to the first identification information of the first electronic device; and a third adding module for based on all The first sound signal adds a first user of the first electronic device as a contact of a second user of the second electronic device. 一種伺服器,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號; 基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊; 基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。A server includes a memory and one or more programs. One or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include applications. An instruction for performing the following operations: receiving a first contact adding request associated with a first sound signal sent by a second electronic device, the first sound signal corresponding to the first identification information of the first electronic device, and the second electronic device Obtaining the first sound signal played by the first electronic device in an answering manner; determining the first identification information and the second identification information of the second electronic device based on the first addition contact request; Based on the first identification information and the second identification information, a first user of the first electronic device is added as a contact of a second user of the second electronic device. 一種第一電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 確定第一電子設備的第一標識資訊所對應的第一聲音信號; 播放所述第一聲音信號。A first electronic device includes a memory and one or more programs. One or more programs are stored in the memory and configured to be executed by one or more processors. It includes instructions for performing the following operations: determining a first sound signal corresponding to the first identification information of the first electronic device; and playing the first sound signal. 一種第二電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊; 基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。A second electronic device includes a memory and one or more programs. One or more programs are stored in the memory and configured to be executed by one or more processors. It includes instructions for performing the following operations: detecting and obtaining a first sound signal, the first sound signal corresponding to the first identification information of the first electronic device; and based on the first sound signal, A user is added as a contact for the second user of the second electronic device.
TW106144850A 2017-01-13 2017-12-20 Add contact method, electronic equipment and server TWI725270B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201710025426.6A CN106686184A (en) 2017-01-13 2017-01-13 Contact person adding method, electronic devices and server
CN201710025426.6 2017-01-13
??201710025426.6 2017-01-13

Publications (2)

Publication Number Publication Date
TW201826776A true TW201826776A (en) 2018-07-16
TWI725270B TWI725270B (en) 2021-04-21

Family

ID=58860651

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106144850A TWI725270B (en) 2017-01-13 2017-12-20 Add contact method, electronic equipment and server

Country Status (3)

Country Link
CN (1) CN106686184A (en)
TW (1) TWI725270B (en)
WO (1) WO2018130048A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686184A (en) * 2017-01-13 2017-05-17 北京搜狗科技发展有限公司 Contact person adding method, electronic devices and server
CN107770384B (en) * 2017-10-31 2021-04-23 广东小天才科技有限公司 Friend adding method, device and system and intelligent equipment
CN108712729B (en) * 2018-05-30 2021-03-02 福州米鱼信息科技有限公司 Active social type wearable device and implementation method thereof

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006097598A1 (en) * 2005-03-16 2006-09-21 France Telecom Method for automatically producing voice labels in an address book
US20080037720A1 (en) * 2006-07-27 2008-02-14 Speechphone, Llc Voice Activated Communication Using Automatically Updated Address Books
JP2010226575A (en) * 2009-03-25 2010-10-07 Nec Corp Mobile communication terminal, current location notification method, current location notification program, and program recording medium
CN102611799A (en) * 2012-03-21 2012-07-25 上海车音网络科技有限公司 Method, device and system for acquiring contact person numbers
US8934886B2 (en) * 2012-12-31 2015-01-13 Via Technologies, Inc. Mobile apparatus and method of voice communication
KR102052699B1 (en) * 2013-03-21 2019-12-05 삼성전자주식회사 Method for displaying contact information in electronic device
CN104104764A (en) * 2013-04-08 2014-10-15 上海斐讯数据通信技术有限公司 Audio receiving end, audio sending end, number saving system and number saving method
CN104216896B (en) * 2013-05-31 2018-11-16 腾讯科技(深圳)有限公司 A kind of method and device for searching contact information
CN104427109B (en) * 2013-08-30 2017-04-19 联想(北京)有限公司 Method for establishing contact item by voices and electronic equipment
CN103678605B (en) * 2013-12-16 2017-06-16 小米科技有限责任公司 A kind of method of information transfer, device and terminal device
CN104394255A (en) * 2014-10-20 2015-03-04 贵阳朗玛信息技术股份有限公司 A method and device for adding a friend
CN105049319B (en) * 2015-05-25 2018-09-18 腾讯科技(深圳)有限公司 Good friend's adding method and system, client and server
CN110855807A (en) * 2015-06-30 2020-02-28 华为终端有限公司 Method and equipment for adding contact person
CN105515946B (en) * 2015-12-02 2019-12-13 广东小天才科技有限公司 Method and system for adding contact person
CN105635452B (en) * 2015-12-28 2019-05-10 努比亚技术有限公司 Mobile terminal and its identification of contacts method
CN105812530A (en) * 2016-03-08 2016-07-27 北京小米移动软件有限公司 Method and device for adding contact means by using fingerprint information
CN105704319A (en) * 2016-03-18 2016-06-22 深圳市轱辘软件开发有限公司 Method of adding friend and intelligent devices
CN106209604A (en) * 2016-08-26 2016-12-07 北京小米移动软件有限公司 Add the method and device of good friend
CN106686184A (en) * 2017-01-13 2017-05-17 北京搜狗科技发展有限公司 Contact person adding method, electronic devices and server

Also Published As

Publication number Publication date
TWI725270B (en) 2021-04-21
WO2018130048A1 (en) 2018-07-19
CN106686184A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
US10178606B2 (en) Message transmission method, message reception method and apparatus and storage medium
CN106488335B (en) Live-broadcast control method and device
EP3070905B1 (en) Method and apparatus for binding device
CN105138319B (en) Event-prompting method and device
EP3276910A1 (en) Bluetooth-based identity recognition method and device
EP3076745B1 (en) Methods and apparatuses for controlling wireless access point
EP3435349B1 (en) Method and apparatus for processing network failure
EP2938054B1 (en) Method, device and system for handling busy line
EP3223147A2 (en) Method for accessing virtual desktop and mobile terminal
WO2016155231A1 (en) Network access method and device
US20150105056A1 (en) Methods and devices for establishing call
CN105677023B (en) Information demonstrating method and device
WO2016119493A1 (en) Method and apparatus for accessing network
JP2016537904A (en) WI-FI network connection method, apparatus, program, and recording medium
TWI725270B (en) Add contact method, electronic equipment and server
CN104243288B (en) Method for message transmission and device, electronic equipment
JP2018533088A (en) Message push method, apparatus and terminal device
CN105491518A (en) Method and device for social reminding based on wearable devices
WO2018232891A1 (en) Method and device for initializing smart home
CN105306567B (en) Method and device for terminal connection
WO2017118044A1 (en) Group message displaying method and device
CN104967966B (en) A kind of method and device of binding bluetooth equipment
CN105634928A (en) Social reminding method and device based on wearable device
JP2017532921A (en) The present application is filed on the basis of a Chinese patent application filed on July 27, 2015 with an application number of 201510447091.8, and the priority of the Chinese patent application The contents of the Chinese patent application are all incorporated herein by reference.
CN110162366A (en) A kind of information display method, device, electronic equipment and storage medium