Giter Club home page Giter Club logo

Comments (3)

kencecka avatar kencecka commented on June 3, 2024

Hi @zx-stark,

  1. Which interface in AIP we can load when WWE trigger the AIP to enter the listening state? is it AbstractKeywordDetector::notifyKeyWordObservers?

If you would like to utilize a KWD with AIP, you will need to implement KeyWordObserverInterface, register your implementation as an observer of your KWD, and in your implementation of KeyWordObserverInterface::onKeyWordDetected(), call AudioInputProvider::recognize(). There is an example of this in AudioInputProcessorIntegrationTest.cpp - see the wakeWordTrigger class.

  1. Which interface we can load to tell the avs about system event? such as wifi state.

That is part of the UX Guidelines - specifically the "System Error" state. The current release of the SDK does not address UX Guidelines, but will add this in a future release.

  1. Has the red circle part in the picture (read data from SDS to AIP )been realized in AVS SDK?

Yes. When you call AudioInputProcessor::recognize(), you pass an AudioProvider as one of the parameters. The AudioProvider contains a std::shared_ptr to an AudioInputStream, which in turn is an alias for a SharedDataStream. AudioInputProvider creates a reader from that stream, and passes it to a MessageSenderInterface (typically an AVSConnectionManager), which proceeds to stream audio data from the reader to AVS.

Ken

from avs-device-sdk.

JamieMeyers avatar JamieMeyers commented on June 3, 2024

@zx-stark, to add some more clarify on 2, currently things like WiFi or network connection status will not directly be used in the SDK (no listeners for those events). Instead, you will inform different libraries of the state. For instance, you can inform ACL that the network connection is up and to connect by using the AVSConnectionManager::enable() function, and when the network connection goes down, AVSConnectionManager::disable(). You can also trigger an immediate connection retry using AVSConnectionManager::reconnect().

from avs-device-sdk.

kencecka avatar kencecka commented on June 3, 2024

Closing for now. Please reopen if you have further questions on this topic.

from avs-device-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.