Skip to content

StepFunction ProcessTranscription step failed - list index out of range #304

Description

@mpenhalver

I am trying to test this solution and after that I have uploaded an audio file, the Step functions tasks initialized successfully, the audio is transcribed but it fails in the task ProcessTranscription. It gives the following error:
{
"errorMessage": "list index out of range",
"errorType": "IndexError",
"requestId": "20e40cc7-a3c4-4ca7-a707-17e4744fa3dd",
"stackTrace": [
" File "/var/task/pca-aws-sf-process-turn-by-turn.py", line 1191, in lambda_handler\n transcribeParser.parse_transcribe_file(sf_data)\n",
" File "/var/task/pca-aws-sf-process-turn-by-turn.py", line 1153, in parse_transcribe_file\n self.speechSegmentList = self.create_turn_by_turn_segments(sf_event)\n",
" File "/var/task/pca-aws-sf-process-turn-by-turn.py", line 779, in create_turn_by_turn_segments\n last_word = nextSpeechSegment.segmentConfidence[-1]\n"
]
}

It seems to be something related to nextSpeechSegment.segmentConfidence in pca-aws-sf-process-turn-by-turn.py. I am trying to use it for Portuguese-Brazil language.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions