def send_dictation_result(self, result, sentences=None, app_uuid=None):
assert self._session_id != VoiceService.SESSION_ID_INVALID<EOL>assert isinstance(result, TranscriptionResult)<EOL>transcription = None<EOL>if result == TranscriptionResult.Success:<EOL><INDENT>if len(sentences) > <NUM_LIT:0>:<EOL><INDENT>s_list = []<EOL>for s in sentences:<EOL><INDENT>words = [Word(confidence=<NUM_LIT:100>, data=w) for w in s]<EOL>s_list.append(Sentence(words=words))<EOL><DEDENT>transcription = Transcription(transcription=SentenceList(sentences=s_list))<EOL><DEDENT><DEDENT>flags = <NUM_LIT:0><EOL>if app_uuid is not None:<EOL><INDENT>assert isinstance(app_uuid, uuid.UUID)<EOL>flags |= Flags.AppInitiated<EOL><DEDENT>attributes = []<EOL>if app_uuid is not None:<EOL><INDENT>assert isinstance(app_uuid, uuid.UUID)<EOL>attributes.append(Attribute(id=AttributeType.AppUuid, data=AppUuid(uuid=app_uuid)))<EOL><DEDENT>if transcription is not None:<EOL><INDENT>attributes.append(Attribute(id=AttributeType.Transcription, data=transcription))<EOL><DEDENT>logger.debug("<STR_LIT>".format(result) +<EOL>"<STR_LIT>".format(app_uuid) if app_uuid is not None else "<STR_LIT:)>")<EOL>self._pebble.send_packet(VoiceControlResult(flags=flags, data=DictationResult(<EOL>session_id=self._session_id, result=result, attributes=AttributeList(dictionary=attributes))))<EOL>self._session_id = VoiceService.SESSION_ID_INVALID<EOL>
Send the result of a dictation session

:param result: Result of the session
:type result: DictationResult
:param sentences: list of sentences, each of which is a list of words and punctuation
:param app_uuid: UUID of app that initiated the session
:type app_uuid: uuid.UUID