l = $l10nFactory->get('lib'); } /** * @inheritDoc * @since 30.0.0 */ public function getName(): string { return $this->l->t('Transcribe audio'); } /** * @inheritDoc * @since 30.0.0 */ public function getDescription(): string { return $this->l->t('Transcribe the things said in an audio'); } /** * @return string * @since 30.0.0 */ public function getId(): string { return self::ID; } /** * @return ShapeDescriptor[] * @since 30.0.0 */ public function getInputShape(): array { return [ 'input' => new ShapeDescriptor( $this->l->t('Audio input'), $this->l->t('The audio to transcribe'), EShapeType::Audio ), ]; } /** * @return ShapeDescriptor[] * @since 30.0.0 */ public function getOutputShape(): array { return [ 'output' => new ShapeDescriptor( $this->l->t('Transcription'), $this->l->t('The transcribed text'), EShapeType::Text ), ]; } }