TWI725270B - Add contact method, electronic equipment and server - Google Patents

Add contact method, electronic equipment and server Download PDF

Info

Publication number
TWI725270B
TWI725270B TW106144850A TW106144850A TWI725270B TW I725270 B TWI725270 B TW I725270B TW 106144850 A TW106144850 A TW 106144850A TW 106144850 A TW106144850 A TW 106144850A TW I725270 B TWI725270 B TW I725270B
Authority
TW
Taiwan
Prior art keywords
electronic device
sound signal
user
identification information
contact
Prior art date
Application number
TW106144850A
Other languages
Chinese (zh)
Other versions
TW201826776A (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

Images

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
    • 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

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 method, electronic equipment and a server for adding a contact person, so as to solve the technical problem of high cost of electronic equipment caused by the function of adding a contact person in the prior art. The method includes: 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 uses an answering method Obtain the first sound signal played by the first electronic device; determine the first identification information and the second identification information of the second electronic device based on the first contact addition request; based on the The first identification information and the second identification information add the first user of the first electronic device as a contact person of the second user of the second electronic device. The technical effect of improving the efficiency of adding contacts has been achieved.

Description

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

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

隨著科學技術的不斷發展,電子技術也得到了飛速的發展,電子產品的種類也越來越多,人們也享受到了科技發展帶來的各種便利。現在人們可以通過各種類型的電子設備,享受隨著科技發展帶來的舒適生活。例如,智慧型手錶、智慧型手機、平板電腦等電子設備已經成為人們生活中一個重要的組成部分,其可以包含各種功能。 With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products, and people have also enjoyed various conveniences brought about by the development of science and technology. Now people can enjoy the comfortable life brought about 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 contain various functions.

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

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

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

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

结合第一方面,在第二種可選的實施例中,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括:在獲得所述第一電子設備的確認信號之後,將所述第一使用者添加為所述第二使用者的連絡人。 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 2. The contact person of the second user of the electronic device includes: adding the first user as the contact person of the second user after obtaining the confirmation signal of the first electronic device.

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

第二方面,本發明實施例提供一種添加連絡人方法,包括:確定第一電子設備的第一標識資訊所對應的第一聲音信號;播放所述第一聲音信號。 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, the determining the first sound signal corresponding to the first identification information of the first electronic device includes: from the corresponding relationship 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 to generate the first sound signal.

結合第二方面,在第二種可選的實施例中,在所述播放所述第一聲音信號之後,所述方法進一步包括:如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。 With reference to the second aspect, in a second optional embodiment, after the first sound signal is played, the method further includes: if the confirmation signal generated by the second electronic device is detected, stop 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, the second user is added as a contact of the first user based on the second identification information corresponding to the second sound signal.

結合第二方面的第三種可選的實施例,在第四種可選的實施例中,所述方法進一步包括:每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程;在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。 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 other times than when the first sound signal is played, the process of detecting the second sound signal is started.

第三方面,本發明實施例提供一種添加連絡人方法,包括:檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。 In a third aspect, an embodiment of the present invention provides a method for adding a contact, including: detecting and obtaining a first sound signal, the first sound signal corresponding to the first identification information of a first electronic device; based on the first sound signal, The first user of the first electronic device is added as a contact person of the 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 the second user of the second electronic device based on the first sound signal The contact person includes: 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 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 the second user of the second electronic device based on the first sound signal The contact person includes: sending the first sound signal and the second identification information of the second electronic device to a server, so that the server can determine the first identification based on the first sound signal Information, and based on the first identification information and the second identification information, the first user is added as a contact of the second user.

結合第三方面或第三方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述方法進一步包括:確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 In combination with the third aspect or any one of the first to second optional embodiments of the third aspect, in a third optional embodiment, the method further includes: determining and 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, it is based on the second identification information The second user is added as a contact person of the first user.

結合第三方面的第三種可選的實施例,在第四種可選的實施例中,所述方法進一步包括: 每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。 With reference to the third optional embodiment of the third aspect, in the fourth optional embodiment, the method further includes: Every second random time interval, the process of playing the second sound signal is started; 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 second optional embodiments of the third aspect, in the fifth optional embodiment, the said first sound signal is based on, Adding the first user of the first electronic device as a contact person of the 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, The users of the at least two electronic devices are added as contacts of the second user based on the first sound signal.

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

結合第四方面,在第一種可選的實施例中,所述第一確定模組,用於:從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。 With reference to the fourth aspect, in a first optional embodiment, the first determination module is configured to: extract the first sound signal from the first request to add a contact; based on the sound signal and The corresponding relationship of the identification information, the first identification information corresponding to the first sound signal is determined; or, the first identification information is extracted from the first contact adding request, wherein the first identification information is After receiving the first sound signal from the first electronic device, the second electronic device analyzes 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 the confirmation signal of the second electronic device, add the second user as the The contact person 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 addition module includes: The receiving unit is configured to receive a second contact adding 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 method 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 as contacts to each other after receiving the first request for adding a contact and the second request for adding a contact.

第五方面,本發明實施例提供一種第一電子設備,包括:第二確定模組,用於確定第一電子設備的第一標識資訊所對應的第一聲音信號;第一播放模組,用於播放所述第一聲音信號。 In 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; and a first playing module using To play 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 corresponding relationship between identification information and sound signals. Sound signal; or, encoding the first identification information according to a preset rule to generate 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 the 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 for detecting the second sound signal played by the second electronic device; The group is used 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.

結合第五方面的第三種可選的實施例,在第四種可選的實施例中,所述第一播放模組,用於:每隔第一隨機時間間隔,啟動播放所述第一聲音信號的過程;所述第一檢測模組,用於在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號的過程。 With reference to the third optional embodiment of the fifth aspect, in a fourth optional embodiment, the first play module is configured to: start playing the first play module every first random time interval The process of the sound signal; the first detection module is used to start the process of detecting the second sound signal at a time other than playing the first sound signal.

第六方面,本發明實施例提供一種第二電子設備,包括:第二檢測模組,用於檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;第三添加模組,用於基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。 In 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 the first identification information of the first electronic device; The three adding module is used for adding the first user of the first electronic device as a contact person of the 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 addition 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 add 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 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 server Device for the server to determine the first identification information based on the first sound signal, and add the first user as the first identification information based on the first identification information and the second identification information The contact person of the second user.

結合第六方面或第六方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述第二電子設備進一步包括:第三確定模組,用於確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;第二播放模組,用於播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 With reference to the sixth aspect or any one of the first to second optional embodiments of the sixth aspect, in a third optional embodiment, the second electronic device further includes: The third determining module is used to determine the second sound signal corresponding to the second identification information of the second electronic device; the second playing module is used to play the second sound signal so that the first electronic device When the device receives the second sound signal, it 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 the fourth optional embodiment, the second playing module is configured to: start playing the second sound signal every second random time interval Process; The second detection module is used to stop the process of detecting the first sound signal when the second sound signal is played.

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

第七方面,本發明實施例提供一種伺服器,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。 In a seventh aspect, an embodiment of the present invention provides a server including memory and one or more programs, wherein 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: 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 obtains the first contact by answering The first sound signal played by an electronic device; the first identification information and the second identification information of the second electronic device are determined based on the first request to add a contact; based on the first identification information And the second identification information, adding the first user of the first electronic device as a contact person of the second user of the second electronic device.

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

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

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

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

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

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

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

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

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

結合第九方面或第九方面的第一至二種可選的實施例中的任意一種可選的實施例,在第三種可選的實施例中,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 In combination with 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 The 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 Signal, so that when the first electronic device receives the second sound signal, the second user is added as the contact person 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 Contains instructions for performing the following operations: every second random time interval, start the process of playing the second sound signal; when playing the second sound signal, stop the process of detecting and obtaining the first sound signal.

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

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

50:接收模組 50: receiving module

51:第一確定模組 51: The first determination module

52:第一添加模組 52: The first add-on module

60:第二確定模組 60: The second confirmation module

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

70:第二檢測模組 70: The second detection module

71:第三添加模組 71: The third additional module

800:電子設備 800: electronic equipment

802:處理組件 802: Processing component

804:記憶體 804: memory

806:電源組件 806: Power Components

808:多媒體組件 808: Multimedia components

810:音頻組件 810: Audio component

812:I/O介面 812: I/O interface

814:傳感器組件 814: Sensor component

816:通信組件 816: Communication Components

820:處理器 820: processor

1900:伺服器 1900: Server

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

1926:電源 1926: Power

1930:存儲介質 1930: storage medium

1932:記憶體 1932: memory

1941:作業系統 1941: operating system

1942:應用程式 1942: Application

1944:資料 1944: data

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

1956:鍵盤 1956: keyboard

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

圖1為本發明實施例的第一方面的添加連絡人方法的流程圖。 Fig. 1 is a flowchart of a method for adding a contact in the first aspect of an embodiment of the present invention.

圖2為本發明實施例的智慧型手錶的結構圖。 Fig. 2 is a structural diagram of a smart watch according to an embodiment of the present invention.

圖3為本發明實施例的第二方面的添加連絡人方法的流程圖。 Fig. 3 is a flowchart of a method for adding a contact in the second aspect of an embodiment of the present invention.

圖4為本發明實施例的第三方面的添加連絡人方法的流程圖。 Fig. 4 is a flowchart of a method for adding a contact in the third aspect of an embodiment of the present invention.

圖5為本發明實施例的第四方面的伺服器的結構圖。 FIG. 5 is a structural diagram of a server in the fourth aspect of an embodiment of the present invention.

圖6為本發明實施例的第五方面的第一電子設備的結構圖。 Fig. 6 is a structural diagram of a first electronic device according to a fifth aspect of an embodiment of the present invention.

圖7為本發明實施例的第六方面的第二電子設備的結構圖。 FIG. 7 is a structural diagram of a second electronic device according to a sixth aspect of an embodiment of the present invention.

圖8為本發明實施例中實施添加連絡人方法的電子設備的結構圖。 FIG. 8 is a structural diagram of an electronic device implementing a method for adding a contact person in an embodiment of the present invention.

圖9為本發明實施例中實施添加連絡人方法的伺服器的結構圖。 Fig. 9 is a structural diagram of a server implementing the method of adding a contact in an embodiment of the present invention.

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

本發明實施例中的技術方案為解決上述的技術問題,總體思路如下:第一電子設備可以通過播放第一聲音信號的方式將其第一標識資訊提供給第二電子設備,從而第二電子設備直接基於接聽到的第一聲音信號就可以將第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,而不需要額外的功能模組(例如:藍牙模組、WIFI模組等等),故而達到了降低添加連絡人的成本的技術效果。並且,通常情況下採集聲音信號的方式都較為方便,不需要使用者手動對麥克風進行調整,也不需要使用者手動進行一些其他輸入,故而能夠提高添加連絡人的效率。 The technical solution in the embodiment of the present invention is to solve the above technical problem. The general idea is as follows: 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 The first user of the first electronic device can be added as the contact person of the second user of the second electronic device directly based on the received first sound signal, without the need for additional functional modules (for example: Bluetooth module) , WIFI module, etc.), thus achieving the technical effect of reducing the cost of adding contacts. In addition, the way of collecting sound signals is generally more convenient, and it does not require the user to manually adjust the microphone, nor does it require the user 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 the drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific examples in the embodiments should be understood. The features are detailed descriptions of the technical solutions of the present invention, rather than limitations on the technical solutions of the present invention. The embodiments of the present invention and the technical features in the embodiments can be combined with each other if there is no conflict.

第一方面,本發明實施例提供一種添加連絡人方法,請參考圖1,包括:步驟S101:確定第一電子設備的第一標識資訊所對應的第一聲音信號;步驟S102:播放所述第一聲音信號。 In the first aspect, an embodiment of the present invention provides a method for adding a contact. Please refer to FIG. 1. The method includes: Step S101: Determine the first sound signal corresponding to the first identification information of the first electronic device; Step S102: Play the first A sound signal.

在具體實施過程中,該第一聲音信號用於,第二電子設備接聽到所述第一聲音信號之後,基於所述第一標識資訊將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。 In the specific implementation process, the first sound signal is used to add the first user of the first electronic device as the first user based on the first identification information after the second electronic device receives the first sound signal. The contact person of the 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, and so on. As shown in Figure 2, it is a structural diagram of a smart watch, which includes: a central processing unit (CPU); a speaker, connected to the CPU, used to play sound signals; a microphone, connected to the CPU, used to listen to other electronic equipment The resulting sound signal. Of course, for other electronic devices, the structure is similar to it, 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 used to uniquely characterize its identity can be set for each electronic device. 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: International Mobile Equipment Identification Number), etc.; the identification information can also be bound to the user’s instant messaging software account, such as: mobile phone number, chat Software account and so on. The identification information may be set when the electronic device is shipped from the factory, or after the user uses the electronic device, the identification information may be generated according to a preset rule, 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 a variety of ways. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two situations.

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

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

第二種,預先設定好各個標識資訊與聲音信號的對應關係,從而基於第一標識資訊在該對應關係中匹配獲得所述第一聲音信號。 In the second type, the corresponding relationship between each identification information and the sound signal is preset, so that the first sound signal is obtained by matching in the corresponding 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 signal of other identification information, and the first identification information needs to be obtained in the first electronic device. The device (for example, the server, the second electronic device) may store the corresponding relationship between the identification information and the sound signal, so that the first electronic device can use the first identification information in the corresponding relationship before it needs to play the first sound signal. The first sound signal is obtained by matching in the middle; and subsequent other devices, after obtaining the first sound signal, use the first sound signal to match in the corresponding relationship, so as 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, so that after the second electronic device receives the first sound signal, based on the first sound signal The identification information adds the first user of the first electronic device as a contact person of the second user of the second electronic device.

步驟S102中,將第一使用者添加為第二使用者的連絡人可以存在多種情況,例如:

Figure 106144850-A0305-02-0013-1
電子設備的標識資訊為與電子設備綁定的標識資訊,在這種情況下,則是直接將第一電子設備添加為第二電子設備的連絡人;
Figure 106144850-A0305-02-0013-2
電子設備的標識資訊為與即時聊天軟體的帳號綁定的標識資訊,在這種情況下,則是將第一使用者的聊天軟體帳號添加為第二使用者的聊天軟體的帳號的連絡人。 In step S102, there may be multiple situations in which the first user is added as a contact of the second user, for example:
Figure 106144850-A0305-02-0013-1
The identification information of the electronic device is the identification information bound to the electronic device. In this case, the first electronic device is directly added as the contact person of the second electronic device;
Figure 106144850-A0305-02-0013-2
The identification information of the electronic device is the identification information bound to the account of the instant chat software. In this case, the first user's chat software account is added as the contact person of the second user's chat software account.

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

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

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

舉例來說,如果第一電子設備按照預設規則對第一標識資訊進行編碼從而生成第一聲音信號的話,則第二電子設備通過對第一聲音信號進行解碼,從而可以獲得第一標識資訊;如果第一電子設備基於標識資訊與聲音信號的對應關係確定出第一聲音信號的話,則第二電子設備直接通過第一聲音信號在該對應關係中進行查找,就可以獲得第一標識資訊。 For example, if the first electronic device encodes the first identification information according to the preset rule to generate the first sound signal, the second electronic device decodes the first sound signal to obtain the first identification information; 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 directly searches the correspondence through the first sound signal to obtain the first identification information.

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

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

第二種,第二電子設備將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 In the second type, the second electronic device sends the first sound signal and the second identification information of the second electronic device to a server, so that the server can determine the first sound signal based on the first sound signal. 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 contact person carrying the first sound signal and the second identification information to be added. It is sent to the server, and the server analyzes the first sound signal to obtain the first identification information from it, and then adds the first user as a contact of the second user. In this solution, since there is no need to perform related processing in the electronic device, the compatibility of the solution can be improved.

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

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

Figure 106144850-A0305-02-0015-3
第二電子設備在接收到第一電子設備的第一聲音信號之後,向第一電子設備產生回饋資訊(例如:聲音信號,當然也可以為其他資訊,例如:文字、畫面等等)告知第一電子設備其接聽到第一聲音信號,並且請求添加對方為連絡人,如果第一電子設備同意,則可以產生一個同意對方添加的確認信號(其同樣可以為聲音信號,當然,也可以為其他信號,例如:文字、畫面等等),第二電子設備在獲得該確認信號之後,將其發送至伺服器,伺服器在接收到第二電子設備發送的確認信號之後,將第一使用者添加為第二使用者的連絡人。
Figure 106144850-A0305-02-0015-3
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, it can also be other information, such as text, images, etc.) to inform the first electronic device. The electronic device hears 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 agreeing to the other party's addition (it can also be a sound signal, of course, it can also be other signals) , Such as text, screen, etc.), the second electronic device sends the confirmation signal to the server after receiving the confirmation signal, and the server adds the first user as the confirmation signal after receiving the confirmation signal sent by the second electronic device The contact person of the second user.

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

Figure 106144850-A0305-02-0015-5
第一電子設備與第二電子設備如果希望彼此添加連絡人,則第一電子設備可以向伺服器發送第一添加連絡人請求,第二電子設備也可以向伺服器發送第二添加連絡人請求,伺服器在接收到第一電子設備與第二電子設備的第一添加連絡人請求和第二添加連絡人請求之後,確定雙方都同意添加連絡人,在這種情況下,則可以將第一使用者與第一使用者彼此添加為連絡人。
Figure 106144850-A0305-02-0015-5
If the first electronic device and the second electronic device wish to add contacts to each other, the first electronic device can send a first contact adding request to the server, and the second electronic device can also send a second contact adding request to the server. After the server receives the first request to add a contact and the second request to add a contact of the first electronic device and the second electronic device, it determines that both parties agree to add a contact. In this case, you can use the first The person 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 connected 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 second contact adding request carrying the first identification information and the second sound signal to the server, and the server parses out 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 second contact adding request carrying the first identification information and the second identification information is sent to the server, and the server is in After receiving the first request to add a contact and the second request to add a contact, make sure that each other agrees to add the other party as a contact, and both agree to be added as a contact by the other party. In this case, the first user will be added Add as a contact with the second user.

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

舉例來說,第一電子設備可以設定第一隨機時間間隔的最短時長(例如:0.1s、0.2s等等)和最長時長(例如:0.4s、0.5s等等),在第一電子設備與第二電子設備之間需要添加連絡人時,可以通過第一電子設備隨機生成第一隨機時間間隔,在沒有達到該第一隨機時間間隔時,檢測第二電子設備所產生的第二聲音信號,在達到該第一隨機時間間隔之後,停止檢測第二聲音信號,開始播放第一聲音信號,同時繼續生成新的第一隨機時間間隔等等;在第一聲音信號播放結束之後,繼續檢測是否存在第二聲音信號,並將達到新的第一隨機時間間隔之後,繼續停止檢測第二聲音信號,並開始播放第一聲音信號,依次類推;直到第一電子設備檢測到第二聲音信號,或者,第一電子設備確認第二電子設備檢測到第一聲音信號。 For example, the first electronic device can set the shortest duration (for example: 0.1s, 0.2s, etc.) and the longest duration (for example: 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 can be randomly generated by the first electronic device, and when the first random time interval is not reached, the second sound generated by the second electronic device is detected After reaching the first random time interval, stop detecting the second sound signal, start playing the first sound signal, and continue to generate a new first random time interval, etc.; after the first sound signal is played, continue to detect Whether there is a second sound signal, and after reaching a new first random time interval, continue to 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, Or, 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: every second random time interval, start the process of playing the second sound signal; when playing the second sound signal, stop the detection to obtain the first The process of sound signal. The method for determining the second random time interval is similar to the method for determining the first random time interval, and will not be repeated here.

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

步驟S102中,第一電子設備可以僅僅播放一次第一聲音信號,而為了保證第二電子設備接聽到第一聲音信號,第一電子設備也可以多次(例如:3次、4次等等)播放第一聲音信號,在這種情況下,在所述播放所述第一聲音信號之後,所述方法進一步包括:如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。 In step S102, the first electronic device may only play the first sound signal once, and in order to ensure that the second electronic device hears the first sound signal, the first electronic device may also play multiple times (for example: 3 times, 4 times, etc.) Play the first sound signal. In this case, after the first sound signal is played, the method further includes: if the confirmation signal generated by the second electronic device is detected, stop 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, and the first electronic device may collect the confirmation information through a microphone, thereby confirming that the second electronic device has received the first sound signal , You can stop the broadcast of the first sound signal With 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), what is heard, in this case, these multiple electronic devices can all add the first user as the corresponding electronic device The contact of the user of the device, where the multiple electronic devices can directly add the first user as the 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 the contact person of the user corresponding to the 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 the corresponding request to add a contact to the server. After receiving the request to add a contact, the server sends the request to the first An electronic device sends the following inquiry information: User A (User B, User C, or User D) wants to add you as a contact. Please confirm your consent? , 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 confirm that it is targeted for user A , User B, User C’s inquiry information, and user D’s inquiry information is rejected. Or, 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 People, you can only send the request for adding a contact for user A, user B, and user C to the server, instead of sending the request for adding a contact 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 time, and in order to reduce the processing burden 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 interface for adding contacts or making friends, and then control the first electronic device to play the first sound signal; similarly, you can also answer after the first electronic device enters the interface for adding contacts or making friends The second sound signal.

通常情況下,如果第一電子設備與第二電子設備之間彼此希望添加連絡人的話,則第一電子設備與第二電子設備分別進入交友介面,進行聲音信號的播放和檢測過程,基於聲音信號的播放,將自身的標識資訊提供給對方,基於聲音信號的檢測,獲得對方的標識資訊,由此添加對方為連絡人。 Normally, if the first electronic device and the second electronic device want to add contacts to each other, the first electronic device and the second electronic device enter the friendship interface respectively to perform the sound signal playback and detection process, 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,包括:步驟S301:檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊; 步驟S302:基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。 In the 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: Step S301: detecting and obtaining a first sound signal, the first sound The signal corresponds to the first identification information of the first electronic device; Step S302: Add the first user of the first electronic device as a contact person 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 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 Happening.

第一種,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括:基於所述第一聲音信號確定出所述第一標識資訊;將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 In the first method, the adding the first user of the first electronic device as the contact person of the second user of the second electronic device based on the first sound signal includes: based on the first sound signal Determine the first identification information; send the first identification information and the second identification information of the second electronic device to a server, so that the server can be 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.

第二種,所述基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,包括:將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 In the second type, the adding the first user of the first electronic device as the contact person 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 the server, so that the server can determine the first identification information based on the first sound signal, and based on the first identification information and the 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; In the second voice signal, 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 will not be repeated here.

可選的,所述方法進一步包括:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。 Optionally, the method further includes: 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.

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

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

第三方面,基於同一發明構思,本發明實施例提供一種添加連絡人方法,請參考圖4,包括:步驟S401:接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;步驟S402:基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;步驟S403:基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。 In the third aspect, based on the same inventive concept, an embodiment of the present invention provides a method for adding a contact. Please refer to FIG. 4, which includes: Step S401: receiving a first request for adding a contact sent by a second electronic device associated with a first sound signal, The first sound signal corresponds 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 by answering; step S402: based on the first Adding a contact request to determine the first identification information and the second identification information of the second electronic device; step S403: based on the first identification information and the second identification information, the first electronic device The first user of the device is added as a contact person of the second user of the second electronic device.

在具體實施過程中,第一添加連絡人請求中可以攜帶對應第二聲音信號的第二標識資訊(或者第二聲音信號),其中,可以直接將第二標識資訊(或者第二聲音信號)攜帶于第一添加連絡人請求中,為了提高資料傳輸的安全性,也可以對第二標識資訊(或者第二聲音信號)加密之後將其攜帶于第一添加連絡人請求,從而伺服器在獲得第一添加連絡人請求之後,需要對其中所包含的第二標識資訊(或者第二聲音信號)進行解密處理。 In the specific implementation process, the first request to add a contact can carry the second identification information (or the second sound signal) corresponding to the second sound signal, wherein the second identification information (or the second sound signal) can be carried directly In the first request to add a contact, in order to improve the security of data transmission, the second identification information (or the second sound signal) can also be encrypted and carried in the first request to add a contact, so that the server can obtain the first request. After a request to add a contact, 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 a variety of ways. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two situations.

第一種,所述基於所述第一添加連絡人請求確定出所述第一標識資訊,包括:從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。 First, the determining the first identification information based on the first contact adding request includes: extracting the first sound signal from the first contact adding request; based on the sound signal and the identification Information correspondence relationship, the first identification information corresponding to the first sound signal is determined; or, the first identification information is extracted from the first contact adding request, wherein the second After receiving the first sound signal from the first electronic device, the electronic device analyzes the first identification information based on the first sound signal.

第二種,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括: 在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。 In the second type, the first user of the first electronic device is added as the contact person of the second user of the second electronic device based on the first identification information and the second identification information, include: After obtaining the confirmation signal of the second electronic device, the second user is added as a contact of the first user.

可選的,所述基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括:接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。同理,第二添加連絡人請求中可以攜帶第一標識資訊(或者第一聲音信號),為了提高資料傳輸的安全性,可以將第一標識資訊(或者第一聲音信號)加密之後攜帶於第二添加連絡人請求中。 Optionally, the adding the first user of the first electronic device as the contact person of the second user of the second electronic device based on the first identification information and the second identification information, The method includes: receiving a second contact adding 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 obtains the The second sound signal played by the second electronic device; after receiving the first request to add a contact and the second request to add a contact, the first user and the second user are connected to each other Add as a contact. In the same way, the second request to add a contact can 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) can be encrypted and carried in the first 2. Request for adding a contact.

第四方面,基於同一發明構思,本發明實施例提供一種伺服器,請參考圖5,包括:接收模組50,用於接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;第一確定模組51,用於基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;第一添加模組52,用於基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。 In the fourth aspect, based on the same inventive concept, an embodiment of the present invention provides a server. Please refer to FIG. 5, which includes: a receiving module 50 for receiving a first added contact associated with a first sound signal sent by a second electronic device Request that the first sound signal corresponds 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 by answering; the first determining module 51 , Used to determine the first identification information and the second identification information of the second electronic device based on the first contact adding request; the first adding module 52, used to determine the first identification information based on the first identification information And the second identification information, adding the first user of the first electronic device as a contact person of the second user of the second electronic device.

可選的,所述第一確定模組51,用於:從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。 Optionally, the first determining module 51 is configured to: extract the first sound signal from the first contact addition request; determine the first sound signal based on the corresponding relationship between the sound signal and the identification information The first identification information corresponding to a sound signal; or, extracting the first identification information from the first request to add a contact, wherein the second electronic device is downloading from the first electronic device After receiving the first sound signal, the first identification information is parsed based on the first sound signal.

可選的,所述第一添加模組52,用於:在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the first adding module 52 is configured to add the second user as a contact of the first user after obtaining the confirmation signal of the second electronic device.

可選的,所述第一添加模組52,包括: 接收單元,用於接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;添加單元,用於在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。 Optionally, the first adding module 52 includes: The receiving unit is configured to receive a second contact adding 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 method Obtaining the second sound signal played by the second electronic device; an adding unit configured to send the first user to the first user after receiving the first request to add a contact and the second request to add a contact And the second user are added as contacts to each other.

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

第五方面,基於同一發明構思,本發明實施例提供一種第一電子設備,請參考圖6,包括:第二確定模組60,用於確定第一電子設備的第一標識資訊所對應的第一聲音信號;第一播放模組61,用於播放所述第一聲音信號。 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: a second determining module 60 for determining the first electronic device corresponding to the first identification information of the first electronic device. A sound signal; the first playing module 61 is used to play the first sound signal.

可選的,所述第二確定模組60,用於:從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者,對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。 Optionally, the second determining module 60 is configured to: determine the first sound signal based on the first identification information from the corresponding relationship between the identification information and the sound signal; or, to determine the first sound signal based on the first identification information; The information is encoded according to a preset rule to generate the first sound signal.

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

可選的,所述第一電子設備進一步包括:第一檢測模組,用於檢測第二電子設備所播放的第二聲音信號;第二添加模組,用於在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the first electronic device further includes: a first detection module for detecting a second sound signal played by the second electronic device; a second addition module for hearing the second sound After the signal is received, the second user is added as a contact of the first user based on the second identification information corresponding to the second sound signal.

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

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

第六方面,基於同一發明構思,本發明實施例提供一種第二電子設備,請參考圖7,包括:第二檢測模組70,用於檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;第三添加模組71,用於基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。 According to the 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: a second detection module 70 for detecting and obtaining a first sound signal, and the first sound signal corresponds to The first identification information of the first electronic device; the third adding module 71 is used to add the first user of the first electronic device as the second user of the second electronic device based on the first sound signal Of contacts.

可選的,所述第三添加模組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 combine the first identification information, and The second identification information of the second electronic device is sent to a server, so that the server adds the first user as the second user based on the first identification information and the second identification information Of contacts.

可選的,所述第三添加模組71,用於:將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 Optionally, the third adding module 71 is configured to send the first sound signal and the second identification information of the second electronic device to a server, so that the server can be based on the The first sound signal determines the first identification information, and adds the first user as a contact person of the second user based on the first identification information and the second identification information.

可選的,所述第二電子設備進一步包括:第三確定模組,用於確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;第二播放模組,用於播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the second electronic device further includes: a third determining module for determining a second sound signal corresponding to the second identification information of the second electronic device; and a second playing module for playing The second sound signal, so that when the first electronic device receives the second sound signal, the second user is added as the contact of the first user based on the second identification information people.

可選的,第二播放模組,用於:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程; 所述第二檢測模組70,用於在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。 Optionally, the second playing module is configured to: start the process of playing the second sound signal every second random time interval; The second detection module 70 is used to stop the process of detecting and 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 the identification information of at least two electronic devices, based on the first sound signal, combine the at least two The user of the electronic device is added as a contact of the second user.

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

第七方面,基於同一發明構思,本發明實施例提供一種伺服器,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人。 In 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 consist of one or more programs. The execution of the one or more programs by one or more processors includes instructions for performing the following operations: receiving a first request to add a contact sent by a second electronic device associated with a first sound signal, where the first sound signal corresponds to the first The first identification information of the electronic device, the second electronic device obtains the first sound signal played by the first electronic device by answering; the first identification information is determined based on the first request to add a contact , And the second identification information of the second electronic device; based on the first identification information and the second identification information, adding the first user of the first electronic device as the second electronic device The contact person of the second user.

可選的,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。 Optionally, the server is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: extracting the one or more contacts from the first request to add a contact A first sound signal; based on the corresponding relationship between the sound signal and the identification information, the first identification information corresponding to the first sound signal is determined; or, the first identification information is extracted from the first contact adding request An identification information, wherein the second electronic device parses the first identification information based on the first sound signal after receiving the first sound signal from the first electronic device.

可選的,所述伺服器還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令: 在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the server is further configured to execute the one or more programs by one or more processors including 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 execute the one or more programs by one or more processors including instructions for performing the following operations: receiving an associated second sound signal sent by the first electronic device The second request for adding a contact, the second sound signal corresponds to the second identification information, and the first electronic device obtains the second sound signal played by the second electronic device by answering; after receiving After the first request for adding a contact and the second request for adding a contact, the first user and the second user are added to each other as contacts.

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

第八方面,基於同一發明構思,本發明實施例提供一種第一電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:確定第一電子設備的第一標識資訊所對應的第一聲音信號;播放所述第一聲音信號。 In 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 used by Executing the one or more programs by one or more processors includes instructions for performing the following operations: determining the first sound signal corresponding to the first identification information of the first electronic device; and playing the first sound signal.

可選的,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者,對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。 Optionally, the first electronic device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: from the 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 to generate the first sound signal.

可選的,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。 Optionally, the first electronic device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: if a confirmation generated by the second electronic device is detected Signal, stop playing the first sound signal.

可選的,所述第一電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:檢測第二電子設備所播放的第二聲音信號; 在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the first electronic device is further configured to execute the one or more programs by one or more processors including 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 execute the one or more programs by one or more processors including instructions for performing the following operations: every first random time interval, start playing the The process of the first sound signal; the process of detecting the second sound signal is started at a time other than the playing of the first sound signal.

由於本發明第八方面所介紹的第一電子設備,與本發明實施例第一方面所介紹的添加連絡人方法所採用的第一電子設備為相同的第一電子設備,故而基於本發明實施例第一方面所介紹的添加連絡人方法,本發明所屬技術領域中具有通常知識者能夠瞭解本發明實施例第八方面所介紹的第一電子設備的具體結構及變形,故而在此不再贅述,凡是實施本發明實施例第一方面所介紹的添加連絡人方法所採用的第一電子設備都屬於本發明所欲保護的範圍。 Since the first electronic device introduced in the eighth aspect of the present invention is the same first electronic device used in the method for adding contacts introduced in the first aspect of the embodiment of the present invention, it is based on the embodiment of the present invention. With regard to the method of adding a contact person introduced in the first aspect, those with ordinary knowledge in the technical field to which the present invention belongs can understand the specific structure and modifications of the first electronic device introduced in the eighth aspect of the embodiments of the present invention, so it will not be repeated here. All the first electronic devices used to implement the method for adding contacts introduced in the first aspect of the embodiments of the present invention fall within 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 be used by The execution of the one or more programs by one or more processors 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; based on the The first sound signal adds the first user of the first electronic device as a contact person of the second user of the second electronic device.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:基於所述第一聲音信號確定出所述第一標識資訊;將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 Optionally, the second electronic device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: determining the first sound signal based on the first sound signal An identification information; sending the first identification information and the second identification information of the second electronic device to a server, so that the server can send all information based on the first identification information and the second identification information The first user is added as a contact of the second user.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 Optionally, the second electronic device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: combining the first sound signal and the second The second identification information of the second electronic device is sent to the server, so that the server can determine the first identification information based on the first sound signal, and based on the first identification information and the second identification information The first user is added as a contact of the second user.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the second electronic device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: determining the second identity of the second electronic device Information corresponding to a second sound signal; playing the second sound signal, so that when the first electronic device receives the second sound signal, it adds the second user based on the second identification information Is the contact person of the first user.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。 Optionally, the second electronic device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: every second random time interval, start playing the The process of the second sound signal; when the second sound signal is played, the process of detecting the first sound signal is stopped.

可選的,所述第二電子設備還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。 Optionally, the second electronic device is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: if the first sound signal includes at least two The sound signal of the identification information of the electronic device adds the users of the at least two electronic devices as contacts of the second user based on the first sound signal.

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

參照圖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 the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communication, 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 foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the processing component 802 and other groups Interaction between pieces. 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 the operation of the electronic device 800. Examples of these data include instructions for any application or method operated on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be realized by any type of volatile or non-volatile storage device or their combination, 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, floppy disk or CD-ROM.

電源組件806為電子設備800的各種組件提供電力。電源組件806可以包括電源管理系統,一個或多個電源,及其他與為電子設備800生成、管理和分配電力相關聯的組件。 The power supply component 806 provides power for various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, 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 the 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 the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor can not only sense the boundary of the 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), and 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 the peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and 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 the electronic device 800 with various aspects of state evaluation. For example, the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components. For example, the component is the display and the keypad of the electronic device 800. The sensor component 814 can also detect the electronic device 800 or the electronic device 800. Change the position of the component Change, the presence or absence of contact between the user and 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 when there is no 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 also 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 used by one or more application-specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field Programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented to implement the above methods.

在示例性實施例中,還提供了一種包括指令的非臨時性電腦可讀存儲介質,例如包括指令的記憶體804,上述指令可由電子設備800的處理器820執行以完成上述方法。例如,所述非臨時性電腦可讀存儲介質可以是ROM、隨機存取記憶體(RAM)、CD-ROM、磁帶、軟碟和光數據存儲設備等。 In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can 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 ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

一種非臨時性電腦可讀存儲介質,當所述存儲介質中的指令由第一電子設備的處理器執行時,使得第一電子設備能夠執行一種添加連絡人方法,所述方法包括:確定第一電子設備的第一標識資訊所對應的第一聲音信號;播放所述第一聲音信號。 A non-transitory computer-readable storage medium. When instructions in the storage medium are executed by a processor of a first electronic device, the first electronic device can execute a method for adding a contact, the method comprising: determining a first A first sound signal corresponding to the first identification information of the electronic device; playing the first sound signal.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者,對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號。 Optionally, the readable storage medium is further configured to be executed by one or more processors and the one or more programs includes instructions for performing the following operations: from the corresponding relationship 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 to generate the first sound signal.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:如果檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號。 Optionally, the readable storage medium is further configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: if a confirmation generated by the second electronic device is detected Signal, stop playing the first sound signal.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:檢測第二電子設備所播放的第二聲音信號;在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the readable storage medium is further configured to be executed by one or more processors, and 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, 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 execute the one or more programs by one or more processors including instructions for performing the following operations: every first random time interval, start playing the The process of the first sound signal; the process of detecting the second sound signal is started at a time other than the playing of the first sound signal.

一種非臨時性電腦可讀存儲介質,當所述存儲介質中的指令由第二電子設備的處理器執行時,使得第二電子設備能夠執行一種添加連絡人方法,所述方法包括:檢測獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人。 A non-transitory computer-readable storage medium. When instructions in the storage medium are executed by a processor of a second electronic device, the second electronic device can execute a method for adding a contact. The method includes: detecting and obtaining a first A sound signal, the first sound signal corresponding to the first identification information of the first electronic device; based on the first sound signal, the first user of the first electronic device is added as the second user of the second electronic device The user's contact person.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:基於所述第一聲音信號確定出所述第一標識資訊;將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 Optionally, the readable storage medium is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: determining the first sound signal based on the first sound signal An identification information; sending the first identification information and the second identification information of the second electronic device to a server, so that the server can send all information based on the first identification information and the second identification information The first user is added as a contact of the second user.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 Optionally, the readable storage medium is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: combining the first sound signal and the first sound signal The second identification information of the second electronic device is sent to the server, so that the server can determine the first identification information based on the first sound signal, and based on the first identification information and the second identification information The first user is added as a contact of the second user.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:確定與所述第二電子設備的第二標識資訊對應的第二聲音信號;播放所述第二聲音信號,以使所述第一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the readable storage medium is further configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: determining the second identity of the second electronic device Information corresponding to a second sound signal; playing the second sound signal, so that when the first electronic device receives the second sound signal, it adds the second user based on the second identification information Is the contact person of the first user.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:每隔第二隨機時間間隔,啟動播放所述第二聲音信號的過程;在播放所述第二聲音信號時,停止檢測獲得第一聲音信號的過程。 Optionally, the readable storage medium is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: every second random time interval, start playing the The process of the second sound signal; when the second sound signal is played, the process of detecting the first sound signal is stopped.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。 Optionally, the readable storage medium is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: if the first sound signal includes at least two The sound signal of the identification information of the electronic device adds the users of the at least two electronic devices as contacts 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 diagram of the structure of a server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and a memory 1932, one Or more than one storage medium 1930 (for example, one or one storage device with a large amount of storage) 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 may be short-term 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 supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or, one or more Operating 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, the server can execute a method for adding a contact, the method comprising: 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 obtains the first contact by answering The first sound signal played by an electronic device; the first identification information and the second identification information of the second electronic device are determined based on the first request to add a contact; based on the first identification information And the second identification information, adding the first user of the first electronic device as a contact person of the second user of the second electronic device.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:從所述第一添加連絡人請求中提取出所述第一聲音信號;基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,基於所述第一聲音信號解析出所述第一標識資訊。 Optionally, the readable storage medium is further configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: extracting from the first contact adding request The first sound signal; the first identification information corresponding to the first sound signal is determined based on the corresponding relationship between the sound signal and the identification information; or, the first identification information corresponding to the first sound signal is extracted from the first contact adding request In the first identification information, after receiving the first sound signal from the first electronic device, the second electronic device parses the first identification information based on the first sound signal.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:在獲得所述第二電子設備的確認信號之後,將所述第二使用者添加為所述第一使用者的連絡人。 Optionally, the readable storage medium is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: after obtaining the confirmation signal of the second electronic device To add the second user as a contact of the first user.

可選的,所述可讀存儲介質還經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人。 Optionally, the readable storage medium is further configured to execute the one or more programs by one or more processors including instructions for performing the following operations: receiving an associated second electronic device sent by the first electronic device A second request for adding a contact person to a sound signal, the second sound signal corresponds to the second identification information, and the first electronic device obtains the second sound signal played by the second electronic device by answering; After receiving the first request to add a contact and the second request to add a contact, the first user and the second user are added as contacts to each other.

本發明一個或多個實施例,至少具有以下有益效果:由於在本發明實施例中,第一電子設備可以通過播放第一聲音信號的方式將其第一標識資訊提供給第二電子設備,從而第二電子設備直接基於接聽到的第一聲音信號就可以將第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人,而不需要額外的功能模組(例如:藍牙模組、WIFI模組等等),故而達到了降低添加連絡人的成本的技術效果。並且,通常情況下採集聲音信號的方式都較為方便,不需要使用者手動對麥克風進行調 整,也不需要使用者手動進行一些其他輸入,故而能夠提高添加連絡人的效率。 One or more embodiments of the present invention have at least the following beneficial effects: In the embodiments 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, thereby The second electronic device can directly add the first user of the first electronic device as the contact person of the second user of the second electronic device based on the first sound signal received, 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. Moreover, the way to collect sound signals is usually more convenient, and the user does not need to manually adjust the microphone. Therefore, the user does not need to manually enter some other inputs, so the efficiency of adding contacts can be improved.

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

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

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

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

顯然,本發明所屬技術領域中具有通常知識者可以對本發明進行各種改動和變型而不脫離本發明的精神和範圍。這樣,倘若本發明的這些修改和變型屬於本發明申請專利範圍及其等同技術的範圍之內,則本發明也意圖包含這些改動和變型在內。 Obviously, a person with ordinary knowledge in the technical field to which the present invention belongs can make various changes and modifications 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 of the present invention and the equivalent technology, the present invention is also intended to include these modifications and variations.

Claims (17)

一種添加連絡人方法,包括:由伺服器接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;由所述伺服器基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;由所述伺服器基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,而為連絡人單向添加;所述添加連絡人方法更包含連絡人雙向添加,包括:由所述伺服器接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;由所述伺服器在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人,而所述將所述第一使用者和所述第二使用者彼此添加為連絡人為所述連絡人雙向添加。 A method for adding a contact includes: receiving, by a server, a first request for adding a contact associated with a first sound signal sent by a second electronic device, the first sound signal corresponding to first identification information of the first electronic device, and The second electronic device obtains the first sound signal played by the first electronic device by answering; the server determines the first identification information and the first sound signal based on the first contact adding request 2. Second identification information of the electronic device; the server adds the first user of the first electronic device as the second electronic device based on the first identification information and the second identification information The contact of the second user is one-way addition of contacts; the method for adding contacts further includes two-way addition of contacts, including: receiving, by the server, the associated second sound signal sent by the first electronic device In the second request for adding a contact, the second sound signal corresponds to the second identification information, and the first electronic device obtains the second sound signal played by the second electronic device through an answering method; After receiving the first request to add a contact and the second request to add a contact, the server adds the first user and the second user as contacts to each other, and the Adding the first user and the second user to each other as a contact is a bidirectional addition of the contact. 如請求項1所述之添加連絡人方法,在由所述伺服器基於所述第一添加連絡人請求確定出所述第一標識資訊的步驟中,包括:由所述伺服器從所述第一添加連絡人請求中提取出所述第一聲音信號;所述伺服器基於聲音信號與標識資訊的對應關係,確定出所述第一聲音信號所對應的所述第一標識資訊;或者,由所述伺服器從所述第一添加連絡人請求中提取出所述第一標識資訊,其中,所述第二電子設備在從所述第一電子設備接聽到所述第一聲音信號之後,所述伺服器基於所述第一聲音信號解析出所述第一標識資訊。 According to the method for adding a contact as described in claim 1, in the step of determining the first identification information by the server based on the first request for adding a contact, the step of determining, by the server, from the first identification information The first sound signal is extracted from a request to add a contact; the server determines the first identification information corresponding to the first sound signal based on the corresponding relationship between the sound signal and the identification information; or The server extracts the first identification information from the first contact adding request, wherein, after the second electronic device receives the first sound signal from the first electronic device, The server parses out the first identification information based on the first sound signal. 如請求項1所述之添加連絡人方法,在由所述伺服器基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人的步驟中,包括:在獲得所述第一電子設備的確認信號之後,將所述第一使用者添加為所述第二使用者的連絡人。 In the method for adding a contact person as described in claim 1, the server adds the first user of the first electronic device as the first user based on the first identification information and the second identification information. 2. The step of contacting the second user of the electronic device includes: adding the first user as the contact of the second user after obtaining the confirmation signal of the first electronic device. 一種添加連絡人方法,包括: 由第一電子設備檢測第二電子設備所播放的第二聲音信號;由所述第一電子設備在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將所述第二電子設備的第二使用者添加為所述第一電子設備的第一使用者的連絡人,包括:由所述第一電子設備向伺服器發送關聯第二聲音信號的第二添加連絡人請求;當所述伺服器接收到所述第二添加連絡人請求,將所述第二電子設備的第二使用者添加為所述第一電子設備的第一使用者的連絡人,而為連絡人單向添加;當所述伺服器接收到第二電子設備發送的第一添加連絡人請求和所述第二添加連絡人請求,將所述第一使用者與所述第二使用者彼此添加為連絡人,而所述將所述第一使用者與所述第二使用者彼此添加為連絡人為連絡人雙向添加。 A method of adding contacts, including: The first electronic device detects the second sound signal played by the second electronic device; after the first electronic device receives the second sound signal, based on the second identification information corresponding to the second sound signal Adding the second user of the second electronic device as the contact person of the first user of the first electronic device includes: the second electronic device sends a second sound signal associated with the second electronic device to the server A request for adding a contact; when the server receives the second request for adding a contact, adding the second user of the second electronic device as the contact of the first user of the first electronic device, It is a one-way contact addition; when the server receives the first request for adding a contact and the second request for adding a contact sent by the second electronic device, the first user and the second user People are added as contacts to each other, and the adding of the first user and the second user as contacts to each other is a two-way addition of contacts. 如請求項4所述之添加連絡人方法,包含:由所述第一電子設備確定第一標識資訊所對應的第一聲音信號,包括:從標識資訊與聲音信號的對應關係中,基於所述第一標識資訊確定所述第一聲音信號;或者,對所述第一標識資訊按照預設規則進行編碼,從而生成所述第一聲音信號;由所述第一電子設備播放所述第一聲音信號。 The method for adding a contact as described in claim 4, comprising: determining, by the first electronic device, the first sound signal corresponding to the first identification information, including: from the corresponding relationship between the identification information and the sound signal, based on the The first 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; the first electronic device plays the first sound signal. 如請求項5所述之添加連絡人方法,在所述第一電子設備播放所述第一聲音信號之後,所述方法進一步包括:如果所述第一電子設備檢測到所述第二電子設備產生的確認信號,停止播放所述第一聲音信號;其中,所述確認信號為聲音信號,用以確認所述第二電子設備已經接聽到所述第一聲音信號。 According to the method for adding a contact person according to claim 5, after the first electronic device plays the first sound signal, the method further includes: if the first electronic device detects that the second electronic device generates Stop playing the first sound signal; wherein the confirmation signal is a sound signal for confirming that the second electronic device has received the first sound signal. 如請求項5所述之添加連絡人方法,所述方法進一步包括:由所述第一電子設備每隔第一隨機時間間隔,啟動播放所述第一聲音信號;由所述第一電子設備在播放所述第一聲音信號之外的其他時間,啟動檢測所述第二聲音信號。 According to the method for adding a contact person according to claim 5, the method further includes: starting by the first electronic device to play the first sound signal every first random time interval; Playing at a time other than the first sound signal, and starting to detect the second sound signal. 一種添加連絡人方法,包括: 由第二電子設備接聽獲得第一聲音信號,所述第一聲音信號對應第一電子設備的第一標識資訊;由所述第二電子設備基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,包括:由所述第二電子設備向伺服器發送關聯第一聲音信號的第一添加連絡人請求;當所述伺服器接收到所述第一添加連絡人請求,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,而為連絡人單向添加;當所述伺服器接收到所述第一添加連絡人請求和所述第一電子設備發送的第二添加連絡人請求,將所述第一使用者與所述第二使用者彼此添加為連絡人,而所述將所述第一使用者與所述第二使用者彼此添加為連絡人為連絡人雙向添加。 A method of adding contacts, including: The second electronic device receives the first sound signal, and the first sound signal corresponds to the first identification information of the first electronic device; the second electronic device converts the first electronic device to the first electronic device based on the first sound signal. Adding the first user of the device as the contact of the second user of the second electronic device includes: sending, by the second electronic device, to the server a first request for adding a contact associated with the first sound signal; when The server receives the first request to add a contact, and adds the first user of the first electronic device as a contact of the second user of the second electronic device, and is a one-way contact Add; when the server receives the first request to add a contact and the second request to add a contact sent by the first electronic device, the first user and the second user are added as each other Contacts, and adding the first user and the second user to each other as contacts is a two-way addition of contacts. 如請求項8所述之添加連絡人方法,在由所述述第二電子設備基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人的步驟中,包括:由所述第二電子設備基於所述第一聲音信號確定出所述第一標識資訊;由所述第二電子設備將所述第一標識資訊、以及所述第二電子設備第二標識資訊發送至伺服器,以供所述伺服器基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 According to the method for adding a contact person according to claim 8, the second electronic device adds the first user of the first electronic device as the second user of the second electronic device based on the first sound signal. The step of contacting the user includes: determining, by the second electronic device, the first identification information based on the first sound signal; by the second electronic device, compiling the first identification information, and The second identification information of the second electronic device is sent to a server, so that the server adds the first user as the second user based on the first identification information and the second identification information Of contacts. 如請求項8所述之添加連絡人方法,在由所述述第二電子設備基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人的步驟中,包括:由所述第二電子設備將所述第一聲音信號、以及所述第二電子設備的第二標識資訊發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人。 According to the method for adding a contact person according to claim 8, the second electronic device adds the first user of the first electronic device as the second user of the second electronic device based on the first sound signal. The step of contacting the user includes: sending, by the second electronic device, the first sound signal and the second identification information of the second electronic device to a server, so that the server can be based on The first sound signal determines the first identification information, and adds the first user as a contact person of the second user based on the first identification information and the second identification information. 如請求項8所述之添加連絡人方法,所述方法進一步包括:由所述第二電子設備每隔隨機時間間隔,啟動播放所述第二聲音信號;由所述第二電子設備在播放所述第二聲音信號時,停止檢測獲得第一聲音信號。 As described in claim 8, the method further includes: the second electronic device starts to play the second sound signal at random time intervals; When the second sound signal is described, the detection is stopped to obtain the first sound signal. 如請求項8至10中任一項所述之添加連絡人方法,在由所述第二電子設備基於所述第一聲音信號,將所述第一電子設備的第一使用者添加為第二電子設備的第二使用者的連絡人的步驟中,包括:如果所述第一聲音信號包含對應至少兩個電子設備的標識資訊的聲音信號,由所述第二電子設備基於所述第一聲音信號將所述至少兩個電子設備的使用者添加為所述第二使用者的連絡人。 According to the method for adding a contact person according to any one of Claims 8 to 10, the second electronic device adds the first user of the first electronic device as the second user based on the first sound signal. The step of contacting the second user of the electronic device includes: if the first sound signal includes a sound signal corresponding to the identification information of at least two electronic devices, the second electronic device is based on the first sound The signal adds the users of the at least two electronic devices as contacts of the second user. 一種伺服器,包括:接收模組,用於接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;以及,接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;第一確定模組,用於基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;以及,基於所述第二添加連絡人請求確定出所述第二標識資訊、以及所述第一電子設備的第一標識資訊;第一添加模組,用於基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,而為連絡人單向添加;以及,用於基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者和所述第二電子設備的第二使用者彼此添加為連絡人,而所述將所述第一電子設備的第一使用者和所述第二電子設備的第二使用者彼此添加為連絡人為連絡人雙向添加。 A server includes: a receiving module for receiving a first request to add a contact person 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 obtains the first sound signal played by the first electronic device by answering; and, receiving a second request for adding a contact associated with the second sound signal sent by the first electronic device, the The second sound signal corresponds to the second identification information, and the first electronic device obtains the second sound signal played by the second electronic device through an answering method; the first determining module is configured to be based on the first The request to add a contact person determines the first identification information and the second identification information of the second electronic device; and, based on the second contact person addition request, the second identification information and the first identification information are determined First identification information of an electronic device; a first adding module for adding the first user of the first electronic device as the second identification information based on the first identification information and the second identification information The contact person of the second user of the electronic device is one-way addition of the contact person; and, based on the first identification information and the second identification information, the first user of the first electronic device And adding the second user of the second electronic device to each other as contacts, and adding the first user of the first electronic device and the second user of the second electronic device to each other as contacts is Contacts are added in both directions. 一種電子設備,包括:檢測模組,用於接聽獲得第一聲音信號,所述第一聲音信號對應另一電子設備的第一標識資訊;添加模組,用於基於所述第一聲音信號,將所述另一電子設備的第一使用者添加為所述電子設備的第二使用者的連絡人,且係將關聯所述第一聲音信號的第一添加連絡人請求發送至伺服器,以供所述伺服器基於所述第一聲音信號確定出所述第一標識資訊,並基於所述第一標識資訊和所述第二標識資訊將所述第一使用者添加為所述第二使用者的連絡人,而為連絡人單向添加;確定模組,用於確定與所述電子設備的第二標識資訊對應的第二聲音信號; 播放模組,用於播放所述第二聲音信號,以使所述另一電子設備在接聽到所述第二聲音信號時,基於所述第二標識資訊進一步將所述第二使用者添加為所述第一使用者的連絡人,而所述將第一使用者添加為所述第二使用者的連絡人以及所述將所述第二使用者添加為所述第一使用者的連絡人為連絡人雙向添加。 An electronic device includes: a detection module for receiving a first sound signal, where the first sound signal corresponds to first identification information of another electronic device; and an addition module for receiving the first sound signal, The first user of the other electronic device is added as a contact of the second user of the electronic device, and the first request for adding a contact associated with the first sound signal is sent to the server to For the server to determine the first identification information based on the first sound signal, and add the first user as the second use based on the first identification information and the second identification information The contact person of the person, and the contact person is added one-way; the determining module is used to determine the second sound signal corresponding to the second identification information of the electronic device; The playing module is used for playing the second sound signal, so that when the other electronic device receives the second sound signal, it further adds the second user as the second user based on the second identification information. The contact person of the first user, and the contact person adding the first user as the second user and the contact person adding the second user as the first user are Contacts are added in both directions. 一種伺服器,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:由所述伺服器接收第二電子設備發送的關聯第一聲音信號的第一添加連絡人請求,所述第一聲音信號對應第一電子設備的第一標識資訊,所述第二電子設備通過接聽方式獲得所述第一電子設備播放的所述第一聲音信號;由所述伺服器基於所述第一添加連絡人請求確定出所述第一標識資訊、以及所述第二電子設備的第二標識資訊;由所述伺服器基於所述第一標識資訊和所述第二標識資訊,將所述第一電子設備的第一使用者添加為所述第二電子設備的第二使用者的連絡人,而為連絡人單向添加;所述伺服器更包含連絡人雙向添加,包括進行以下操作的指令:由所述伺服器接收所述第一電子設備發送的關聯第二聲音信號的第二添加連絡人請求,所述第二聲音信號對應所述第二標識資訊,所述第一電子設備通過接聽方式獲得所述第二電子設備播放的所述第二聲音信號;由所述伺服器在接收到所述第一添加連絡人請求和所述第二添加連絡人請求之後,將所述第一使用者和所述第二使用者彼此添加為連絡人,而所述將所述第一使用者和所述第二使用者彼此添加為連絡人為連絡人雙向添加。 A server including memory and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors. An instruction to perform the following operation: the server receives a first contact adding request associated with a first sound signal sent by a second electronic device, and the first sound signal corresponds to the first identification information of the first electronic device, so The second electronic device obtains the first sound signal played by the first electronic device by answering; the server determines the first identification information and the Second identification information of the second electronic device; the server adds the first user of the first electronic device as the second electronic device based on the first identification information and the second identification information The second user’s contact is one-way addition of contacts; the server further includes two-way addition of contacts, including instructions for performing the following operations: the server receives the association sent by the first electronic device A second contact person request for a second sound signal, the second sound signal corresponds to the second identification information, and the first electronic device obtains the second sound signal played by the second electronic device by answering ; After the server receives the first request to add a contact and the second request to add a contact, the first user and the second user are added as contacts to each other, and Said adding the first user and the second user to each other as contacts is a two-way addition of contacts. 一種第一電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:由所述第一電子設備確定第一標識資訊所對應的第一聲音信號;由所述第一電子設備播放所述第一聲音信號;由所述第一電子設備檢測第二電子設備所播放的第二聲音信號; 由所述第一電子設備在接聽到所述第二聲音信號之後,基於所述第二聲音信號所對應的第二標識資訊將第二使用者添加為所述第一電子設備的第一使用者的連絡人,包括:由所述第一電子設備向伺服器發送關聯第二聲音信號的第二添加連絡人請求;當所述伺服器接收到所述第二添加連絡人請求,將所述第二電子設備的第二使用者添加為所述第一電子設備的第一使用者的連絡人,而為連絡人單向添加;當所述伺服器接收到所述第二電子設備發送的第一添加連絡人請求和所述第二添加連絡人請求,將所述第一使用者與所述第二使用者彼此添加為連絡人,而所述將所述第一使用者與所述第二使用者彼此添加為連絡人為連絡人雙向添加。 A first electronic device includes a memory and one or more programs, wherein one or more programs are stored in the memory and are configured to be executed by one or more processors Contains instructions for performing the following operations: the first electronic device determines the first sound signal corresponding to the first identification information; the first electronic device plays the first sound signal; the first electronic device The device detects the second sound signal played by the second electronic device; After the first electronic device receives the second sound signal, the second user is added as the first user of the first electronic device based on the second identification information corresponding to the second sound signal The contact includes: sending, by the first electronic device, to the server a second request for adding a contact associated with a second sound signal; when the server receives the second request for adding a contact, sending the first Second, the second user of the electronic device is added as the contact person of the first user of the first electronic device, and the contact person is added one-way; when the server receives the first electronic device sent by the second electronic device The request for adding a contact and the second request for adding a contact, the first user and the second user are added as contacts to each other, and the first user and the second user are used Adding each other as a contact is a two-way addition of contacts. 一種電子設備,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式存儲於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上程式包含用於進行以下操作的指令:由所述電子設備接聽獲得第一聲音信號,所述第一聲音信號對應另一電子設備的第一標識資訊;由所述電子設備基於所述第一聲音信號,將所述另一電子設備的第一使用者添加為所述電子設備的第二使用者的連絡人,包括:由所述電子設備確定與第二標識資訊對應的第二聲音信號;由所述電子設備播放所述第二聲音信號;由所述電子設備向伺服器發送關聯第一聲音信號的第一添加連絡人請求;當所述伺服器接收到所述第一添加連絡人請求,將所述另一電子設備的第一使用者添加為所述電子設備的第二使用者的連絡人,而為連絡人單向添加;當所述伺服器接收到所述第一添加連絡人請求和所述另一電子設備發送的第二添加連絡人請求,將所述第一使用者與所述第二使用者彼此添加為連絡人,而所述將所述第一使用者與所述第二使用者彼此添加為連絡人為連絡人雙向添加。 An electronic device including a memory and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors. An instruction to perform the following operations: the electronic device answers to obtain a first sound signal, the first sound signal corresponds to the first identification information of another electronic device; the electronic device based on the first sound signal, Adding the first user of the another electronic device as the contact person of the second user of the electronic device includes: determining by the electronic device a second sound signal corresponding to the second identification information; The device plays the second sound signal; the electronic device sends a first contact adding request associated with the first sound signal to the server; when the server receives the first contact adding request, the The first user of another electronic device is added as the contact of the second user of the electronic device, and the contact is added one-way; when the server receives the request for adding the first contact and the contact A second contact adding request sent by another electronic device adds the first user and the second user as contacts to each other, and the first user and the second user Add each other as contacts to add contacts in both directions.
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
??201710025426.6 2017-01-13
CN201710025426.6 2017-01-13

Publications (2)

Publication Number Publication Date
TW201826776A TW201826776A (en) 2018-07-16
TWI725270B true 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

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080037720A1 (en) * 2006-07-27 2008-02-14 Speechphone, Llc Voice Activated Communication Using Automatically Updated Address Books
CN102611799A (en) * 2012-03-21 2012-07-25 上海车音网络科技有限公司 Method, device and system for acquiring contact person numbers
CN103678605A (en) * 2013-12-16 2014-03-26 小米科技有限责任公司 Information transmission method and device and terminal device
US20140187211A1 (en) * 2012-12-31 2014-07-03 Via Technologies, Inc. Mobile apparatus and method of voice communication
CN104104764A (en) * 2013-04-08 2014-10-15 上海斐讯数据通信技术有限公司 Audio receiving end, audio sending end, number saving system and number saving method
CN104216896A (en) * 2013-05-31 2014-12-17 腾讯科技(深圳)有限公司 Contact information searching method and device
CN104394255A (en) * 2014-10-20 2015-03-04 贵阳朗玛信息技术股份有限公司 A method and device for adding a friend
CN104427109A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Method for establishing contact item by voices and electronic equipment
CN105049319A (en) * 2015-05-25 2015-11-11 腾讯科技(深圳)有限公司 Friend adding method and system, client, and server
CN105635452A (en) * 2015-12-28 2016-06-01 努比亚技术有限公司 Mobile terminal and contact person identification method thereof
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
CN106331302A (en) * 2015-06-30 2017-01-11 华为终端(东莞)有限公司 Method and equipment for adding contact

Family Cites Families (6)

* 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
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
KR102052699B1 (en) * 2013-03-21 2019-12-05 삼성전자주식회사 Method for displaying contact information in electronic device
CN105515946B (en) * 2015-12-02 2019-12-13 广东小天才科技有限公司 Method and system for adding contact person
CN105812530A (en) * 2016-03-08 2016-07-27 北京小米移动软件有限公司 Method and device for adding contact means by using fingerprint information
CN106686184A (en) * 2017-01-13 2017-05-17 北京搜狗科技发展有限公司 Contact person adding method, electronic devices and server

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080037720A1 (en) * 2006-07-27 2008-02-14 Speechphone, Llc Voice Activated Communication Using Automatically Updated Address Books
CN102611799A (en) * 2012-03-21 2012-07-25 上海车音网络科技有限公司 Method, device and system for acquiring contact person numbers
US20140187211A1 (en) * 2012-12-31 2014-07-03 Via Technologies, Inc. Mobile apparatus and method of voice communication
CN104104764A (en) * 2013-04-08 2014-10-15 上海斐讯数据通信技术有限公司 Audio receiving end, audio sending end, number saving system and number saving method
CN104216896A (en) * 2013-05-31 2014-12-17 腾讯科技(深圳)有限公司 Contact information searching method and device
CN104427109A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Method for establishing contact item by voices and electronic equipment
CN103678605A (en) * 2013-12-16 2014-03-26 小米科技有限责任公司 Information transmission method and device and terminal device
CN104394255A (en) * 2014-10-20 2015-03-04 贵阳朗玛信息技术股份有限公司 A method and device for adding a friend
CN105049319A (en) * 2015-05-25 2015-11-11 腾讯科技(深圳)有限公司 Friend adding method and system, client, and server
CN106331302A (en) * 2015-06-30 2017-01-11 华为终端(东莞)有限公司 Method and equipment for adding contact
CN105635452A (en) * 2015-12-28 2016-06-01 努比亚技术有限公司 Mobile terminal and contact person identification method thereof
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

Also Published As

Publication number Publication date
TW201826776A (en) 2018-07-16
WO2018130048A1 (en) 2018-07-19
CN106686184A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
EP3070905B1 (en) Method and apparatus for binding device
CN104506410B (en) The method and apparatus of instant messaging
CN106488335B (en) Live-broadcast control method and device
KR101763544B1 (en) Method and device for information broadcast
US10523494B2 (en) Method and apparatus for processing network failure
US20170279898A1 (en) Method for Accessing Virtual Desktop and Mobile Terminal
US10334282B2 (en) Methods and devices for live broadcasting based on live broadcasting application
KR20160001594A (en) Method and device for processing kid mode
CN105677023B (en) Information demonstrating method and device
US20170034336A1 (en) Event prompting method and device
US20220248083A1 (en) Method and apparatus for video playing
EP3024211B1 (en) Method and device for announcing voice call
TWI725270B (en) Add contact method, electronic equipment and server
US20150105056A1 (en) Methods and devices for establishing call
CN108495168B (en) Bullet screen information display method and device
US20180035154A1 (en) Method, Apparatus, and Storage Medium for Sharing Video
EP3203690B1 (en) Message transmission method and apparatus, and electronic device
KR20190016671A (en) Communication device, server and communication method thereof
CN105491518A (en) Method and device for social reminding based on wearable devices
CN110278273B (en) Multimedia file uploading method, device, terminal, server and storage medium
WO2018232891A1 (en) Method and device for initializing smart home
CN105099884A (en) Instant communication message display method and instant communication message display device
CN110213062B (en) Method and device for processing message
WO2017118044A1 (en) Group message displaying method and device
CN106028277A (en) Reminding message processing method and apparatus