0bc730b3e3
Use the user's talking state to trigger a speech API recovery after long periods of silence.
21 lines
431 B
JavaScript
21 lines
431 B
JavaScript
import React from 'react';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import Service from '/imports/ui/components/audio/captions/speech/service';
|
|
import Speech from './component';
|
|
|
|
const Container = (props) => <Speech {...props} />;
|
|
|
|
export default withTracker(() => {
|
|
const {
|
|
locale,
|
|
connected,
|
|
talking,
|
|
} = Service.getStatus();
|
|
|
|
return {
|
|
locale,
|
|
connected,
|
|
talking,
|
|
};
|
|
})(Container);
|