CN111142978B - Method and system for making telephone call based on intelligent voice equipment - Google Patents

Method and system for making telephone call based on intelligent voice equipment Download PDF

Info

Publication number
CN111142978B
CN111142978B CN201911379172.3A CN201911379172A CN111142978B CN 111142978 B CN111142978 B CN 111142978B CN 201911379172 A CN201911379172 A CN 201911379172A CN 111142978 B CN111142978 B CN 111142978B
Authority
CN
China
Prior art keywords
interface
software development
intelligent voice
call
development kit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911379172.3A
Other languages
Chinese (zh)
Other versions
CN111142978A (en
Inventor
余清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN201911379172.3A priority Critical patent/CN111142978B/en
Publication of CN111142978A publication Critical patent/CN111142978A/en
Application granted granted Critical
Publication of CN111142978B publication Critical patent/CN111142978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method for making a call on intelligent voice equipment, which comprises the following steps: the middle layer of the intelligent voice equipment sends calling information to a software development kit calling interface through an abstract calling interface; starting a grabbing thread of the voice stream of the opposite party and calling a software development kit; the opposite voice stream is recalled to the intelligent voice device; the intelligent voice equipment plays the opposite voice stream; the middle layer monitors the call state; setting a call state and transmitting a voice stream to an operator software development kit through callback; and transmitting the audio stream bottom software development kit interface in real time. Compared with the prior art, the technical scheme of the application can realize the function of calling different operators on the sound box.

Description

Method and system for making telephone call based on intelligent voice equipment
Technical Field
The application relates to the field of intelligent home, in particular to a method for making a call on intelligent voice equipment.
Background
With the rapid development of intelligent sound boxes and the popularization of the intelligent sound boxes in various families, the function of completing the call by the sound boxes is also important. The function of the sound box is relatively more and is mixed, domestic operators have mobile, joint debugging, telecommunication and calling functions, and a good flow standardized method for embedding the calling functions into the sound box functions is particularly important. Based on the characteristics of modularization, flow and universalization of the existing software design, the telephone calling function of an operator is abstracted in an internal program of a sound box, the change of telephone functions does not influence the arrangement flow, and the flow standardization well adapts to the change of function requirements. However, each operator implements a different interface for calling sdk (software development kit) due to the diversity of operators (national mobile, corporate, telecommunications, virtual operators, etc.). Therefore, a unified call flow of the sound box cannot be realized for all operators.
Disclosure of Invention
The main object of the present application is to provide a method for making a call on an intelligent voice device, comprising:
the middle layer of the intelligent voice equipment sends calling information to a software development kit calling interface through an abstract calling interface;
starting a grabbing thread of the voice stream of the opposite party and calling a software development kit;
the opposite voice stream is recalled to the intelligent voice device;
the intelligent voice equipment plays the opposite voice stream;
the middle layer monitors the call state;
setting a call state and transmitting a voice stream to an operator software development kit through callback;
the voice stream is transmitted in real time to the underlying software development kit interface.
Optionally, the software development kit call interface is disposed at a hardware abstraction layer of the intelligent voice device.
Optionally, the host process of the intelligent voice device calls back the counterpart voice stream to the intelligent voice device, and the host process plays the counterpart voice stream.
Optionally, the hardware abstraction layer transmits the voice stream in real time to an underlying software development kit interface.
Optionally, the method for making a call on the intelligent voice-based device further comprises the following steps:
initializing the intelligent voice equipment main process;
setting an operator and audio parameters of the intelligent voice equipment;
the generic interface is registered.
Optionally, setting the operator and the audio parameters of the intelligent voice device includes:
the hardware abstraction layer interface loads a corresponding operator software development kit interface;
the hardware abstraction layer interface sets voice stream parameters;
and (5) building a software development kit environment, and calling back implementation and registration.
Optionally, registering the universal interface includes:
the middle layer establishes a connection between an abstract interface and the hardware abstract layer interface.
Another aspect of the present application also provides a system for making a call on an intelligent voice device, comprising:
the middle layer is used for sending call information to the software development kit call interface through the abstract call interface;
the grabbing module is used for starting a grabbing thread of the voice stream of the opposite party and calling a software development kit;
the callback module is used for callback of the opposite voice stream to the intelligent voice equipment;
the playing module is used for playing the opposite voice stream by the intelligent voice equipment;
the monitoring module is used for monitoring the call state of the middle layer;
the setting module is used for setting a call state and transmitting a voice stream to the operator software development kit through callback;
and the transmission module is used for transmitting the voice stream to the bottom software development kit interface in real time.
The application also discloses a computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the method of any one of the above when executing the computer program.
The application also discloses a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method of any of the above.
Compared with the prior art, the application has the following beneficial effects:
a hal (hardware abstraction layer) interface phone_inf (phone input) encapsulating a layer of phone call making functions. The module abstracts the basic steps of calling, abstracts unified interfaces such as number registration, binding, answering, hanging up, calling, secondary dialing and the like and reporting of states, and integrates and encapsulates sdk (software development kit) interfaces of various operators.
In the process of making a call by the loudspeaker box, interaction with an internal program of the loudspeaker box exists, and the loudspeaker box needs to display different forms according to different states of making a call, such as a light effect, a call reminding, decoding, playing, inputting and outputting of audio contents of both parties of a call and the like. These functions all require a sound box to be implemented. Therefore, the middle layer voice_operator layer is abstracted, the module does not depend on a specific operator, depends on a phone_intf interface, and mainly realizes connection of the sound box and the bottom layer functions and call state maintenance.
Therefore, the purpose of communicating with different operators can be achieved at the sound box.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, are included to provide a further understanding of the application and to provide a further understanding of the application with regard to the further features, objects and advantages of the application. The drawings of the illustrative embodiments of the present application and their descriptions are for the purpose of illustrating the present application and are not to be construed as unduly limiting the present application. In the drawings:
FIG. 1 is a flow chart of a method for making a call on an intelligent voice-based device in accordance with one embodiment of the present application;
FIG. 2 is a flow chart of a method of making a call on an intelligent voice-based device in accordance with one embodiment of the present application;
FIG. 3 is a flow diagram of an initialization based on making a call on an intelligent voice device in accordance with one embodiment of the present application;
FIG. 4 is a flow diagram of an initialization based on making a call on an intelligent voice device in accordance with one embodiment of the present application;
FIG. 5 is a schematic diagram of a computer device according to one embodiment of the present application; and
FIG. 6 is a schematic diagram of a computer-readable storage medium according to one embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Referring to fig. 1-2, an embodiment of the present application provides a method for making a call on an intelligent voice device, which is characterized by comprising:
s1: the middle layer of the intelligent voice equipment sends calling information to a software development kit calling interface through an abstract calling interface;
s2: starting a grabbing thread of the voice stream of the opposite party and calling a software development kit;
s3: the opposite voice stream is recalled to the intelligent voice device;
s4: the intelligent voice equipment plays the opposite voice stream;
s5: the middle layer monitors the call state;
s6: setting a call state and transmitting a voice stream to an operator software development kit through callback;
s7: the voice stream is transmitted in real time to the underlying software development kit interface.
Other instruction processes are similar (called, hang-up and refusal) processes, and an upper layer application (a main process of a sound box) does not need to pay attention to the realization of specific contents, and each layer enables different interface processes through state change notification maintenance to complete events and applications which are concerned by each layer. If the main program of the sound box is used, the playing of the voice stream of the opposite party and the collection of the voice stream of the own party are realized according to the state reported by the bottom layer (the hal layer or the middle layer), and the hal layer is transmitted to the network of the opposite party through an operator sdk. The middle layer calls the interface of the hal layer according to the state reported by the bottom layer or the cloud end instruction, and reports the state to the main process of the sound box. The Hal layer implements the basic functions of sdk encapsulation and call making of the operator, establishing a relationship with the operator. In this embodiment, an intelligent sound box is taken as an example, but not limited thereto, and any intelligent voice device with a playing function is within the scope of protection claimed in the present application.
In an embodiment of the present application, the software development kit call interface is disposed at a hardware abstraction layer of the intelligent voice device.
In an embodiment of the present application, the host process of the intelligent voice device calls back the counterpart voice stream to the intelligent voice device, and the host process plays the counterpart voice stream.
In one embodiment of the present application, the hardware abstraction layer transmits the voice stream in real time to the underlying software development kit interface.
Referring to fig. 3-4, in an embodiment of the present application, the method for making a call on an intelligent voice device further includes an initialization step S0, where the initialization step includes, but is not limited to:
s01: initializing the intelligent voice equipment main process;
s02: setting an operator and audio parameters of the intelligent voice equipment;
s03: the generic interface is registered.
In an embodiment of the present application, setting the operator and the audio parameters of the intelligent voice device includes:
the hardware abstraction layer interface loads a corresponding operator software development kit interface;
the hardware abstraction layer interface sets voice stream parameters;
and (5) building a software development kit environment, and calling back implementation and registration.
In one embodiment of the present application, registering a generic interface includes:
the middle layer establishes a connection between an abstract interface and the hardware abstract layer interface.
The application also provides a system for making a call on the intelligent voice equipment, which comprises:
the middle layer is used for sending call information to the software development kit call interface through the abstract call interface;
the grabbing module is used for starting a grabbing thread of the voice stream of the opposite party and calling a software development kit;
the callback module is used for callback of the opposite voice stream to the intelligent voice equipment;
the playing module is used for playing the opposite voice stream by the intelligent voice equipment;
the monitoring module is used for monitoring the call state of the middle layer;
the setting module is used for setting a call state and transmitting a voice stream to the operator software development kit through callback;
and the transmission module is used for transmitting the voice stream to the bottom software development kit interface in real time.
Referring to fig. 5, the present application further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor implements the method of any one of the above when executing the computer program.
Referring to fig. 6, a computer readable storage medium, a non-volatile readable storage medium, has stored therein a computer program which, when executed by a processor, implements the method of any of the above.
A hal (hardware abstraction layer) interface phone_inf (phone input) encapsulating a layer of phone call making functions. The module abstracts the basic steps of calling, abstracts unified interfaces such as number registration, binding, answering, hanging up, calling, secondary dialing and the like and reporting of states, and integrates and encapsulates sdk (software development kit) interfaces of various operators.
In the process of making a call by the loudspeaker box, interaction with an internal program of the loudspeaker box exists, and the loudspeaker box needs to display different forms according to different states of making a call, such as a light effect, a call reminding, decoding, playing, inputting and outputting of audio contents of both parties of a call and the like. These functions all require a sound box to be implemented. Therefore, the middle layer voice_operator layer is abstracted, the module does not depend on a specific operator, depends on a phone_intf interface, and mainly realizes connection of the sound box and the bottom layer functions and call state maintenance.
Therefore, the purpose of communicating with different operators can be achieved at the sound box.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (5)

1. A method for making a call on an intelligent voice device, comprising:
the middle layer of the intelligent voice equipment sends calling information to a software development kit calling interface through an abstract calling interface;
starting a grabbing thread of the voice stream of the opposite party and calling a software development kit;
the main process of the intelligent voice equipment calls back the opposite voice stream to the intelligent voice equipment;
the main process of the intelligent voice equipment plays the opposite voice stream;
the middle layer monitors the call state;
setting a call state and transmitting a voice stream to an operator software development kit through callback;
transmitting the audio stream to the bottom software development kit interface in real time;
the software development tool package calling interface is arranged at a hardware abstraction layer of the intelligent voice equipment, and the hardware abstraction layer transmits an audio stream bottom software development tool package interface in real time;
the method for making a call on the intelligent voice equipment further comprises the following steps:
initializing the intelligent voice equipment main process;
setting an operator and audio parameters of the intelligent voice equipment;
a registration generic interface, the registration generic interface comprising:
the middle layer establishes a connection between an abstract interface and the hardware abstract layer interface.
2. The method of claim 1, wherein setting operator and audio parameters of the intelligent voice device comprises:
the hardware abstraction layer interface loads a corresponding operator software development kit interface;
the hardware abstraction layer interface sets voice stream parameters;
and (5) building a software development kit environment, and calling back implementation and registration.
3. A system for making a call on an intelligent voice device, comprising:
the middle layer is used for sending call information to the software development kit call interface through the abstract call interface;
the grabbing module is used for starting a grabbing thread of the voice stream of the opposite party and calling a software development kit;
the callback module is used for callback the opposite voice stream to the intelligent voice device by the main process of the intelligent voice device;
the playing module is used for playing the opposite voice stream by the main process of the intelligent voice equipment;
the monitoring module is used for monitoring the call state of the middle layer;
the setting module is used for setting a call state and transmitting a voice stream to the operator software development kit through callback;
the transmission module is used for transmitting the audio stream to the bottom software development kit interface in real time;
the software development tool package calling interface is arranged at a hardware abstraction layer of the intelligent voice equipment, and the hardware abstraction layer transmits an audio stream bottom software development tool package interface in real time;
the system for making a call on the intelligent voice equipment further comprises:
initializing the intelligent voice equipment main process;
setting an operator and audio parameters of the intelligent voice equipment;
a registration generic interface, the registration generic interface comprising:
the middle layer establishes a connection between an abstract interface and the hardware abstract layer interface.
4. A computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any of claims 1-2 when executing the computer program.
5. A computer readable storage medium, non-volatile readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the method according to any of claims 1-2.
CN201911379172.3A 2019-12-27 2019-12-27 Method and system for making telephone call based on intelligent voice equipment Active CN111142978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911379172.3A CN111142978B (en) 2019-12-27 2019-12-27 Method and system for making telephone call based on intelligent voice equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911379172.3A CN111142978B (en) 2019-12-27 2019-12-27 Method and system for making telephone call based on intelligent voice equipment

Publications (2)

Publication Number Publication Date
CN111142978A CN111142978A (en) 2020-05-12
CN111142978B true CN111142978B (en) 2024-01-30

Family

ID=70521073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911379172.3A Active CN111142978B (en) 2019-12-27 2019-12-27 Method and system for making telephone call based on intelligent voice equipment

Country Status (1)

Country Link
CN (1) CN111142978B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113595869B (en) * 2021-06-28 2023-10-24 青岛海尔科技有限公司 Voice playing method and device, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895669A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 General middleware adaptation layer system for digital television
CN102413216A (en) * 2011-11-18 2012-04-11 深圳市中兴移动通信有限公司 Method and system for realizing Android intelligent mobile terminal voice communication
WO2012099456A1 (en) * 2011-01-21 2012-07-26 Advance Tech Communications Sdn Bhd System and method for integrating computing device with telephony functions
CN103729243A (en) * 2013-12-04 2014-04-16 上海斐讯数据通信技术有限公司 Universal hardware abstract port implementing method and calling method for voice access equipment
WO2015010665A1 (en) * 2013-07-22 2015-01-29 烽火通信科技股份有限公司 Method and system making use of a home gateway and a smartphone to make a cordless telephone call
CN105491337A (en) * 2015-12-10 2016-04-13 公安部交通管理科学研究所 Universal network video monitoring equipment access method and apparatus based on SDK abstract layer
CN109559763A (en) * 2017-09-26 2019-04-02 华为技术有限公司 A kind of method and device of real time digital audio signal audio mixing
CN109947387A (en) * 2019-03-28 2019-06-28 百度在线网络技术(北京)有限公司 Audio collection method, audio frequency playing method, system, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037174A1 (en) * 2000-10-02 2003-02-20 David Lavin Common adapter/connector architecture
US20070294710A1 (en) * 2006-06-19 2007-12-20 Alps Automotive Inc. Simple bluetooth software development kit
US8826316B2 (en) * 2012-10-22 2014-09-02 The Nielsen Company (Us), Llc Systems and methods for configuring media devices utilizing audio codes or signatures

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895669A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 General middleware adaptation layer system for digital television
WO2012099456A1 (en) * 2011-01-21 2012-07-26 Advance Tech Communications Sdn Bhd System and method for integrating computing device with telephony functions
CN102413216A (en) * 2011-11-18 2012-04-11 深圳市中兴移动通信有限公司 Method and system for realizing Android intelligent mobile terminal voice communication
WO2015010665A1 (en) * 2013-07-22 2015-01-29 烽火通信科技股份有限公司 Method and system making use of a home gateway and a smartphone to make a cordless telephone call
CN103729243A (en) * 2013-12-04 2014-04-16 上海斐讯数据通信技术有限公司 Universal hardware abstract port implementing method and calling method for voice access equipment
CN105491337A (en) * 2015-12-10 2016-04-13 公安部交通管理科学研究所 Universal network video monitoring equipment access method and apparatus based on SDK abstract layer
CN109559763A (en) * 2017-09-26 2019-04-02 华为技术有限公司 A kind of method and device of real time digital audio signal audio mixing
CN109947387A (en) * 2019-03-28 2019-06-28 百度在线网络技术(北京)有限公司 Audio collection method, audio frequency playing method, system, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张平波 ; 高承志 ; 梁樱 ; .基于Asterisk的VoIP软电话系统的设计与实现.信息化研究.2013,(04),全文. *

Also Published As

Publication number Publication date
CN111142978A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
KR100342952B1 (en) Radio communications device and method with api between user application program and telephony program and method
CN102866925B (en) Communication method and system for middleware and user interface
CN111142978B (en) Method and system for making telephone call based on intelligent voice equipment
CN114244654B (en) URL forwarding method, device, equipment and computer storage medium
CN112969203B (en) Method for integrating multiple call modes based on android system platform
CN1955990B (en) Flow executing method and system of integral telecommunication platform
CN109194738A (en) Remote reboot method, routing development board and hardware bottom plate
CN102196010A (en) System and method for implementing application open interface at terminal side
CN103605594B (en) Terminal-based funcall method and device
EP1649393B1 (en) Providing modular telephony service
US20120063584A1 (en) Telephone relaying apparatus, telephone relaying method, and program
CN114143144A (en) Distributed gateway-based micro-service calling method and device and related equipment
CN112905273A (en) Service calling method and device
CN113014560A (en) Dynamic dubbo service calling method, computer equipment and storage medium
JP5463763B2 (en) Telephone relay device, telephone system, telephone relay method, and program
EP1161843B1 (en) Providing supplementary services by executing a supplementary services layer ssl application in a switching node of an expandable telecommunications system
US10944658B2 (en) Method, apparatus and system for method for start-up of monitoring of monitor objects in a computer-integrated telecommunications environment
CN111355699A (en) Voice capability implementation system
WO2014183507A1 (en) Call centre system, device and communication method
CN104461889A (en) Debug method and device of phonological competence scripts
US10284663B2 (en) Module and a method for collecting non-declarative information and implemented by a telecommunications terminal
Tsang et al. The network operator's perspective: detecting and resolving feature interaction problems
WO1999035568A2 (en) Isolation of resources from application in a process control system
CN202406174U (en) Centralized caller identification system
CN116166224A (en) Method and system for developing mixed App based on Cordova

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant